| View previous topic :: View next topic |
| Author |
Message |
hitmetwice Advanced Cheater
Reputation: 0
Joined: 20 Nov 2012 Posts: 63
|
Posted: Sun Mar 24, 2013 7:56 am Post subject: Avanced code injection? |
|
|
There are tons of tutorials showing how to make a program increasing a value instead of decreasing it. Yeah, that works fine, but I'm looking for a tutorial which shows me how to execute commands like:
-shoot my gun
-swap my weapon
-press a button
-move my character
etc
Changing address-values is not doing the job, so I guess what I need is some kind of advanced code injection?
How would I do this?
|
|
| Back to top |
|
 |
hitmetwice Advanced Cheater
Reputation: 0
Joined: 20 Nov 2012 Posts: 63
|
Posted: Sun Mar 31, 2013 1:11 pm Post subject: |
|
|
Bump
edited the thread title and explained my problem more detailed
Maybe you can help me now?
|
|
| Back to top |
|
 |
hitmetwice Advanced Cheater
Reputation: 0
Joined: 20 Nov 2012 Posts: 63
|
Posted: Thu Apr 04, 2013 7:56 pm Post subject: |
|
|
Please
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Thu Apr 04, 2013 8:40 pm Post subject: |
|
|
| Find the controller/keyboard addresses. For basic tasks, injection may not be required.
|
|
| Back to top |
|
 |
Mohsen Advanced Cheater
Reputation: 1
Joined: 04 Apr 2013 Posts: 69 Location: PE
|
Posted: Fri Apr 05, 2013 12:34 am Post subject: Changing value doesn't work ? |
|
|
If changing value doesn't work then you have to hook some address and then make a call to whatever you want.
Here is some example.
Game code :
Event OnKeyPress{
If it's Q then call function quit_game.
Else if it's SPACE then call function do_jump
Else if it's LeftMouseButtun then call function do_shoot(PosX, PosY).
}
Event OnPlayerJump{
}
Here is a list of actions to be made by you.
1. Find address of the event you are looking after.
2. Hook it
3. Call the function you want to.
Let's say we want to shoot whenever a player jump.
Find address of OnPlayerJump and hook it.
Now inject your code similar to this.
Push PosY
Push PosX
call Do_Shoot
You are done
Remember passing wrong function signature might crash your game.
Want it to be more safe ? Save all registers and flags before any action in your hook and then restore them when you are done with calling your function.
If game is on x86 instruction set then you can simply use pushad pushfd popfd popad.
|
|
| Back to top |
|
 |
hitmetwice Advanced Cheater
Reputation: 0
Joined: 20 Nov 2012 Posts: 63
|
Posted: Fri Apr 05, 2013 7:02 am Post subject: |
|
|
Is there a tutorial available or could you explain me how to do it?
You said:
1. Find address of the event you are looking after.
2. Hook it
3. Call the function you want to.
But how do I find addresses of events? How do it "hook" it where do I find the function and how can I call it?
|
|
| Back to top |
|
 |
hitmetwice Advanced Cheater
Reputation: 0
Joined: 20 Nov 2012 Posts: 63
|
Posted: Sun Apr 07, 2013 9:21 pm Post subject: |
|
|
How did you start it? I mean there must be some kind of tutorial or this, right?
|
|
| Back to top |
|
 |
|