Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 02:55

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[How To]Injector erstellen

Discussion on [How To]Injector erstellen within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2011
Posts: 52
Received Thanks: 33
[How To]Injector erstellen

Hallo,
heute zeige ich euch wie ihr leicht einen Injector erstellen könnt.

Dazu braucht ihr nur Visual Basic 2008/2010.

Falls ihr Visual Basic nicht habt hier ist der Download:
Visual Basic 2008 Download:

So jetzt öffnet ihr Visual Basic 2008, erstellt ein neues Projekt (Windows Form-Anwendung).

Ihr braucht:

2x Textboxes
1x Timer

So jetzt doppelklick auf die Form, löscht alles was dort steht und kopiert, dass was hier steht:

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
So jetzt gehen wir zurück und klicken auf den Timer.
Dort fügen wir diesen code ein:

Code:
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
So jetzt sind wir fast fertig nur noch ein doppelklick auf die Form (nochmals)
dort schreibt ihr:

Code:
Timer1.Interval = 50
        Timer1.Start()
Auf erstellen (oben) klicken dann auf Injector erstellen und Alles speichern.

Das wars auch schon viel spaß.
.CoKe_WaVe is offline  
Thanks
2 Users
Old 05/05/2011, 18:06   #2
 
beatd0wn[]'s Avatar
 
elite*gold: 220
Join Date: Mar 2011
Posts: 247
Received Thanks: 75
Also eigentlich ist das kein How-To sondern nur dahin geklatschte Snipptes. No offence!
Wäre hilfreich, wenn du auch dazuschreibst was einzelne Elemente machen.
Außerdem:
Code:
 Dim TargetProcess As Process() = Process.GetProcessesByName("WarRock")
Der Injector funktioniert nur mit Warrock...
Könnte man eleganter Lösen
beatd0wn[] is offline  
Thanks
2 Users
Old 05/05/2011, 18:58   #3
 
krasniqi14's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 9
Received Thanks: 4
nice..
krasniqi14 is offline  
Thanks
1 User
Old 05/05/2011, 19:29   #4
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
Verstehst du denn selbst was du da hingeklatscht hast oder einfach nur irgendwo kopiert? Allein schon das "GoTo"..
Kraizy​ is offline  
Old 05/10/2011, 13:26   #5
 
elite*gold: 0
Join Date: Aug 2005
Posts: 443
Received Thanks: 72


wenn es als Tutorial zählen soll, dann erklär doch wenigstens den Code noch ein wenig
neji is offline  
Reply


Similar Threads Similar Threads
[TuT] Injector erstellen [24.11.2010]
12/30/2012 - WarRock Guides, Tutorials & Modifications - 14 Replies
Das Tutorial für einen Injektor! Video-Tutorial + Text-Tutorial Hallo ihr Hacker und generell Zocker, in diesem Tutorial, werde ich euch erläutern wie ihr einen Injektor selber macht. Ja ich weiß, es gibt zwar schon einige Tutorials,
[Tut] Injector Erstellen
02/12/2012 - WarRock Guides, Tutorials & Modifications - 4 Replies
Ihr braucht microsoft visual basic exress edition 2008 geht auf neues project form-anwendung-> fügt 2 textboxen->1timer->hinzu macht doppelklick auf die form->löcht alles->und fügt das ein => Public Class Form1
Injector erstellen ??
03/30/2011 - WarRock - 5 Replies
HALLO, wollte fragen wie ich einen eigenen Injector code,weil es bei mir nicht geht habe c++ basic 2008 geht aber nicht pls antwort
Dev c++ injector erstellen
01/28/2011 - C/C++ - 4 Replies
Dev c++ Ein injector erstellen?????? geht das ???
Erstellen von Warrock Injector 64 bit
01/01/2011 - WarRock - 2 Replies
Hey, kann mir einer sagen wie ich einen 64 bit Injector für Warrock machen kann. Hab einen gemacht bzw. probiert :D aber der geht irg wie net auf meinem pc. Bitte helft mir!!!



All times are GMT +1. The time now is 02:56.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.