Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    DeathHunter's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Naxxar,Malta.
    Posts
    4,018
    Reputation
    13
    Thanks
    1,385
    My Mood
    Brooding

    [TUT]How to make an Advanced Injector!


    What we gonna do?
    We are going to do an Advanced Injector.

    What Items we will have?
    • 5 Buttons.
    • 1 Label.
    • 1 TextBox.
    • 1 ListBox.
    • 1 Timer.
    • 1 OpenFileDialog.

    So do 5 Buttons.
    Name Button1 "Clear Selected"
    Name Button2 "Clear Process"
    Name Button3 "Clear List"
    Name Button4 "Browse"
    Name Button5 "Inject"

    Do a Label.

    Do a TextBox.

    Do a ListBox and name ListBox1 to "Dlls"

    Do a OpenFileDialog and go to Properties and MultiSelect do it True.

    Add a Timer.

    Click on Form1 and delete the words and copy and paste this:
    Code:
    Public Class Form1
        Private TargetProcessHandle As Integer
        Private pfnStartAddr As Integer
        Private pszLibFileRemote As String
        Private TargetBufferSize As Integer
    
        Public Const PROCESS_VM_READ = &H10
        Public Const TH32CS_SNAPPROCESS = &H2
        Public Const MEM_COMMIT = 4096
        Public Const PAGE_READWRITE = 4
        Public Const PROCESS_CREATE_THREAD = (&H2)
        Public Const PROCESS_VM_OPERATION = (&H8)
        Public Const PROCESS_VM_WRITE = (&H20)
        Dim DLLFileName As String
        Public Declare Function ReadProcessMemory Lib "kernel32" ( _
        ByVal hProcess As Integer, _
        ByVal lpBaseAddress As Integer, _
        ByVal lpBuffer As String, _
        ByVal nSize As Integer, _
        ByRef lpNumberOfBytesWritten As Integer) As Integer
    
        Public Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" ( _
        ByVal lpLibFileName As String) As Integer
    
        Public Declare Function VirtualAllocEx Lib "kernel32" ( _
        ByVal hProcess As Integer, _
        ByVal lpAddress As Integer, _
        ByVal dwSize As Integer, _
        ByVal flAllocationType As Integer, _
        ByVal flProtect As Integer) As Integer
    
        Public Declare Function WriteProcessMemory Lib "kernel32" ( _
        ByVal hProcess As Integer, _
        ByVal lpBaseAddress As Integer, _
        ByVal lpBuffer As String, _
        ByVal nSize As Integer, _
        ByRef lpNumberOfBytesWritten As Integer) As Integer
    
        Public Declare Function GetProcAddress Lib "kernel32" ( _
        ByVal hModule As Integer, ByVal lpProcName As String) As Integer
    
        Private Declare Function GetModuleHandle Lib "Kernel32" Alias "GetModuleHandleA" ( _
        ByVal lpModuleName As String) As Integer
    
        Public Declare Function CreateRemoteThread Lib "kernel32" ( _
        ByVal hProcess As Integer, _
        ByVal lpThreadAttributes As Integer, _
        ByVal dwStackSize As Integer, _
        ByVal lpStartAddress As Integer, _
        ByVal lpParameter As Integer, _
        ByVal dwCreationFlags As Integer, _
        ByRef lpThreadId As Integer) As Integer
    
        Public Declare Function OpenProcess Lib "kernel32" ( _
        ByVal dwDesiredAccess As Integer, _
        ByVal bInheritHandle As Integer, _
        ByVal dwProcessId As Integer) As Integer
    
        Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" ( _
        ByVal lpClassName As String, _
        ByVal lpWindowName As String) As Integer
    
        Private Declare Function CloseHandle Lib "kernel32" Alias "CloseHandleA" ( _
        ByVal hObject As Integer) As Integer
        Dim ExeName As String = IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath)
        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
    
        Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk
    
        End Sub
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Button1.Text = "Clear Selected"
            Label1.Text = "Waiting for Process Start..."
            Timer1.Interval = 50
            Timer1.Start()
    
        End Sub
    
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            If IO.File.Exists(OpenFileDialog1.FileName) Then
                Dim TargetProcess As Process() = Process.GetProcessesByName(TextBox1.Text)
                If TargetProcess.Length = 0 Then
                    Me.Label1.Text = ("Waiting for " + TextBox1.Text + ".exe...")
                Else
                    Timer1.Stop()
                    Me.Label1.Text = "Successfully Injected!"
                    Call Inject()
    
    
    
                End If
            End If
    
    
        End Sub
    
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            For i As Integer = (Dlls.SelectedItems.Count - 1) To 0 Step -1
                Dlls.Items.Remove(Dlls.SelectedItems(i))
            Next
    
        End Sub
    
        Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            TextBox1.Clear()
    
        End Sub
    
        Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
            Dlls.Items.Clear()
    
        End Sub
    
        Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
            OpenFileDialog1.Filter = "DLL (*.dll) |*.dll|(*.*) |*.*"
            OpenFileDialog1.ShowDialog()
            Dim FileName As String
            FileName = OpenFileDialog1.FileName.Substring(OpenFileDialog1.FileName.LastIndexOf("\"))
            Dim DllFileName As String = FileName.Replace("\", "")
            Me.Dlls.Items.Add(DllFileName)
    
        End Sub
        Private Function GetAsyncKeyState(ByVal vKey As Integer) As Short
    
            If GetAsyncKeyState(Keys.F12) Then
                If IO.File.Exists(OpenFileDialog1.FileName) Then
                    Dim TargetProcess As Process() = Process.GetProcessesByName(TextBox1.Text)
                    If TargetProcess.Length = 0 Then
    
                        Me.Label1.Text = ("Waiting for " + TextBox1.Text + ".exe Injection(F12)...")
                    Else
                        Timer1.Stop()
                        Me.Label1.Text = "Successfully Injected!"
                        Call Inject()
                        ' If CheckBox1.Checked = True Then
                        'Me.Close()
                        'Else
                        ' End If
                    End If
                Else
                End If
            End If
    
        End Function
    
        Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
            If IO.File.Exists(OpenFileDialog1.FileName) Then
                Dim TargetProcess As Process() = Process.GetProcessesByName(TextBox1.Text)
                If TargetProcess.Length = 0 Then
    
                    Me.Label1.Text = ("Waiting for " + TextBox1.Text + ".exe Injection(F12)...")
                Else
                    Timer1.Stop()
                    Me.Label1.Text = "Successfully Injected!"
                    Call Inject()
                    ' If CheckBox1.Checked = True Then
                    'Me.Close()
                    'Else
                    ' End If
                End If
            Else
            End If
    
        End Sub
    End Class
    NOTE:
    This may have some errors because I didn't fully checked it and I need to edit the thread to make it more easy to do.

    Credits of codes:
    Immortal
    Ugleh
    d3y3q3
    Last edited by DeathHunter; 04-13-2010 at 08:15 AM.

  2. The Following 7 Users Say Thank You to DeathHunter For This Useful Post:

    Comet (04-30-2010),dan1raruto (04-24-2011),gta_santos (03-30-2011),InCapacitated (09-09-2010),jhefrey (09-28-2010),MostWantedHack (12-14-2010),~Shadow (08-08-2010)

  3. #2
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Isn't this posted serval times?
    -Rest in peace leechers-

    Your PM box is 100% full.

  4. #3
    DeathHunter's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Naxxar,Malta.
    Posts
    4,018
    Reputation
    13
    Thanks
    1,385
    My Mood
    Brooding
    I don't know lol/

  5. #4
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Yes, so for the sake of this section as it isn't anything really knew to us

    /moved to tutorials

    However, thank you


     


     


     



    The Most complete application MPGH will ever offer - 68%




  6. #5
    Julma Henri's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,528
    Reputation
    205
    Thanks
    775
    My Mood
    In Love
    I tested it no errors!

  7. #6
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Quote Originally Posted by NoobsAreOwnage View Post
    I tested it no errors!
    big bump is big
    Ah we-a blaze the fyah, make it bun dem!

  8. #7
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by NoobsAreOwnage View Post
    I tested it no errors!
    Bumb + old thread = bai bai
    -Rest in peace leechers-

    Your PM box is 100% full.

  9. #8
    Casey95's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Your BED ;)
    Posts
    656
    Reputation
    4
    Thanks
    457
    My Mood
    Amused
    Error with the dlls Error 1 Name 'Dlls' is not declared. C:\Users\Casey\Desktop\Form1.vb 115 29 Injector

  10. The Following User Says Thank You to Casey95 For This Useful Post:

    Devougn (03-11-2011)

  11. #9
    fallon99's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    55
    Reputation
    10
    Thanks
    2
    My Mood
    Angry
    Quote Originally Posted by Casey95 View Post
    Error with the dlls Error 1 Name 'Dlls' is not declared. C:\Users\Casey\Desktop\Form1.vb 115 29 Injector
    hey same thing for me



    my respect list

    [MPGH]zoom
    [MPGH]ali
    [MPGH]reaper
    inc3ndium
    Mr.RandomSpam




    my goal done not done

    get 50 posts []

    get 100 posts []

    get 200 posts []

    get kicked from a game for hack []

    get kicked from a game before be a noob []

    get kicked from a game for be a pro []

    finaly find how do fix your signature []

    find a swe on mpgh.net []

  12. #10
    ~Shadow's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    STL
    Posts
    3,061
    Reputation
    33
    Thanks
    412
    My Mood
    Happy
    Quote Originally Posted by fallon99 View Post
    hey same thing for me
    dont bump threads please.

  13. #11
    fallon99's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    55
    Reputation
    10
    Thanks
    2
    My Mood
    Angry
    Quote Originally Posted by ~Jay~ View Post
    dont bump threads please.
    and that means?



    my respect list

    [MPGH]zoom
    [MPGH]ali
    [MPGH]reaper
    inc3ndium
    Mr.RandomSpam




    my goal done not done

    get 50 posts []

    get 100 posts []

    get 200 posts []

    get kicked from a game for hack []

    get kicked from a game before be a noob []

    get kicked from a game for be a pro []

    finaly find how do fix your signature []

    find a swe on mpgh.net []

  14. #12
    Shadeyz346's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    General.
    Posts
    4,023
    Reputation
    133
    Thanks
    240
    My Mood
    In Love
    Quote Originally Posted by fallon99 View Post
    and that means?
    it means don't post on threads that are posted 1 week or older , that may due to a ban and me myself i cant remember how much is it's period
    read rules man

  15. #13
    BadBlood's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    470
    Reputation
    11
    Thanks
    182
    My Mood
    Chatty
    No Errors But Not Inject

  16. #14
    voodooflame's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Help and Releases
    Posts
    251
    Reputation
    10
    Thanks
    87
    My Mood
    Yeehaw
    Quote Originally Posted by BadBlood View Post
    No Errors But Not Inject
    same can you plz fix...

    (srry for bump but i really want to make my own injector but i dont know VB coding i only know basic C++)




    ~!My Releases!~
    Graffiti-Like Login Mod
    Naruto Login Mod
    VFCxInjector V1.0
    VFCxInjector V2.0
    VFCxInjector V3.0

    Do you have the guts to click this...?

    To Do List:
    Use a SpeedHack & GunHack & Aimbot for Crossfire
    100 Posts

    500 Posts
    Make my Own Mod
    Learn C++
    [PAUSED]
    Code my Own hack
    Code my Own Injector

    [IMG]https://i774.photobucke*****m/albums/yy22/batuzai43/dontforget.gif[/IMG]

  17. #15
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by Casey95 View Post
    Error with the dlls Error 1 Name 'Dlls' is not declared. C:\Users\Casey\Desktop\Form1.vb 115 29 Injector
    How about try renaming your listbox to "dlls"

    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)

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

    NextGen1 (09-18-2010)

Page 1 of 2 12 LastLast

Similar Threads

  1. [TUT] How to make an Injector
    By hopefordope in forum Programming Tutorials
    Replies: 68
    Last Post: 05-27-2021, 11:26 AM
  2. How to make a Advanced Injector
    By Crazy Turks in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 17
    Last Post: 05-04-2011, 06:48 AM
  3. [TUT]How to make a Simple Injector!
    By DeathHunter in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 38
    Last Post: 09-14-2010, 04:08 AM
  4. [TUT]How to make an Advanced Injector!
    By DeathHunter in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 45
    Last Post: 09-09-2010, 08:30 PM
  5. [REQUEST][TUT]How to make injector for hacks in VB8
    By Pixie in forum Visual Basic Programming
    Replies: 19
    Last Post: 10-10-2009, 05:43 AM