Funktion in einer .dll hooken
-
Hi.
Ich will mir für das Spiel "Freelancer" einen Aimbot machen. Ich habe dafür bereits eine Anleitung gefunden:
1. Locate the function CEGun::Fire() with a disassembler of your choice in common.dll
2. Hook it
3. In the hook call CEGun::ComputeTgtLeadPosition() with the given thisptr to calculate the Target Vector
4. Overwrite the Vector given as Parameter to CEGun::Fire with the calculated one
5. Call the original function
6. if you want 360° fire, check the returnvalue and replace if necessary - you may do rapidfire etc. with this too.Wie funktioniert das ganze ab Schritt 2?
Falls das was an der Vorgehensweise ändert: Ich verwende das Programm IDA.Schritt 1 sieht bei mir so aus:
http://img29.imageshack.us/img29/1751/v6sg.jpgUnd wie bekomm ich dann das ganze wieder assembled, damit das Spiel es auch erkennt?