elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Rompecabezas de Bitcoin, Medio millón USD en premios


  Mostrar Mensajes
Páginas: 1 ... 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 [33] 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 ... 75
321  Programación / Programación Visual Basic / Re: Mi Proyecto My .NET Functions for VB 6 en: 24 Septiembre 2008, 20:51 pm
Che seba, no es mala idea, vi hace un tiempo una libreria asi que es gigante, la verdad no me acuerdo el nombre pero tiene de todo.

Con restecto al My soy 100% ignorante de las funciones que ofrece, pero como idea diria que si lo van a hacer entre muchos primero fijen algunas pautas o de otra manera se va a volver un lio. Por ejemplo una manera generica de manejar errores, como se llama a las funciones y que valores de retorno van a tener, historial de cambios y bugs, etc.



322  Programación / Programación Visual Basic / Re: Duda OpenProcess en: 24 Septiembre 2008, 20:18 pm
necesitas ajustar los privilegios a debug
323  Programación / Programación Visual Basic / Re: Process32next Callback en: 24 Septiembre 2008, 00:46 am
Traduzco por que es de Grecia y no sabe español.

Esta tratando de hacer un hook a process32next pero no sabe como implementar el callback, lo que quiere hace es esconder "test.exe".

La cuestion es que no le funciona y no sabe cual es el error.
324  Programación / Programación Visual Basic / Re: Generic Sever Editor Class [SRC] en: 23 Septiembre 2008, 01:43 am
Entonces es como digo, el propertybag no tiene nada que ver con AV, el tema es que el stub y el metodo de encripcion no son FUD.
325  Programación / Programación Visual Basic / Re: Generic Sever Editor Class [SRC] en: 22 Septiembre 2008, 21:45 pm
Por dios!!!!!! el esta pegando un exe, lo que significa que si no lo cifra el AV va a cantar como loca! el tuto que mostras vos es simplemente para adjuntar settings.
326  Programación / Programación Visual Basic / Re: Generic Sever Editor Class [SRC] en: 22 Septiembre 2008, 21:29 pm
A ver, posiblemente sea menos codigo hacer stub/marca/archivo o app/marca/datos pero eso no es flexible, si queres agregar mas datos tenes que modificar el codigo, de esta manera podes poner cuantos exe quieras y cuanta data quieras sin necesidad de hacer ningun cambio en el modulo. Por otra parte ese codigo lo hice en 5 minutos asi que se puede optimizar un monton para reducirlo y al final de cuentas el propertybag hace lo mismo que haces vos manualmente.

@demoniox12 seguramente el AV detecta lo que este pegado porque esta sin cifrar o encryptar, por eso mismo comente en el codigo las 2 secciones donde se puede agregar un codigo para cifrar o cifrar los datos.
327  Programación / Programación Visual Basic / Re: Generic Sever Editor Class [SRC] en: 22 Septiembre 2008, 20:30 pm
Código:
Private Sub Form_Load()
    Dim sData As String
    Dim vbData() As Byte
       
    Open "c:\proyecto1.exe" For Binary As #1
    ReDim vbData(LOF(1) - 1)
    Get #1, , vbData
    Close #1
   
    Dim c As New cEditSvr
    c.ExeFile "c:\proyecto1.exe"
    c.WriteProp "App", vbData
    c.WriteData "c:\test.exe"
   
    Set c = New cEditSvr
    c.ExeFile "c:\test.exe"
    vbData = c.ReadProp("App")
   
    Open "c:\Extracted.exe" For Binary As #1
    Put #1, , vbData
    Close #1
   
End Sub
328  Programación / Programación Visual Basic / Re: Generic Sever Editor Class [SRC] en: 22 Septiembre 2008, 13:51 pm
@ demoniox12

Podes poner cualquier cosa dentro del propertybag, si queres postea el code a ver que estas haciendo mal.
329  Programación / Programación Visual Basic / Re: Generic Sever Editor Class [SRC] en: 19 Septiembre 2008, 19:08 pm
El propertyBag lo uso para empaquetar y desempaquetar los datos, de esa manera podes agregar la cantidad de propiedades/valores que quieras. El ejemplo tiene simplemente 2 pero se pueden seguir agregando las que sea.

Importante:Si alguno usa un code para modificar el EOF no use esto!

330  Programación / Programación Visual Basic / Generic Sever Editor Class [SRC] en: 19 Septiembre 2008, 18:28 pm
Bueno me harte de que pregunten esto un millon de veces, aca les dejo un codigo super simple para leer y escribir datos al final de un EXE. Creditos a E0N por la funcion para calcular el EOF

Clase:

