Hi elitepvpers i want to share with you a way to make your own injector guaranted with no viruses.
You only need autoit > Download it from here.. [Only registered and activated users can see links. Click Here To Register...]
And the code:
Like in the second Example:
VT: [Only registered and activated users can see links. Click Here To Register...]
Those who have never use autoit and want to learn something don't be affraid of asking any doubts :rolleyes:
Press Thanks if it helped ;)
Lets start
You only need autoit > Download it from here.. [Only registered and activated users can see links. Click Here To Register...]
And the code:
Just copy and paste the code to your script or download the script and add to your includes C:\Program Files\AutoIt3\Include\Quote:
#Region dll injector
Func _InjectDll($ProcessId, $DllPath)
If $ProcessId == 0 Then Return SetError(1, "", False)
If Not(FileExists($DllPath)) Then Return SetError(2, "", False)
If Not(StringRight($DllPath, 4) == ".dll") Then Return SetError(3, "", False)
$Kernel32 = DllOpen("kernel32.dll")
If @error Then Return SetError(4, "", False)
$DLL_Path = DllStructCreate("char[255]")
DllCall($Kernel32, "DWORD", "GetFullPathNameA", "str", $DllPath, "DWORD", 255, "ptr", DllStructGetPtr($DLL_Path), "int", 0)
If @error Then Return SetError(5, "", False)
$hProcess = DllCall($Kernel32, "DWORD", "OpenProcess", "DWORD", 0x1F0FFF, "int", 0, "DWORD", $ProcessId)
If @error Then Return SetError(6, "", False)
$hModule = DllCall($Kernel32, "DWORD", "GetModuleHandleA", "str", "kernel32.dll")
If @error Then Return SetError(7, "", False)
$lpStartAddress = DllCall($Kernel32, "DWORD", "GetProcAddress", "DWORD", $hModule[0], "str", "LoadLibraryA")
If @error Then Return SetError(8, "", False)
$lpParameter = DllCall($Kernel32, "DWORD", "VirtualAllocEx", "int", $hProcess[0], "int", 0, "ULONG_PTR", DllStructGetSize($DLL_Path), "DWORD", 0x3000, "int", 4)
If @error Then Return SetError(9, "", False)
DllCall("kernel32.dll", "BOOL", "WriteProcessMemory", "int", $hProcess[0], "DWORD", $lpParameter[0], "str", DllStructGetData($DLL_Path, 1), "ULONG_PTR", DllStructGetSize($DLL_Path), "int", 0)
If @error Then Return SetError(10, "", False)
$hThread = DllCall($Kernel32, "int", "CreateRemoteThread", "DWORD", $hProcess[0], "int", 0, "int", 0, "DWORD", $lpStartAddress[0], "DWORD", $lpParameter[0], "int", 0, "int", 0)
If @error Then Return SetError(11, "", False)
DllCall($Kernel32, "BOOL", "CloseHandle", "DWORD", $hProcess[0])
DllClose($Kernel32)
Return SetError(0, "", True)
EndFunc
#endregion
Like in the second Example:
i think this will help someone who only trust on things homemade :DQuote:
#include <Dll_inject.au3>
ToolTip("Waiting for injection",0,0)
_InjectDll(ProcessWait("S4Client.exe"),"your dll path goes here")
if not @error Then
MsgBox(0,"Success","Succesful injected",2)
Else
MsgBox(0,"Error","Injection failed")
EndIf
#CS
_InjectDll($ProcessId,$DllPath)
$ProcessId must be expressed with processwait("yourProcess.exe")
$DllPath for Example if your dll is in the same folder of your injector you can type this @ScriptDir & "\thefucking.dll"
so with those examples we get
_InjectDll(ProcessWait("yourProcess.exe"), @ScriptDir & "\thefucking.dll")
or if we want another one
_InjectDll(ProcessWait("yourProcess.exe"), @ScriptDir & "\thefucking.dll2")
#CE
VT: [Only registered and activated users can see links. Click Here To Register...]
Those who have never use autoit and want to learn something don't be affraid of asking any doubts :rolleyes:
Press Thanks if it helped ;)