Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    taylan's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    In your Sisters Bed, Germany
    Posts
    240
    Reputation
    18
    Thanks
    258
    My Mood
    Happy

    Thumbs up [Tutorial] How to make a Injector [Tutorial]

    Hey Mpgh Users !

    Today i want to show you how to make a working Injector for Warrock .If you need help then post a reply and press the thanks button.


    You need VB ( Visual Basic 2008 ) to create an Injector.
    Download :https://download.microsof*****m/downlo...A0/vbsetup.exe

    Step1.Downlaod & Install VB
    Step2.Open VB
    Step3.Create a new Project
    Step4.Rename your Project to Warrock Injector or something
    Step5.Open the ToolBox ( on the left side )
    Step5.Put in this following stuff´s
    >1 Timer + 2 TextBoxes

    Like this


    Step 6 : twice click your Form 1
    Step 7. Now you will see this Code

    Code:
    Public Class Form1
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
        End Sub
    End Class
    Step8. Delet this Code
    Step9.Now you have to add this Code

    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)
    
        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("WarRock")
            TargetProcessHandle = OpenProcess(PROCESS_CREATE_THREAD Or PROCESS_VM_OPERATION Or PROCESS_VM_WRITE, False, TargetProcess(0).Id)
            pszLibFileRemote = Application.StartupPath & "\" + ExeName + ".dll"
            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
    
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            If IO.File.Exists(Application.StartupPath & "\" + ExeName + ".dll") Then
                Dim TargetProcess As Process() = Process.GetProcessesByName("HSUpdate")
                If TargetProcess.Length = 0 Then
                    Me.TextBox1.Text = ("Waiting for Warrock.exe")
                    Me.TextBox2.Text = ("Have Fun ! Your Hack is now injected!")
                Else
                    Timer1.Stop()
                    Me.TextBox1.Text = "Loading... Loading ..."
                    Call Inject()
                End If
            Else
                Me.TextBox1.Text = ("" + ExeName + ".dll not found")
                Me.TextBox2.Text = ("Rename the .dll To " + "" + ExeName)
            End If
        End Sub
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Timer1.Interval = 50
            Timer1.Start()
        End Sub
    
        Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged
    
        End Sub
    End Class

    Step 10.Click now on the green arrow or press F5 if you dont find the arrow to Debugg than you can test your Injector.

    Step 11.Close your Injector

    Step12. Click on : File>Save All (it it apears a Box than press to save )
    Step13. Go to My Documents>Visual Studio 2008>Projects>Your Project Name>Bin>Debugg>Click on the .Exe file
    ++++++++++++++++++++++++
    ++Done with Creating Injector+++
    ++End Sub xD++++++++++++++

    ----------------------------------------------------------------------------------------------
    ++++++++++++++++++++Extra+++++++++++++++++++++++++ +++
    How can i change the Icon of my Injector?
    >Click on your Form >search for "Icon " in the properties List.Click to the little box and choose your icon.



    How can i change the Name of my Form?
    >Click on your Form search for this text :
    Code:
    Text :  Form1
    >Change the Form1 to what ever u want like Injector.

    How can i add an Images for the Background ?
    >Click on your form
    >search for Background Image and browse the image u want.


    [Sorry for my bad english]

    Greetings Taylan

    Code:
    If it helps you Then
     Press the Thanks Button
    End If 
    XDD
    Last edited by taylan; 06-25-2010 at 06:58 PM.

    Know how to create a No Menu Hack= Done
    Know how to make a Injector = Done
    Know how to make a D3D Menu Hack = Done


    Hate me, Hit me, Hurt me, Destroy me, but NEVER say that you love me

    Xfire : taylan14
    Skype: taylann13
    Msn : taylan-11@hotmail.de[/EMAIL]

    We are unable to come to the phone right now. At the tone, please leave your name, number, and Master Card, Visa, or American Express account number and we'll get back to, pending credit approval.

  2. The Following 12 Users Say Thank You to taylan For This Useful Post:

    brester (07-13-2010),dan1raruto (04-23-2011),Exeem (07-24-2010),fallon99 (07-23-2010),llll666llll (08-11-2010),Px<- (08-07-2011),reaper (06-25-2010),Scyphrex (07-10-2010),simohack98 (04-21-2011),str1ke_bl4ze (09-18-2011),XpeinX (06-29-2010),xXxTOAxXx (07-15-2010)

  3. #2
    reaper's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    The Deep South
    Posts
    5,247
    Reputation
    58
    Thanks
    1,077
    My Mood
    Relaxed
    Wow dude thank you, good job

  4. The Following User Says Thank You to reaper For This Useful Post:

    taylan (06-25-2010)

  5. #3
    taylan's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    In your Sisters Bed, Germany
    Posts
    240
    Reputation
    18
    Thanks
    258
    My Mood
    Happy
    Thanks Reaper.....I will do my best because i want a better rank

    Know how to create a No Menu Hack= Done
    Know how to make a Injector = Done
    Know how to make a D3D Menu Hack = Done


    Hate me, Hit me, Hurt me, Destroy me, but NEVER say that you love me

    Xfire : taylan14
    Skype: taylann13
    Msn : taylan-11@hotmail.de[/EMAIL]

    We are unable to come to the phone right now. At the tone, please leave your name, number, and Master Card, Visa, or American Express account number and we'll get back to, pending credit approval.

  6. #4
    XpeinX's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    235
    Reputation
    14
    Thanks
    36
    My Mood
    Amused
    I don't see this code..
    Code:
    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub
    End Class

  7. #5
    raiever's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    151
    Reputation
    57
    Thanks
    325
    My Mood
    Angelic
    Question!

    Will this only inject for warrock?


    *EDIT*
    I see that it will only inject to warrock, But you can change the .exe name to something else.

    at this point just change "warrock" to something else?

    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")
    Last edited by raiever; 07-08-2010 at 07:20 AM.

  8. #6
    Julma Henri's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,528
    Reputation
    205
    Thanks
    775
    My Mood
    In Love
    Can u make Tutorial For More Advenced Injector ?
    Because i need 1
    Help me get donator.



    Want to become part of Editor Force? Click the tag below and apply now !

  9. #7
    n4n033's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Windows
    Posts
    1,090
    Reputation
    43
    Thanks
    2,432
    My Mood
    Cool
    you forgot credits ( it's not by you ) .


    The Only Bests :


    R3d_L!n3(Fares)
    Aeroman (Brent)
    TheCamels8 (Ori)


  10. #8
    n4n033's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Windows
    Posts
    1,090
    Reputation
    43
    Thanks
    2,432
    My Mood
    Cool
    Quote Originally Posted by NoobsAreOwnage View Post
    Can u make Tutorial For More Advenced Injector ?
    Because i need 1
    here for avanced injector :
    https://www.mpgh.net/forum/161-tutori...-injector.html


    The Only Bests :


    R3d_L!n3(Fares)
    Aeroman (Brent)
    TheCamels8 (Ori)


  11. #9
    Scyphrex's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    67
    Reputation
    10
    Thanks
    4
    Wow good tutorial. This is awesome thanks.

  12. #10
    Dandy's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    34
    Reputation
    10
    Thanks
    3
    My Mood
    Shocked
    Thanks! I shall try to make a injector one day

  13. #11
    Chemixx's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    London
    Posts
    397
    Reputation
    23
    Thanks
    43
    My Mood
    Fine
    Do you only need that code or is it like hacks where you have to change them every time theres an update ?
    Need any help? - jellybean2k9@hotmail.co.uk
    Add me on Xbox - iCurlyNugget
    Or just inbox me on MPGH

    "Going to church doesn't make you a Christian any more than standing in a garage makes you a car."

  14. #12
    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
    I see no credits ...
    -Rest in peace leechers-

    Your PM box is 100% full.

  15. #13
    Pagn's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    WarRock and C++ section
    Posts
    1,505
    Reputation
    32
    Thanks
    302
    My Mood
    Relaxed
    Quote Originally Posted by Zoom View Post
    I see no credits ...
    It's made by himself if there is no credits. I haven't see same tutorial as this on other sites.

  16. #14
    raiever's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    151
    Reputation
    57
    Thanks
    325
    My Mood
    Angelic
    never did get that code to work for myself, Had to get a snippets from other places to fix what was messed up for me :P
    Nice post though for those with who can get it to work XD

  17. #15
    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
    You may get banned if you dont give credits :/


    This code looks similar?
    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)
    
        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.Ex  ecutablePath)
    
        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 = Application.StartupPath & "\" + ExeName + ".dll"
            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
    
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            If IO.File.Exists(Application.StartupPath & "\" + ExeName + ".dll") 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
            Else
                Me.TextBox1.Text = ("" + ExeName + ".dll not found")
                Me.TextBox2.Text = ("Rename the .dll To " + "" + ExeName)
            End If
        End Sub
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Timer1****terval = 50
            Timer1.Start()
        End Sub
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            MsgBox("Thats the Status Box!", MsgBoxStyle****formation, "Info")
        End Sub
    End Class
    -Rest in peace leechers-

    Your PM box is 100% full.

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 simple injector
    By icones3 in forum CrossFire Discussions
    Replies: 2
    Last Post: 04-17-2010, 07:03 AM
  3. how to make an injector?
    By h4x0rswln is back in forum C++/C Programming
    Replies: 7
    Last Post: 12-20-2009, 09:14 PM
  4. [Help] Hi how to make a injector?
    By xcb777 in forum CrossFire Hacks & Cheats
    Replies: 0
    Last Post: 12-18-2009, 03:55 PM
  5. [HELP]How to make an injector?
    By PixieCorp-Backup in forum Visual Basic Programming
    Replies: 19
    Last Post: 11-21-2009, 03:10 PM