Código
  1. '---------------------------------------------------------------------------------------
  2. ' Module      : cEditSvr
  3. ' DateTime    : 19/09/2008 13:23
  4. ' Author      : Cobein
  5. ' Mail        : cobein27@hotmail.com
  6. ' WebPage     : http://www.advancevb.com.ar
  7. ' Purpose     : Read Write data at EOF
  8. ' Usage       : At your own risk
  9. ' Requirements: None
  10. ' Distribution: You can freely use this code in your own
  11. '               applications, but you may not reproduce
  12. '               or publish this code on any web site,
  13. '               online service, or distribute as source
  14. '               on any media without express permission.
  15. '
  16. ' History     : 19/09/2008 First Cut....................................................
  17. '---------------------------------------------------------------------------------------
  18. Option Explicit
  19.  
  20. Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDst As Any, pSrc As Any, ByVal ByteLen As Long)
  21.  
  22. Private c_pBag      As New PropertyBag
  23. Private c_sFile     As String
  24. Private c_lEOF      As Long
  25. Public c_bHasData  As Boolean
  26.  
  27. '---------------------------------------------------------------------------------------
  28. ' Procedure : GetEOF
  29. ' Author    : E0N
  30. ' Purpose   : Calculate EOF
  31. '---------------------------------------------------------------------------------------
  32. Private Function GetEOF(sPath As String) As Long
  33.    Dim vbData() As Byte
  34.    Dim PE As Long, NumberOfSections As Integer
  35.    Dim BeginLastSection As Long
  36.    Dim RawSize As Long, RawOffset As Long
  37.  
  38.    Open sPath For Binary As #1
  39.        ReDim vbData(LOF(1) - 1)
  40.        Get #1, , vbData
  41.    Close #1
  42.  
  43.    Call CopyMemory(PE, vbData(&H3C), 4)
  44.    Call CopyMemory(NumberOfSections, vbData(PE + &H6), 2)
  45.    BeginLastSection = PE + &HF8 + ((NumberOfSections - 1) * &H28)
  46.    Call CopyMemory(RawSize, vbData(BeginLastSection + 16), 4)
  47.    Call CopyMemory(RawOffset, vbData(BeginLastSection + 20), 4)
  48.    GetEOF = RawSize + RawOffset
  49. End Function
  50.  
  51. Public Function ExeFile(sPath As String) As Boolean
  52.    c_sFile = sPath
  53.    c_lEOF = GetEOF(c_sFile)
  54.  
  55.    If Not FileLen(c_sFile) = c_lEOF Then
  56.        c_bHasData = True
  57.  
  58.        Dim vbData() As Byte
  59.  
  60.        Open c_sFile For Binary As #1
  61.        ReDim vbData(LOF(1) - c_lEOF - 1)
  62.        Seek #1, c_lEOF + 1
  63.        Get #1, , vbData
  64.        Close #1
  65.        '+++++++++++++++++++++++++++++++++++++++++++++++++++++
  66.        'At this point you can Decrypt the byte array [vbData]
  67.        '+++++++++++++++++++++++++++++++++++++++++++++++++++++
  68.        Set c_pBag = New PropertyBag
  69.        c_pBag.Contents = vbData
  70.    End If
  71.  
  72. End Function
  73.  
  74. Public Sub WriteProp(sName As String, vVal As Variant)
  75.    c_pBag.WriteProperty sName, vVal
  76. End Sub
  77.  
  78. Public Function ReadProp(sName As String) As Variant
  79.    ReadProp = c_pBag.ReadProperty(sName)
  80. End Function
  81.  
  82. Public Function WriteData(sDstFile As String) As Boolean
  83.    Dim vbData() As Byte
  84.  
  85.    Open c_sFile For Binary Access Read As #1
  86.    ReDim vbData(LOF(1) - 1)
  87.    Get #1, , vbData
  88.    Close #1
  89.  
  90.    Open sDstFile For Binary Access Write As #1
  91.    Put #1, , vbData
  92.    vbData = c_pBag.Contents
  93.    '+++++++++++++++++++++++++++++++++++++++++++++++++++++
  94.    'At this point you can Encrypt the byte array [vbData]
  95.    '+++++++++++++++++++++++++++++++++++++++++++++++++++++
  96.    Put #1, , vbData
  97.    Close #1
  98.  
  99. End Function
  100.  

Como llamarlo

Código
  1. Option Explicit
  2.  
  3. Private Sub Form_Load()
  4.  
  5.    Dim c As New cEditSvr
  6.    c.ExeFile "c:\proyecto1.exe"
  7.    c.WriteProp "IP", "123.123.123.123"
  8.    c.WriteProp "Port", 1234
  9.    c.WriteData "c:\test.exe"
  10.  
  11.  
  12.    Set c = New cEditSvr
  13.    c.ExeFile "c:\test.exe"
  14.    Debug.Print c.ReadProp("IP")
  15.    Debug.Print c.ReadProp("Port")
  16. End Sub
  17.  
  18.  
Páginas: 1 ... 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 [33] 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 ... 75
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines