Thread: Injector Code

Results 1 to 8 of 8
  1. #1
    Some people aren't satisfied on what God has given to them.
    MPGH Member
    αςε.εmόkόι's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    Anywhere
    Posts
    1,645
    Reputation
    10
    Thanks
    750

    Injector Code

    I am requesting all of Visual Basic Codes.

    Can i get the source of making Injector.
    Simple Injector only.

    1. Automatic Injection
    2. Manual Injection
    3. Close after Injection
    4. Browse a File
    5. Remove Selected
    6. Remove all File

    Can i get the source of that?
    I mean FULL SOURCE

    From the TOP up to BUTTON

    I know how to design it .

    Pleas guys. mff
    Quote Originally Posted by Ace Suazo
    There are no easy answer's but there are simple answers
    We must have the courage to do what is morally right

    Copyrighted by: Ace Suazo
    All Rights Reserved.

    Ask permission to me before sharing my works.

  2. #2
    Pingo's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    687
    Reputation
    24
    Thanks
    865
    My Mood
    Blah
    @akincbhevz
    I would say use the source on youtube but that source is used by everyone and is the same source here.
    Most of the people here just copy paste not knowing what the code actually does.

    Would you like to be shown how to make an injector from scratch. Im willing to show you over team viewer.
    You might actually learn something from it. Been shown how to do something is better than being given or copy/pasting it.

  3. #3
    Justin's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    7,085
    Reputation
    1339
    Thanks
    2,868
    My Mood
    Inspired
    Quote Originally Posted by akincbhevz View Post
    I am requesting all of Visual Basic Codes.

    Can i get the source of making Injector.
    Simple Injector only.

    1. Automatic Injection
    2. Manual Injection
    3. Close after Injection
    4. Browse a File
    5. Remove Selected
    6. Remove all File

    Can i get the source of that?
    I mean FULL SOURCE

    From the TOP up to BUTTON

    I know how to design it .

    Pleas guys. mff
    What Items will we have?

    * 5 Buttons.
    * 1 Label.
    * 1 TextBox.
    * 1 ListBox.
    * 1 Timer.
    * 1 OpenFileDialog.


    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
    And then Design and add code accordingly, This has automatic Injection but you may to look for auto-close after injection and manual injection codes with timer adjustments as well. This is a good base to start with.
    Last edited by Justin; 07-29-2012 at 06:55 PM.

    Minion Statistics

    Ex-Console Minion: 13/01/2011 ~ 19/04/2011
    Console Re-Minion: 14/06/2012 ~ 27/02/2013
    AVA Minion: 22/06/2012 ~ 12/11/2012
    Battlefield Minion: 04/02/2013 ~ 27/02/2013

  4. The Following 3 Users Say Thank You to Justin For This Useful Post:

    αςε.εmόkόι (07-30-2012),<<< >>> (09-04-2012),Dayton_Hacks (10-26-2012)

  5. #4
    Threadstarter
    Some people aren't satisfied on what God has given to them.
    MPGH Member
    αςε.εmόkόι's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    Anywhere
    Posts
    1,645
    Reputation
    10
    Thanks
    750
    Quote Originally Posted by REVIVE View Post


    What Items will we have?

    * 5 Buttons.
    * 1 Label.
    * 1 TextBox.
    * 1 ListBox.
    * 1 Timer.
    * 1 OpenFileDialog.


    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
    And then Design and add code accordingly, This has automatic Injection but you may to look for auto-close after injection and manual injection codes with timer adjustments as well. This is a good base to start with.
    Oh god.. THANKS for this..
    If i have a time..

    I will post injector Credits goes to you.

    I LOVE YOU MAN!
    Quote Originally Posted by Ace Suazo
    There are no easy answer's but there are simple answers
    We must have the courage to do what is morally right

    Copyrighted by: Ace Suazo
    All Rights Reserved.

    Ask permission to me before sharing my works.

  6. The Following User Says Thank You to αςε.εmόkόι For This Useful Post:

    look3006 (08-31-2012)

  7. #5
    Paul's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    6,296
    Reputation
    473
    Thanks
    1,061
    My Mood
    Sleepy


  8. The Following User Says Thank You to Paul For This Useful Post:

    Rory (08-23-2012)

  9. #6
    Rory's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    IN MPGH
    Posts
    1,872
    Reputation
    10
    Thanks
    181
    My Mood
    Cold
    Quote Originally Posted by Paul View Post
    Thanks Man

  10. #7
    R3Dx666†'s Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Steam: MrTricklez
    Posts
    1,723
    Reputation
    141
    Thanks
    2,915
    My Mood
    Devilish
    it wont inject dlls for me

  11. #8
    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 jameshk67 View Post
    it wont inject dlls for me
    Then learn how injectors work. And use Jason's code for injection: https://www.mpgh.net/forum/33-visual-...epth-look.html

Similar Threads

  1. Adv. Injector coded
    By 21sean21 in forum Combat Arms Help
    Replies: 2
    Last Post: 06-03-2010, 07:45 AM
  2. Adv. Injector coded
    By 21sean21 in forum Combat Arms Help
    Replies: 1
    Last Post: 06-03-2010, 01:49 AM
  3. [Help] Injector Code
    By Invidus in forum Visual Basic Programming
    Replies: 10
    Last Post: 02-27-2010, 08:54 PM
  4. [Question]About Vb8 Auto Injector Codes [Selectable Process]
    By nathanael890 in forum Visual Basic Programming
    Replies: 4
    Last Post: 02-14-2010, 08:44 AM
  5. VB INJECTOR CODE
    By asdf12345678 in forum Visual Basic Programming
    Replies: 16
    Last Post: 11-02-2009, 03:26 PM