Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    Qmo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    #cmd<user> CONTRIBUTION GAME HACKING
    Posts
    2,008
    Reputation
    246
    Thanks
    5,879
    My Mood
    Relaxed

    Arrow Create your own Injecktor

    Create your own Injecktor ? yeah cool

    all here and I guess I will not explain the wide shelf,
    I hope this is useful for all, use your abilities

    Copy this code to your Vicual Basic
    or you can download the full file down there

    1. Make Form1
    Code:
    Option Explicit
    'Created Date: 4 September 2011
    'Form1 Universal Injector by qmoainx/mpgh.Net
    'This Code Tutorial Credit Goes to mpgh, Do As mpgh Rule.
    
    'variable declaration
    Private winHwnd   As Long
    Private NamaDll   As String
    
    'Movable function declaration form
    Private Const WM_NCLBUTTONDOWN    As Long = &HA1
    Private Const HTCAPTION           As Integer = 2
    Private Declare Sub ReleaseCapture Lib "user32" ()
    Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, _
                                                                            ByVal wMsg As Long, _
                                                                            ByVal wParam As Long, _
                                                                            lParam As Any) As Long
    
    
    Private Sub Form_Load()
        'explores Form
        CenterForm Me
    
        'adjust names below with the name etc. etc. who want to inject it.
        NamaDll = App.Path & "\.dll"
        
        'the name of the target game is up to you, for example pointblank
        FileTarget = "PBlackout.exe"
        
        'if you want an automatic injector exit disetting
        'given the value 1 on check1 code below, otherwise
        'if not given the value 0
        Check1.Value = 1
    
    End Sub
    
    Private Sub Form_Unload(Cancel As Integer)
    'auto open the url after form close
    OpenURL "https://mpgh.net", Me.hwnd
    End Sub
    
    Private Sub Label2_Click()
    
    'exit injector application
    
        Unload Me
    
    End Sub
    
    Private Sub Timer1_Timer()
    
        winHwnd = GetProcessWndByName(FileTarget)
        If Not winHwnd = 0 Then 'if found
            NTProcessList 'detection process game
            InjectExecute NamaDll 'inject library
            If Check1.Value = 1 Then 'if check1 is checked (Auto Exit After Injection) then
                End 'auto-injector cap
            End If
        Else 'if not
            Label1.Caption = "Waiting Game..."
        End If
    
    End Sub
    
    'kode center form
    Private Sub CenterForm(frm As Form)
    
        frm.Top = Screen.Height / 2 - frm.Height / 2
        frm.Left = Screen.Width / 2 - frm.Width / 2
    
    End Sub
    
    'kode movable form
    Private Sub Form_MouseMove(Button As Integer, _
                               Shift As Integer, _
                               X As Single, _
                               Y As Single)
    
    
        If Button = 1 Then
            ReleaseCapture
            SendMessage Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&
        End If
        Screen.MousePointer = vbDefault
    
    End Sub
    2. create a module and name ModUniversal
    Code:
    Option Explicit
    'Modul Universal Injection by qmoainx/mpgh.Net
    'Optimized code by Qmoainx
    
    Public FileTarget                    As String
    Private sFlDLL                       As String
    Private IdTargetOne                  As Long
    Private Const TH32CS_SNAPHEAPLIST    As Long = &H1
    Private Const TH32CS_SNAPPROCESS     As Long = &H2
    Private Const TH32CS_SNAPTHREAD      As Long = &H4
    Private Const TH32CS_SNAPMODULE      As Long = &H8
    Private Const TH32CS_SNAPALL         As Double = (TH32CS_SNAPHEAPLIST Or TH32CS_SNAPPROCESS Or TH32CS_SNAPTHREAD Or TH32CS_SNAPMODULE)
    Private Const MAX_PATH               As Integer = 260
    Private Const PROCESS_ALL_ACCESS     As Long = &H1F0FFF
    Private Type PROCESSENTRY32
        dwSize                               As Long
        cntUsage                             As Long
        th32ProcessID                        As Long
        th32DefaultHeapID                    As Long
        th32ModuleID                         As Long
        cntThreads                           As Long
        th32ParentProcessID                  As Long
        pcPriClassBase                       As Long
        dwFlags                              As Long
        szExeFile                            As String * MAX_PATH
    End Type
    Private Type MODULEENTRY32
        dwSize                               As Long
        th32ModuleID                         As Long
        th32ProcessID                        As Long
        GlblcntUsage                         As Long
        ProccntUsage                         As Long
        modBaseAddr                          As Long
        modBaseSize                          As Long
        hModule                              As Long
        szModule                             As String * 256
        szExePath                            As String * 260
    End Type
    Private Type THREADENTRY32
        dwSize                               As Long
        cntUsage                             As Long
        th32ThreadID                         As Long
        th32OwnerProcessID                   As Long
        tpBasePri                            As Long
        tpDeltaPri                           As Long
        dwFlags                              As Long
    End Type
    
    Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
                    (ByVal hwnd As Long, _
                    ByVal lpOperation As String, _
                    ByVal lpFile As String, _
                    ByVal lpParameters As String, _
                    ByVal lpDirectory As String, _
                    ByVal nShowCmd As Long) As Long
    
    Private Declare Function CreateToolhelp32Snapshot Lib "kernel32" (ByVal lFlags As Long, _
                                                                      ByVal lProcessID As Long) As Long
    Private Declare Function Module32First Lib "kernel32" (ByVal hSnapshot As Long, _
                                                           uProcess As MODULEENTRY32) As Long
    Private Declare Function lstrlen Lib "kernel32" Alias "lstrlenA" (ByVal lpString As String) As Long
    Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, _
                                                         ByVal bInheritHandle As Long, _
                                                         ByVal dwProcessId As Long) As Long
    Private Declare Function Process32First Lib "kernel32" (ByVal hSnapshot As Long, _
                                                            uProcess As PROCESSENTRY32) As Long
    Private Declare Function Process32Next Lib "kernel32" (ByVal hSnapshot As Long, _
                                                           uProcess As PROCESSENTRY32) As Long
    Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
    Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, _
                                                            ByVal lpProcName As String) As Long
    Private Declare Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (ByVal lpModuleName As String) As Long
    Private Declare Function VirtualAllocEx Lib "kernel32" (ByVal hProcess As Long, _
                                                            lpAddress As Any, _
                                                            ByVal dwSize As Long, _
                                                            ByVal fAllocType As Long, _
                                                            flProtect As Long) As Long
    Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, _
                                                                ByVal lpBaseAddress As Any, _
                                                                lpBuffer As Any, _
                                                                ByVal nSize As Long, _
                                                                lpNumberOfBytesWritten As Long) As Long
    Private Declare Function CreateRemoteThread Lib "kernel32" (ByVal ProcessHandle As Long, _
                                                                lpThreadAttributes As Long, _
                                                                ByVal dwStackSize As Long, _
                                                                ByVal lpStartAddress As Any, _
                                                                ByVal lpParameter As Any, _
                                                                ByVal dwCreationFlags As Long, _
                                                                lpThreadID As Long) As Long
    
    Public Function GetFName(fn) As String
    
    Dim f As Integer
    Dim n As Integer
    
        GetFName = fn
        f = InStr(fn, "\")
        Do While f
            n = f
            f = InStr(n + 1, fn, "\")
        Loop
        If n > 0 Then
            GetFName = Mid$(fn, n + 1)
        End If
    
    End Function
    
    Public Function GetProcessIdByName(ByVal szProcessName As String) As Long
    
    Dim pe32       As PROCESSENTRY32
    Dim hSnapshot  As Long
    Dim bFoundProc As Boolean
    Dim dwProcId   As Long
    
        dwProcId = 0
        pe32.dwSize = Len(pe32)
        hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0&)
        bFoundProc = Process32First(hSnapshot, pe32)
        Do While bFoundProc
            If Right$(LCase$(Left$(pe32.szExeFile, InStr(1, pe32.szExeFile, vbNullChar) - 1)), Len(szProcessName)) = LCase$(szProcessName) Then
                dwProcId = pe32.th32ProcessID
                Exit Do
            End If
            bFoundProc = Process32Next(hSnapshot, pe32)
        Loop
        CloseHandle hSnapshot
        GetProcessIdByName = dwProcId
    
    End Function
    
    Public Function GetProcessWndByName(ByVal szProcessName As String) As Long
    
    Dim dwProcId  As Long
    Dim dwProcWnd As Long
    
        dwProcId = GetProcessIdByName(szProcessName)
        If dwProcId = 0 Then
            GetProcessWndByName = 0
        Else
            dwProcWnd = OpenProcess(PROCESS_ALL_ACCESS, False, dwProcId)
            CloseHandle dwProcId
            GetProcessWndByName = dwProcWnd
        End If
    
    End Function
    
    Public Sub InjectDll(DllPath As String, _
                         ProsH As Long)
    
    Dim DLLVirtLoc   As Long
    Dim DllLength    As Long
    Dim inject       As Long
    Dim LibAddress   As Long
    Dim CreateThread As Long
    Dim ThreadID     As Long
    Dim Bla          As VbMsgBoxResult
    
    g_loadlibary:
        LibAddress = GetProcAddress(GetModuleHandle("kernel32.dll"), "LoadLibraryA")
        If LibAddress = 0 Then
            Bla = MsgBox("Can't find LoadLibrary API from kernel32.dll", vbYesNo, "ERROR")
            If Bla = vbYes Then
                GoTo g_loadlibary
            Else
                Exit Sub
            End If
        End If
    g_virutalallocex:
        DllLength = Len(DllPath)
        DLLVirtLoc = VirtualAllocEx(ProsH, 0, DllLength, &H1000, ByVal &H4)
        If DLLVirtLoc = 0 Then
            Bla = MsgBox("VirtualAllocEx API failed! - try again?", vbYesNo, "ERROR")
            If Bla = vbYes Then
                GoTo g_virutalallocex
            Else
                Exit Sub
            End If
        End If
    g_writepmemory:
        inject = WriteProcessMemory(ProsH, ByVal DLLVirtLoc, ByVal DllPath, DllLength, vbNull)
        If inject = 0 Then
            Bla = MsgBox("Failed to Write DLL to Process! - try again?", vbYesNo, "ERROR")
            If Bla = vbYes Then
                GoTo g_writepmemory
            Else
                Exit Sub
            End If
        End If
    g_creatthread:
        CreateThread = CreateRemoteThread(ProsH, ByVal 0, 0, ByVal LibAddress, ByVal DLLVirtLoc, 0, ThreadID)
        If CreateThread = 0 Then
            Bla = MsgBox("Failed to Create Thead! - try again?", vbYesNo, "ERROR")
            If Bla = vbYes Then
                GoTo g_creatthread
            Else
                Exit Sub
            End If
        End If
        Form1.Label1.Caption = "Injected Successful!"
        MsgBox "Dll Injection Successful!", vbInformation, "Success"
    
    End Sub
    
    Public Sub InjectExecute(ByVal sFlDLL As String)
    
    Dim lProcInject As Long
    
        lProcInject = OpenProcess(PROCESS_ALL_ACCESS, 0, IdTargetOne)
        If lProcInject > "0" Then
            InjectDll sFlDLL, lProcInject
        End If
        CloseHandle lProcInject
    
    End Sub
    
    Public Function NTProcessList() As Long
    
    Dim FileName    As String
    Dim ExePath     As String
    Dim hProcSnap   As Long
    Dim hModuleSnap As Long
    Dim lProc       As Long
    Dim uProcess    As PROCESSENTRY32
    Dim uModule     As MODULEENTRY32
    
        On Error Resume Next
        hProcSnap = CreateToolhelp32Snapshot(TH32CS_SNAPALL, 0&)
        uProcess.dwSize = Len(uProcess)
        lProc = Process32First(hProcSnap, uProcess)
        Do While lProc
            If uProcess.th32ProcessID <> 0 Then
                hModuleSnap = CreateToolhelp32Snapshot(TH32CS_SNAPALL, uProcess.th32ProcessID)
                uModule.dwSize = Len(uModule)
                Module32First hModuleSnap, uModule
                If hModuleSnap > 0 Then
                    ExePath = StripNulls(uModule.szExePath)
                    FileName = GetFName(ExePath)
                    If FileTarget = FileName Then
                        IdTargetOne = uProcess.th32ProcessID
                    End If
                End If
            End If
            lProc = Process32Next(hProcSnap, uProcess)
        Loop
        CloseHandle hProcSnap
        CloseHandle lProc
        On Error GoTo 0
    
    End Function
    
    Private Function StripNulls(ByVal sStr As String) As String
    
        StripNulls = Left$(sStr, lstrlen(sStr))
    
    End Function
    
    Public Sub OpenURL(situs As String, sourceHWND As Long)
         Call ShellExecute(sourceHWND, vbNullString, situs, vbNullString, vbNullString, 1)
    End Sub
    in the code you just add what you want, such as name Injector / images injector even injectors picture, use it for your own interests.

    and this for all files
    maybe useful for you

    Scan Virus Online :
    Virustotal
    Virusscan.jotti.org
    Last edited by Qmo; 09-04-2011 at 09:55 PM.





    اَللّهُ اَكْبَرُ

    .:If u can respect other people work, then u will get what u want:.

  2. The Following 39 Users Say Thank You to Qmo For This Useful Post:

    -iFaDy..* (03-29-2012),By_Hummet (12-16-2013),C0d3r1n_L0g (11-24-2015),cengizhanzu (06-13-2016),darkcyclone22 (09-05-2011),Dong'Rickz (03-15-2015),elmorez (06-17-2012),Errexa (06-03-2016),frankhacker (10-25-2012),glenpaul06 (09-09-2011),gwaporeyes (09-12-2011),hackersmd (04-30-2012),hakker199 (10-02-2012),HDJoWa (07-22-2014),[MPGH]Hero (09-04-2011),Indocom (04-09-2014),invisible111 (09-30-2011),jablay (09-12-2011),jbm1337 (06-21-2012),killbyme (09-05-2011),lpminer (04-08-2015),luckylhaki (07-09-2014),manoom5 (06-15-2015),mohamed4016 (08-31-2012),moogii15 (01-02-2014),pionkjeffery (11-18-2012),prince350 (10-03-2012),rayssenjellouli (09-15-2017),rioasn123 (05-12-2012),sixtus333 (09-22-2011),SnowBlitz (10-25-2011),solomon0721 (09-05-2011),sparkmate1 (06-04-2012),The Conjurer (04-22-2013),uschana123 (01-28-2014),vanko97 (02-29-2012),x7gamingm (12-22-2014),XkillerBox (10-26-2014),Yakinican (08-21-2014)

  3. #2
    Sketchy's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    4,876
    Reputation
    515
    Thanks
    663
    My Mood
    Inspired
    This isn't really a tool.
    Just code.
    @Jamal

  4. #3
    Qmo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    #cmd<user> CONTRIBUTION GAME HACKING
    Posts
    2,008
    Reputation
    246
    Thanks
    5,879
    My Mood
    Relaxed
    Quote Originally Posted by Sketchy View Post
    This isn't really a tool.
    Just code.
    @Jamal
    of course this code, and this code to create a tool> Injector





    اَللّهُ اَكْبَرُ

    .:If u can respect other people work, then u will get what u want:.

  5. #4
    gunman353's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    In_Your_Computer!!
    Posts
    718
    Reputation
    27
    Thanks
    125
    My Mood
    Lurking
    Nice release!

  6. #5
    Baldrogs's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Switzerland
    Posts
    1,533
    Reputation
    35
    Thanks
    584
    Nice Release Bro !
    But if people doesn't know the language its hard for him haha

  7. #6
    Hero's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    memes
    Posts
    40,198
    Reputation
    4764
    Thanks
    9,694
    Wow, nice job!
    [] [] [] [][]

    Editor from 06•14•2011 • 2014
    Donator since 09•16•2011
    Minion from 10•10•2011 • 01•06•2011
    Minion+ from 01•06•2012 • 08•08•2012
    Moderator from 08•08•2012 • 10•06•2012
    Global Moderator from 10•06•2012 • 12•05•2017
    Staff Administrator from 12•05•2017 • 05•01•2019
    Trusted Member since 07•13•2019
    Global Moderator since 09•11•2020




  8. The Following 2 Users Say Thank You to Hero For This Useful Post:

    invisible111 (09-30-2011),Qmo (09-07-2011)

  9. #7
    Qmo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    #cmd<user> CONTRIBUTION GAME HACKING
    Posts
    2,008
    Reputation
    246
    Thanks
    5,879
    My Mood
    Relaxed
    Quote Originally Posted by Hero View Post
    Wow, nice job!
    thank ...





    اَللّهُ اَكْبَرُ

    .:If u can respect other people work, then u will get what u want:.

  10. The Following 2 Users Say Thank You to Qmo For This Useful Post:

    feeqo (09-05-2011),invisible111 (09-30-2011)

  11. #8
    feeqo's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    Malaysia
    Posts
    67
    Reputation
    10
    Thanks
    7
    My Mood
    Amazed
    this cool bro,thanks

  12. The Following User Says Thank You to feeqo For This Useful Post:

    invisible111 (09-30-2011)

  13. #9
    Baldrogs's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Switzerland
    Posts
    1,533
    Reputation
    35
    Thanks
    584
    Cool Like All Qmainx Works :P

  14. The Following 2 Users Say Thank You to Baldrogs For This Useful Post:

    invisible111 (09-30-2011),Qmo (09-05-2011)

  15. #10
    glenpaul06's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    104
    Reputation
    10
    Thanks
    3
    My Mood
    Angelic
    tnx for sharing ^^ this code.

  16. #11
    Qmo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    #cmd<user> CONTRIBUTION GAME HACKING
    Posts
    2,008
    Reputation
    246
    Thanks
    5,879
    My Mood
    Relaxed
    Quote Originally Posted by glenpaul06 View Post
    tnx for sharing ^^ this code.
    you're welcome
    I hope to be useful for all





    اَللّهُ اَكْبَرُ

    .:If u can respect other people work, then u will get what u want:.

  17. The Following 2 Users Say Thank You to Qmo For This Useful Post:

    invisible111 (09-30-2011),jablay (09-12-2011)

  18. #12
    jablay's Avatar
    Join Date
    Aug 2011
    Gender
    female
    Posts
    49
    Reputation
    10
    Thanks
    80
    My Mood
    Asleep
    hope some day @qmoainx release a tutorial
    how to make a logger tools for PB

  19. #13
    Qmo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    #cmd<user> CONTRIBUTION GAME HACKING
    Posts
    2,008
    Reputation
    246
    Thanks
    5,879
    My Mood
    Relaxed
    Quote Originally Posted by jablay View Post
    hope some day @qmoainx release a tutorial
    how to make a logger tools for PB
    I definitely do it .... but not now





    اَللّهُ اَكْبَرُ

    .:If u can respect other people work, then u will get what u want:.

  20. #14
    goblox's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    185
    Reputation
    10
    Thanks
    26
    My Mood
    Angelic
    Quote Originally Posted by qmoainx View Post

    you're welcome
    I hope to be useful for all
    sincerity of the @qmoainx
    you the man who really help all of PB section.
    Thank & respect for you sir.
    <========================
    learning...learning and learning...
    ========================>


  21. The Following User Says Thank You to goblox For This Useful Post:

    Qmo (09-13-2011)

  22. #15
    Qmo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    #cmd<user> CONTRIBUTION GAME HACKING
    Posts
    2,008
    Reputation
    246
    Thanks
    5,879
    My Mood
    Relaxed

    Thumbs up

    Quote Originally Posted by goblox View Post
    sincerity of the @qmoainx
    you the man who really help all of PB section.
    Thank & respect for you sir.
    @goblox
    you 2





    اَللّهُ اَكْبَرُ

    .:If u can respect other people work, then u will get what u want:.

  23. The Following User Says Thank You to Qmo For This Useful Post:

    goblox (09-15-2011)

Page 1 of 2 12 LastLast

Similar Threads

  1. [Tutorial]Create your own IWNet Emulation Server
    By eJustin in forum Call of Duty Modern Warfare 2 Private Servers
    Replies: 60
    Last Post: 07-14-2010, 06:31 AM
  2. [SOLVED] Need help for: "[Tutorial]Create your own IWNet Emulation Server"
    By JosHSL14 in forum Call of Duty Modern Warfare 2 Help
    Replies: 11
    Last Post: 06-23-2010, 01:33 AM
  3. Create Your own ADVANCED Trainer
    By Twirlyman15 in forum Combat Arms Discussions
    Replies: 15
    Last Post: 02-27-2010, 06:58 AM
  4. Creating your own OPK?
    By wildman008a in forum Combat Arms Help
    Replies: 5
    Last Post: 08-23-2009, 08:02 PM
  5. Creating your own OPK?
    By wildman008a in forum Combat Arms Hacks & Cheats
    Replies: 4
    Last Post: 08-23-2009, 07:38 PM