[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:
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
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
OHHH SORRY!!!! I'll delete it!
Just wait for Wes to move it.
It's because that "script" fails.
You need to use a newer copypastable source, or write your own.
Theres a search button for a reason.
Thank you verry much for your fast answers! I'm trying to solve my problem with your answers.
You two got a thanks from me.
I'll post a message if it works or not.