Thread: Injector

Results 1 to 8 of 8
  1. #1
    Dragon(H)ell's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    703
    Reputation
    154
    Thanks
    4,819
    My Mood
    Angelic

    Injector

    Hey there

    I am trying to make injector that inject dll from resource to be like this



    here's the code but it doesn't make inject

    Code:
    Public Class Form1
       Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer
        Private 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
        Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByVal lpBuffer() As Byte, ByVal nSize As Integer, ByVal lpNumberOfBytesWritten As UInteger) As Boolean
        Private 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
        Private 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, ByVal lpThreadId As Integer) As Integer
        Private Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Integer, ByVal dwMilliseconds As Integer) As Integer
        Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Integer) As Integer
    
        Private Function Inject(ByVal pID As Integer, ByVal dllLocation As String) As Boolean
            If IntPtr.Size = 8 Then Throw New ArgumentException("Please make sure this program is compiled as x86, not x64. Memory functions don't work so well otherwise.")
            Dim hProcess As Integer = OpenProcess(&H1F0FFF, 1, pID)
            If hProcess = 0 Then Return False
            Dim dllBytes As Byte() = System.Text.Encoding.ASCII.GetBytes(dllLocation)
            Dim allocAddress As Integer = VirtualAllocEx(hProcess, 0, dllBytes.Length, &H1000, &H4)
            If allocAddress = Nothing Then Return False
            Dim kernelMod As Integer = GetModuleHandle("kernel32.dll")
            Dim loadLibAddr = GetProcAddress(kernelMod, "LoadLibraryA")
            If kernelMod = 0 OrElse loadLibAddr = 0 Then Return False
            WriteProcessMemory(hProcess, allocAddress, dllBytes, dllBytes.Length, 0)
            Dim libThread As Integer = CreateRemoteThread(hProcess, 0, 0, loadLibAddr, allocAddress, 0, 0)
            If libThread = 0 Then
                Return False
            Else
                WaitForSingleObject(libThread, 5000)
                CloseHandle(libThread)
            End If
            CloseHandle(hProcess)
            Me.Close()
            Return True
        End Function
    Code:
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Dim dlls As New Dictionary(Of String, String)
            Dim Datei As Object = My.Resources.DLLNAME
            dlls.Add("anything", Datei)
    
            Dim TargetProcess As Process() = Process.GetProcessesByName("crossfire")
            If TargetProcess.Length = 0 Then
    
            Else
                Dim ProcID As Integer = Process.GetProcessesByName("crossfire")(0).Id
                For Each inj As KeyValuePair(Of String, String) In dlls
                    Inject(ProcID, inj.Value)
                Next
            End If
        End Sub
    End Class
    credits for inject faction @Jason
    Last edited by Dragon(H)ell; 08-26-2012 at 05:52 PM.

  2. #2
    lucasheer715's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    648
    Reputation
    10
    Thanks
    497
    My Mood
    Bored
    You're the Great Dragon(H)ell! I dont believe that you cant make a dll injector. you're one of the best hack makers

  3. #3
    Dragon(H)ell's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    703
    Reputation
    154
    Thanks
    4,819
    My Mood
    Angelic
    Quote Originally Posted by lucasheer715 View Post
    You're the Great Dragon(H)ell! I dont believe that you cant make a dll injector. you're one of the best hack makers
    First I am c++ coder not vb I have already made one but which make you choose any dll you need by browser I need to make to inject mien dll only

  4. #4
    Rory's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    IN MPGH
    Posts
    1,872
    Reputation
    10
    Thanks
    181
    My Mood
    Cold
    Same Proplem

  5. #5
    [B]oss's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    112
    Reputation
    15
    Thanks
    791
    My Mood
    Angelic
    hmm Do You Have Skype ?! I Can Help

    PM Me

  6. #6
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Copy it from resources into disk and voila.. done. then delete it.

    Easier way. And simple.
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  7. #7
    krangnu's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    Give me your vdo Tutorial

  8. #8
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Quote Originally Posted by krangnu View Post
    Give me your vdo Tutorial
    Avoid this kind of bumps, especially when asking for something, next time VM the user.

    Closed
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

Similar Threads

  1. injector tut
    By mpghhackersrock123 in forum Hack Requests
    Replies: 1
    Last Post: 03-20-2013, 05:20 PM
  2. .dll injector
    By EleMentX in forum Gunz General
    Replies: 31
    Last Post: 07-08-2010, 10:44 AM
  3. WallHack - Omega Injector
    By Cr4azyPh4ntom in forum Soldier Front Hacks
    Replies: 40
    Last Post: 02-19-2009, 07:19 AM
  4. dll injector
    By ZeaS in forum Visual Basic Programming
    Replies: 18
    Last Post: 10-03-2007, 07:05 AM