 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Megamandos How do I cheat?
Reputation: 0
Joined: 04 Aug 2009 Posts: 1
|
Posted: Mon Aug 10, 2009 10:53 pm Post subject: Pointers in assembly? |
|
|
Refer to the following code for the next question:
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
1A37C796:
jmp newmem
nop
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov ecx,[esi+30]
nop
originalcode:
mov [edx+eax*4],ecx
mov ecx,[esi+30]
exit:
jmp returnhere
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
1A37C796:
mov [edx+eax*4],ecx
mov ecx,[esi+30] |
For the address locations, they will change each time I restart program (right?). So how will I compensate for that, since I can't use 1A37C796 every time for the right position in memory, I need to get the offset from the base value...
EDIT: I figured it out.
In the Memory Viewer, go to View->Show Module Addresses (CTRL+M)
Then use the addresses from there.
So the Lines above that read:
Now Read:
| Code: | | GameServer.dll+C796: |
Man, I'm really starting to enjoy this.
|
|
| Back to top |
|
 |
Xblade Of Heaven Master Cheater
Reputation: 0
Joined: 16 Oct 2005 Posts: 395 Location: DEAD
|
Posted: Tue Aug 11, 2009 5:23 am Post subject: |
|
|
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
fullaccess(04000019,4)
1A37C796:
jmp newmem
nop
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [04000019],esi
//add this address to CE 04000019 and offset + 30
originalcode:
mov [edx+eax*4],ecx
mov ecx,[esi+30]
exit:
jmp returnhere
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
1A37C796:
mov [edx+eax*4],ecx
mov ecx,[esi+30]
_________________
Welcome to the Hell.
 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|