View previous topic :: View next topic |
Author |
Message |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Sun Sep 13, 2015 10:18 pm Post subject: Using Pointer in Auto Assembler |
|
|
How use pointer address in auto assembler?
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Sep 13, 2015 10:21 pm Post subject: |
|
|
Code: | push eax
mov eax,[game.exe+12345678]
mov eax,[eax+1CC]
mov eax,[eax+B0]
mov [eax+0C],(float)100
pop eax |
|
|
Back to top |
|
 |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Sun Sep 13, 2015 10:39 pm Post subject: |
|
|
mov [eax+0C],(float)100 is end offset of pointer address
|
|
Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Sun Sep 13, 2015 10:56 pm Post subject: |
|
|
sjl002 wrote: | mov [eax+0C],(float)100 is end offset of pointer address |
Yes.
Also make sure to throw a cmp in between to check for dead-ends or your game will crash trying to access a null or invalid pointer. This is very common in some games where the value of the pointer is not yet loaded until you do something in game or in-between level loads. e.g
mov eax,[game.exe+12345678]
cmp eax, 0
je ohshitbacktogame
_________________
|
|
Back to top |
|
 |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Sun Sep 13, 2015 11:01 pm Post subject: |
|
|
you write this script:
cmp eax, 0
je backtogame
What do this script?What is to?
|
|
Back to top |
|
 |
Snow1337 Catastrophic Cheatah
Reputation: 1
Joined: 12 Oct 2004 Posts: 183 Location: Your, Computer
|
Posted: Sun Sep 13, 2015 11:52 pm Post subject: |
|
|
it would check for a null, if null found it will jump back to game to avoid crash
_________________
|
|
Back to top |
|
 |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Mon Sep 14, 2015 12:01 am Post subject: |
|
|
I must write backtogame instead of exit
|
|
Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Mon Sep 14, 2015 12:50 am Post subject: |
|
|
sjl002 wrote: | you write this script:
cmp eax, 0
je backtogame
What do this script?What is to? |
Also make sure to throw a cmp in between to check for dead-ends or your game will crash trying to access a null or invalid pointer. This is very common in some games where the value of the pointer is not yet loaded until you do something in game or in-between level loads.
sjl002 wrote: |
I must write backtogame instead of exit
|
NO!?!! its just an example. Sigh...if you had read some code injection tutorials i wouldn't have to explain this.
But backtogame is any label that will skip over your pointer address fetching, if you are using CE's autoassemble template, you will write
je originalcode
provided you write your injection in code or newmem section.
Here is another example
newmem:
push eax
mov eax,[game.exe+12345678]
cmp eax, 0
je originalcode
mov eax,[eax+1CC]
cmp eax, 0
je originalcode
mov eax,[eax+B0]
cmp eax, 0
je originalcode
mov [eax+0C],(float)100
originalcode:
pop eax // Notice i placed this here so it will execute either way, if you don't do this way, your will crash. google stack balancing(push instruction/pop instruction) if you don't understand why
If all of this still doesn't make sense. Start fresh, try the cheat engine tutorial, read rydian's guides or just use pointers in the CE cheat list.
_________________
|
|
Back to top |
|
 |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Mon Sep 14, 2015 1:14 am Post subject: |
|
|
Can be more Pointer using in Auto Assembler
|
|
Back to top |
|
 |
yourib1999 How do I cheat?
Reputation: 0
Joined: 28 Mar 2016 Posts: 4
|
Posted: Fri Jul 01, 2016 7:03 am Post subject: |
|
|
and if you wanna do it with a 4 bytes value?
|
|
Back to top |
|
 |
|