[Help]WarRock injector doesn't work
Hello MPGH!
Ohh please help me
!
I've tried to make a injector for WarRock but it doesn't inject the .dll.
Here is the code of the inject part of the whole script:
Yes, the script is NOT from me. But I'm trying to get better skills in BASIC.
Please help me with that problem.
Greeting
edrsvc
Ohh please help me
!I've tried to make a injector for WarRock but it doesn't inject the .dll.
Here is the code of the inject part of the whole script:
Code:
Private Sub Inject()
On Error GoTo 1 ' If error occurs, app will close without any error messages
Timer1.Stop()
Dim TargetProcess As Process() = Process.GetProcessesByName("WarRock")
TextBox2.Text = (time + "Process found!!")
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: TextBox1.Text = ("Error:")
TextBox2.Text = (time + ": Please run as Administrator")
End Sub
Please help me with that problem.

Greeting
edrsvc


