Results 1 to 7 of 7
  1. #1
    -Ale3mend0's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    7
    Reputation
    7
    Thanks
    5
    My Mood
    Confused

    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

  2. #2
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Just use the sticky at the top of the page.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  3. The Following User Says Thank You to Jason For This Useful Post:

    Hassan (03-29-2012)

  4. #3
    -Ale3mend0's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    7
    Reputation
    7
    Thanks
    5
    My Mood
    Confused
    i wont htat somebody fix this.. please

  5. #4
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Learn to code an fix it yourself then. This is clearly leeched.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  6. #5
    -Ale3mend0's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    7
    Reputation
    7
    Thanks
    5
    My Mood
    Confused
    so, this zone for wtf is? -.- i have a problem, i post in help zone and you say fix for yourself -.-

  7. #6
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    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: https://www.mpgh.net/forum/33-visual-...epth-look.html

    Read and understand it. The code is also there.

  8. #7
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    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 Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  9. The Following User Says Thank You to Jason For This Useful Post:

    Hassan (03-30-2012)

Similar Threads

  1. PerX Injector for injection problems.
    By mrbloog in forum CrossFire Hacks & Cheats
    Replies: 2
    Last Post: 12-16-2009, 01:01 PM
  2. [Help] Injecting Problem.
    By Lollekes in forum CrossFire Hacks & Cheats
    Replies: 9
    Last Post: 11-10-2009, 12:29 AM
  3. Injection Problems
    By SyCHoTiX in forum Alliance of Valiant Arms (AVA) Hacks & Cheats
    Replies: 8
    Last Post: 11-05-2009, 01:52 AM
  4. INJECTING PROBLEM! HELP!
    By Mirtsu in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 07-16-2009, 10:55 AM