Results 1 to 4 of 4
  1. #1
    I love myself
    나도 너를 사랑해

    Former Staff
    Premium Member
    Jhem's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    167,646,447
    Posts
    5,150
    Reputation
    1220
    Thanks
    7,392
    My Mood
    Stressed

    Injector How To Inject A Dll From My Resources.

    This Is Correct?

    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")
            TargetProcessHandle = OpenProcess(PROCESS_CREATE_THREAD Or PROCESS_VM_OPERATION Or PROCESS_VM_WRITE, False, TargetProcess(0).Id)
            pszLibFileRemote = My.Resources.DLLNAME
            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.Close()
        End Sub
    And This

    Code:
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            If IO.File.Exists(My.Resources.DLLNAME) Then
                Dim TargetProcess As Process() = Process.GetProcessesByName("HSUpdate")
                If TargetProcess.Length = 0 Then
                    Me.TextBox1.Text = ("Waiting for Warrock.exe")
                    Me.TextBox2.Text = ("Let´s Hack")
                Else
                    Timer1.Stop()
                    Me.TextBox1.Text = "Done..."
                    Call Inject()
                End If
            End If
        End Sub

    Need Help....Thanks..
    Last edited by Jhem; 05-06-2012 at 03:05 AM.

  2. #2
    .DLL's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    165
    Reputation
    10
    Thanks
    14
    I don't know bout that but I know you shouldn't
    send the messagebox + stop the timer if the 'call Inject()' isn't called when I tried that mine bugged up.
    I'm talking bout this.
    Code:
                    Timer1.Stop()
                    Me.TextBox1.Text = "Done..."
                    Call Inject()

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

    iiNarbz (05-11-2012)

  4. #3
    Raow's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    47°37′39″N 122°14′32″W
    Posts
    2,720
    Reputation
    140
    Thanks
    594
    i don't think you can directly inject a file from my.resources, try extracting it.
    Code:
    dim hackdll
    hackdll = my.computer.filesystem.readallbytes(my.resources.DLLNAME)
    my.computer.filesystem.writeallbytes(hackdll,application.startuppath + "\hack.dll")
    then instead of saying
    Code:
    pszLibFileRemote = My.Resources.DLLNAME
    you would say
    Code:
    pszLibFileRemote = application.startuppath + "\hack.dll"
    if you would like you can move the file to a better folder like "Temp" or appdata.
    i know you can get it to app data using the My.Computer.FileSystem.SpecialDirectories.AllUsers ApplicationData

    Good luck!

  5. #4
    Pingo's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    687
    Reputation
    24
    Thanks
    865
    My Mood
    Blah
    Edit
    nvm i was thinking of something different. Running the .dll from within the .exe without injectiing or writing the .dll to file.
    Last edited by Pingo; 05-25-2012 at 03:17 PM.

Similar Threads

  1. how to inject a dll
    By hiphopj in forum Combat Arms Help
    Replies: 3
    Last Post: 07-04-2010, 11:52 PM
  2. Could i get some help for an Injector that injects a dll from ftp?
    By Sydney in forum Visual Basic Programming
    Replies: 9
    Last Post: 06-29-2010, 07:03 AM
  3. [Release] D# Injector - DLL Injector that can inject multiple DLLs!
    By ZenoCoder in forum Combat Arms Hacks & Cheats
    Replies: 15
    Last Post: 05-12-2010, 05:25 AM
  4. HOW TO INJECT Plural DLLs?
    By chenxiu94 in forum Alliance of Valiant Arms (AVA) Hacks & Cheats
    Replies: 4
    Last Post: 10-24-2009, 12:23 PM
  5. How To Inject A .DLL
    By miksdubom in forum General
    Replies: 6
    Last Post: 08-05-2009, 07:36 PM