Benvenuto! Per postare e godere delle funzionalità del forum registrati, occorrono pochi secondi ed è gratis!

[Guida] Creare un injector in VB2008 (by Jakub999)
(Questo messaggio è stato modificato l'ultima volta il: 13/03/2011, 16:33 da digger.)

Il criceto mannaro
Messaggi: 3,536
Discussioni: 201
Registrato: 03-2011
Mix: 3,737
Crediti: Jakub999

Salve raga,
è arrivata l'ora di fare la prima guida in programming zone... La prima guida spieghera come fare un injector in vb2008 che andra ad agganciare la nostra dll con la hack al processo warrock.exe

Tempo fa avevo trovato in rete una guida su come fare un injector... Io avevo fatto il mio injector da zero, dato che di VB me ne intendo e funzionava abbastanza bene...

In rete poi ho trovato questo, che non so neanche di chi sia... Questo source è stato postato da uno che si chiama "Temp" che pero non se ne intende di programmazione (lo conosco su svariati forum) quindi non so chi l'ha fatto... L'injector funziona abbastanza bene, c'èra un errore (c'èrano 2 stringe invertite) ma l'ho sistemato...

Qui vi posto il source:



Codice:
    VBNET Programming
  1. Public Class Form1
  2.  
  3. Private TargetProcessHandle As Integer
  4. Private pfnStartAddr As Integer
  5. Private pszLibFileRemote As String
  6. Private TargetBufferSize As Integer
  7.  
  8. Public Const PROCESS_VM_READ = &H10
  9. Public Const TH32CS_SNAPPROCESS = &H2
  10. Public Const MEM_COMMIT = 4096
  11. Public Const PAGE_READWRITE = 4
  12. Public Const PROCESS_CREATE_THREAD = (&H2)
  13. Public Const PROCESS_VM_OPERATION = (&H<img src="https://hackmix.altervista.org/images/smilies/cool.png" alt="Cool" title="Cool" class="smilie smilie_56" />
  14. Public Const PROCESS_VM_WRITE = (&H20)
  15.  
  16. Public Declare Function ReadProcessMemory Lib "kernel32" ( _
  17. ByVal hProcess As Integer, _
  18. ByVal lpBaseAddress As Integer, _
  19. ByVal lpBuffer As String, _
  20. ByVal nSize As Integer, _
  21. ByRef lpNumberOfBytesWritten As Integer) As Integer
  22.  
  23. Public Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" ( _
  24. ByVal lpLibFileName As String) As Integer
  25.  
  26. Public Declare Function VirtualAllocEx Lib "kernel32" ( _
  27. ByVal hProcess As Integer, _
  28. ByVal lpAddress As Integer, _
  29. ByVal dwSize As Integer, _
  30. ByVal flAllocationType As Integer, _
  31. ByVal flProtect As Integer) As Integer
  32.  
  33. Public Declare Function WriteProcessMemory Lib "kernel32" ( _
  34. ByVal hProcess As Integer, _
  35. ByVal lpBaseAddress As Integer, _
  36. ByVal lpBuffer As String, _
  37. ByVal nSize As Integer, _
  38. ByRef lpNumberOfBytesWritten As Integer) As Integer
  39.  
  40. Public Declare Function GetProcAddress Lib "kernel32" ( _
  41. ByVal hModule As Integer, ByVal lpProcName As String) As Integer
  42.  
  43. Private Declare Function GetModuleHandle Lib "Kernel32" Alias "GetModuleHandleA" ( _
  44. ByVal lpModuleName As String) As Integer
  45.  
  46. Public Declare Function CreateRemoteThread Lib "kernel32" ( _
  47. ByVal hProcess As Integer, _
  48. ByVal lpThreadAttributes As Integer, _
  49. ByVal dwStackSize As Integer, _
  50. ByVal lpStartAddress As Integer, _
  51. ByVal lpParameter As Integer, _
  52. ByVal dwCreationFlags As Integer, _
  53. ByRef lpThreadId As Integer) As Integer
  54.  
  55. Public Declare Function OpenProcess Lib "kernel32" ( _
  56. ByVal dwDesiredAccess As Integer, _
  57. ByVal bInheritHandle As Integer, _
  58. ByVal dwProcessId As Integer) As Integer
  59.  
  60. Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" ( _
  61. ByVal lpClassName As String, _
  62. ByVal lpWindowName As String) As Integer
  63.  
  64. Private Declare Function CloseHandle Lib "kernel32" Alias "CloseHandleA" ( _
  65. ByVal hObject As Integer) As Integer
  66.  
  67.  
  68. Dim ExeName As String = IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath)
  69.  
  70. Private Sub Inject()
  71. On Error GoTo 1 ' If error occurs, app will close without any error messages
  72. Timer1.Stop()
  73. Dim TargetProcess As Process() = Process.GetProcessesByName("WarRock")
  74. TargetProcessHandle = OpenProcess(PROCESS_CREATE_THREAD Or PROCESS_VM_OPERATION Or PROCESS_VM_WRITE, False, TargetProcess(0).Id)
  75. pszLibFileRemote = Application.StartupPath & "\" + ExeName + ".dll"
  76. pfnStartAddr = GetProcAddress(GetModuleHandle("Kernel32"), "LoadLibraryA")
  77. TargetBufferSize = 1 + Len(pszLibFileRemote)
  78. Dim Rtn As Integer
  79. Dim LoadLibParamAdr As Integer
  80. LoadLibParamAdr = VirtualAllocEx(TargetProcessHandle, 0, TargetBufferSize, MEM_COMMIT, PAGE_READWRITE)
  81. Rtn = WriteProcessMemory(TargetProcessHandle, LoadLibParamAdr, pszLibFileRemote, TargetBufferSize, 0)
  82. CreateRemoteThread(TargetProcessHandle, 0, 0, pfnStartAddr, LoadLibParamAdr, 0, 0)
  83. CloseHandle(TargetProcessHandle)
  84. 1: Me.Close()
  85. End Sub
  86.  
  87. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  88. If IO.File.Exists(Application.StartupPath & "\" + ExeName + ".dll") Then
  89. Dim TargetProcess As Process() = Process.GetProcessesByName("HSUpdate")
  90. If TargetProcess.Length = 0 Then
  91. Me.TextBox1.Text = ("Waiting For WarRock.exe")
  92. Else
  93. Timer1.Stop()
  94. Me.TextBox1.Text = "Inject succes now running"
  95. MsgBox("Codded By VostroNickName", MsgBoxStyle.Information, "Info")
  96. Process.Start("http://wrhack.devil.it")
  97. Call Inject()
  98. End If
  99. Else
  100. Me.TextBox1.Text = ("" + ExeName + ".dll Not Found")
  101. End If
  102. End Sub
  103.  
  104. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  105. Timer1.Interval = 50
  106. Timer1.Start()
  107. End Sub
  108.  
  109. Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
  110.  
  111. End Sub
  112. End Class




inserite:
-un timer
-una textbox

dopo aver inserito il timer e la textbox compilate ed è pronto!!!



Codice:
- Me.TextBox1.Text = ("Waiting For WarRock.exe")
- Me.TextBox1.Text = "Inject succes now running"
- MsgBox("Coded by VostroNickName", MsgBoxStyle.Information, "Info")
- Process.Start("http://wrhack.devil.it")
- Me.TextBox1.Text = ("" + ExeName + ".dll Not Found")




Potete inoltre modificare queste stringe cosi se aprite l'injector si apre direttamente il sito, e poi potete modificare le scritte (es. da inject sucess, now running a hack injettata) ecc ecc...

Crediti:

Guida: jakub999
Autore: ??? (anonimo)

PS: almeno tentate di capire le varie funzioni a cosa servono, e se non lo sapete chiedete pure, siamo qui per aiutarci... Se copiate e incollate il source pensando di essere coder vi sbagliate... Sarete lamer e non imparerete niente...


digger
13/03/2011, 16:23
#1
Cerca
(Questo messaggio è stato modificato l'ultima volta il: 13/03/2011, 16:49 da ZioPaperino.)

ZioPaperino VIP
Messaggi: 2,350
Discussioni: 667
Registrato: 03-2011
Mix: 0
Se non funziona ....... scappa!
Alla riga 84 c'è un 1: .... normale?
Sei fortunato, funziona =D

13/03/2011, 16:44
#2
Cerca

Il criceto mannaro
Messaggi: 3,536
Discussioni: 201
Registrato: 03-2011
Mix: 3,737
ahah non l'ho fatto io non so se funziona, anzi, se qualcuno vuole provarlo e se nn va magari metterlo apposto...
l'1: si è normale, se controlli vedrai che poco sopra ci sta un
On Error GoTo 1
quell'1 è l'etichetta a cui saltare



digger
13/03/2011, 17:21
#3
Cerca

ZioPaperino VIP
Messaggi: 2,350
Discussioni: 667
Registrato: 03-2011
Mix: 0
ficoso .........oooooooooooooooo .............. Tounge

13/03/2011, 20:21
#4
Cerca


Discussioni simili
Discussione Autore Risposte Letto Ultimo messaggio
  creare applicazioni? Pocciox 2 1,648 19/08/2013, 14:52
Ultimo messaggio: Pocciox
  Creare un live-cd con windows xp! Giniu 10 2,475 24/01/2013, 16:11
Ultimo messaggio: Giniu
  Creare un NoMenù by Frenz ò.ò SeSel 3 1,732 25/12/2012, 12:32
Ultimo messaggio: Pocciox



Utenti che stanno guardando questa discussione: 1 Ospite(i)