-MAJ (07-16-2012),alfisyukri (07-04-2011),Kryo4lex (05-04-2012),nanaxyu (08-04-2012),Templar (06-08-2012),TomAnderson (08-24-2012)
Hey,
Some ppl asked me: 'How do you make an injector?'
The answer you discover by following this tutorial.
By any questions ask me!
I hope you enjoy it!
Note: This Codes has been writen by: miwin94
Note: Follow this correctly!
1/ Make an Project 'Windows Application'
2/ Name it how you wand to be:
3/ Add 2 textboxes And 1 timer! 'IMPORTANT!'
4/ Follow this codes correctly!
Design, How you want it:
We are adding the codes into: 'Public Class Form1' The Private Functions:
[php]Private TargetProcessHandle As Integer
Private pfnStartAddr As Integer
Private pszLibFileRemote As String
Private TargetBufferSize As Integer
[/php]
Then we adding the Public Functions info 'Public Class Form1':
[php]Public Const PROCESS_VM_READ = &H10
Public Const TH32CS_SNAPPROCESS = &H2
Public Const MEM_COMMIT = 4096
Public Const PAGE_READWRITE = 4
Public Const PROCESS_CREATE_THREAD = (&H2)
Public Const PROCESS_VM_OPERATION = (&H8)
Public Const PROCESS_VM_WRITE = (&H20)
[/php]
Then we gonna Declaire "kernel32":
[php]Public Declare Function ReadProcessMemory Lib "kernel32" ( _
ByVal hProcess As Integer, _
ByVal lpBaseAddress As Integer, _
ByVal lpBuffer As String, _
ByVal nSize As Integer, _
ByRef lpNumberOfBytesWritten As Integer) As Integer
[/php]
Then we gonna load ""kernel32" & "LoadLibraryA":
[php] Public Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" ( _
ByVal lpLibFileName As String) As Integer[/php]
Now Declair "kernel32":
[php]Public Declare Function VirtualAllocEx Lib "kernel32" ( _
ByVal hProcess As Integer, _
ByVal lpAddress As Integer, _
ByVal dwSize As Integer, _
ByVal flAllocationType As Integer, _
ByVal flProtect As Integer) As Integer
[/php]
Add this under it:
[php] ByVal hModule As Integer, ByVal lpProcName As String) As Integer
Private Declare Function GetModuleHandle Lib "Kernel32" Alias "GetModuleHandleA" ( _
ByVal lpModuleName As String) As Integer
Public Declare Function CreateRemoteThread Lib "kernel32" ( _
ByVal hProcess As Integer, _
ByVal lpThreadAttributes As Integer, _
ByVal dwStackSize As Integer, _
ByVal lpStartAddress As Integer, _
ByVal lpParameter As Integer, _
ByVal dwCreationFlags As Integer, _
ByRef lpThreadId As Integer) As Integer
[/php]
Then for the process:
[php] ByVal hModule As Integer, ByVal lpProcName As String) As Integer
Private Declare Function GetModuleHandle Lib "Kernel32" Alias "GetModuleHandleA" ( _
ByVal lpModuleName As String) As Integer
Public Declare Function CreateRemoteThread Lib "kernel32" ( _
ByVal hProcess As Integer, _
ByVal lpThreadAttributes As Integer, _
ByVal dwStackSize As Integer, _
ByVal lpStartAddress As Integer, _
ByVal lpParameter As Integer, _
ByVal dwCreationFlags As Integer, _
ByRef lpThreadId As Integer) As Integer
[/php]
And finally ad this under This module above:
[php] Public Declare Function OpenProcess Lib "kernel32" ( _
ByVal dwDesiredAccess As Integer, _
ByVal bInheritHandle As Integer, _
ByVal dwProcessId As Integer) As Integer
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" ( _
ByVal lpClassName As String, _
ByVal lpWindowName As String) As Integer
Private Declare Function CloseHandle Lib "kernel32" Alias "CloseHandleA" ( _
ByVal hObject As Integer) As Integer
[/php]
Now you gonna Import your ExeName So for: Your .dll Injection:
[php] Dim ExeName As String = IO.Path.GetFileNameWithoutExtension(Application.Ex ecutablePath)[/php]
Now We Gonna make the 'Inject' Part for our game client!
[php]Private Sub Inject()
On Error GoTo 1 ' If there is any error there will no messages
Timer1.Stop()
Dim TargetProcess As Process() = Process.GetProcessesByName("WarRock")
TargetProcessHandle = OpenProcess(PROCESS_CREATE_THREAD Or PROCESS_VM_OPERATION Or PROCESS_VM_WRITE, False, TargetProcess(0).Id)
pszLibFileRemote = Application.StartupPath & "\" + ExeName + ".dll"
pfnStartAddr = GetProcAddress(GetModuleHandle("Kernel32"), "LoadLibraryA")
TargetBufferSize = 1 + Len(pszLibFileRemote)
Dim Rtn As Integer
Dim LoadLibParamAdr As Integer
LoadLibParamAdr = VirtualAllocEx(TargetProcessHandle, 0, TargetBufferSize, MEM_COMMIT, PAGE_READWRITE)
Rtn = WriteProcessMemory(TargetProcessHandle, LoadLibParamAdr, pszLibFileRemote, TargetBufferSize, 0)
CreateRemoteThread(TargetProcessHandle, 0, 0, pfnStartAddr, LoadLibParamAdr, 0, 0)
CloseHandle(TargetProcessHandle)
1: Me.Close()
End Sub
[/php]
Now add this code to your timer:
[php]If IO.File.Exists(Application.StartupPath & "\" + ExeName + ".dll") Then
Dim TargetProcess As Process() = Process.GetProcessesByName("HSUpdate")
If TargetProcess.Length = 0 Then
Me.TextBox1.Text = ("Waiting for WarRock.exe")
Me.TextBox2.Text = ("Let's Hack with Mpgh.net")
Else
Timer1.Stop()
Me.TextBox1.Text = "Injected!"
Call Inject()
End If
Else
Me.TextBox1.Text = ("" + ExeName + ".dll not found")
Me.TextBox2.Text = ("Rename the .dll To " + "" + ExeName)
End If
[/php]
Finally add this code to your Form1_load:
[php] Timer1.Interval = 50
Timer1.Start()
[/php]
Testing injetor:
Its to let timer Start for injection!
Enjoy!
Project Info:
Ready-to-use Pack.
It has included Source + injector!
VirusScan *virustotal.com*
You can change everything in injector you want.
You can also change design
If your new to this, then i should recommend don't change the codes.
Goodluck!
Last edited by AeroMan; 02-19-2010 at 01:48 PM.
-MAJ (07-16-2012),alfisyukri (07-04-2011),Kryo4lex (05-04-2012),nanaxyu (08-04-2012),Templar (06-08-2012),TomAnderson (08-24-2012)
mine is better cuz u can chose the Process
Press Thank You[IMG]https://i45.tinypic.com/2hg8w0n.jpghttps://img1.UploadScreensho*****m/images/main/2/3203234450.jpg[/IMG]
My Releases
Injector 3G
Injector 2G
Injector 1G
Super Spammer
CA Cleaner
My Tutorials
How to Make a real Injector(PerX)
How to Make a Calculator(leeched)
the code for my injector is wayy shorter then this and has 0 errors
hopefordope's injectors are the best 4 ever
IMO, immortals is better, and hopes, isn't "hopes" its modifed immortal / Ugleh "used as a base"
Not Work...
Its Work But Now Work In Inject Program//...!
Uhm, Doesn't this go in
WarRock Hack Source Code - MPGH - MultiPlayer Game Hacking
or
WarRock - International Hacks - MPGH - MultiPlayer Game Hacking
?
Please tell me if i'm mistaken, :/
iiNarbz (05-11-2012)