| View previous topic :: View next topic |
| Author |
Message |
kwak How do I cheat?
Reputation: 0
Joined: 07 Nov 2012 Posts: 0
|
Posted: Wed Nov 07, 2012 6:32 am Post subject: [HELP] How to get the ebp value |
|
|
Hey there,
I'm working on a trainer and I finally found the address where it access to the value I need.
At that line, it gives me the following assembler code:
| Code: | | MyGame.exe+1279C0C - F3 0F11 85 A00D0000 - movss [ebp+00000DA0],xmm0 |
I want to get the "ebp" value in order to edit the whole player structure of my game (Health, speed, etc...). Is there a way to get it and use it as a base pointer?
Thanks.
|
|
| Back to top |
|
 |
sir-gunny Advanced Cheater
Reputation: 0
Joined: 15 Mar 2012 Posts: 81
|
Posted: Thu Nov 08, 2012 1:23 pm Post subject: |
|
|
sure... but i think ebp change anytime...
| 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)
label(ebpsave)
registersymbol(ebpsave)
newmem:
push eax
mov eax,[ebp]
mov [ebpsave],eax
pop eax
originalcode:
movss [ebp+00000DA0],xmm0
exit:
jmp returnhere
ebpsave:
dd 00
"MyGame.exe"+1279C0C:
jmp newmem
nop
nop
nop
returnhere:
[DISABLE]
"MyGame.exe"+1279C0C:
db F3 0F 11 85 A0 0D 00 00
unregistersymbol(ebpsave)
dealloc(newmem) |
now use "ebpsave" as pointeradress and add DA0
|
|
| Back to top |
|
 |
|