SolvedInjection Problem

Posts 1–7 of 7 · Page 1 of 1
Injection Problem
Hi i'm making a dll injector,all work but the dll won't be injected.... this is the function wat's wrong?
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(TextBox1.Text)
        TargetProcessHandle = OpenProcess(PROCESS_CREATE_THREAD Or PROCESS_VM_OPERATION Or PROCESS_VM_WRITE, False, TargetProcess(0).Id)
        pszLibFileRemote = OpenFileDialog1.FileName
        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.Show()
    End Sub
Just use the sticky at the top of the page.
i wont htat somebody fix this.. please
Learn to code an fix it yourself then. This is clearly leeched.
so, this zone for wtf is? -.- i have a problem, i post in help zone and you say fix for yourself -.-
There's a difference between 'helping' and 'spoonfeeding'. You gave us a block of leeched code, no error messages provided and said "fix this". That's not helping you, that's us being your bitch. I've pointed you to a valid source of information which explains the whole injection concept but you refused to go there so I'm refusing to give you any more help. SOIYA.
Quote Originally Posted by -Ale3mend0 View Post
so, this zone for wtf is? -.- i have a problem, i post in help zone and you say fix for yourself -.-
We are here to help you but when you do a straight copy paste, we cannot. Jason told you to read his stickied thread but you refused to do so. You were already given the appropriate answer.

One more time, here's the link: http://www.mpgh.net/forum/33-visual-...epth-look.html

Read and understand it. The code is also there.
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?