| View previous topic :: View next topic |
| Author |
Message |
aikoncwd Grandmaster Cheater
Reputation: 23
Joined: 21 Dec 2012 Posts: 591 Location: Spain (Barcelona)
|
Posted: Sun Jan 06, 2013 2:26 pm Post subject: I have a doubt with one AA script |
|
|
Well, I have a question for you. Recently I decided to hack a game, on this game you have lives and I want to make a hack on this. I found the addres where the lives are stored, so I can change the value manually and it works fine
Then I decided to make an AA script, the original code is this
| Code: | alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
originalcode:
add dword ptr [esi+000000A0],FF //original code
exit:
jmp returnhere
"GeometryWars.exe"+24AD3:
jmp newmem
nop
nop
returnhere: |
The only way that I found to make a "work" AA script is building full of nop's:
| Code: | alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
originalcode: //full nop's to prevent decrease lives
nop
nop
nop
nop
nop
exit:
jmp returnhere
"GeometryWars.exe"+24AD3:
jmp newmem
returnhere: |
This works fine, but I think this is not the best way to do it. Can someone help me?
Thanks
|
|
| Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Sun Jan 06, 2013 7:56 pm Post subject: |
|
|
mov [esi+000000A0],x
x can be whatever number that you want to set for health.
If there is no other code that would change the health, nop will work perfectly, doesn't matter that it is "elegant" or not.
_________________
|
|
| Back to top |
|
 |
Fresco Grandmaster Cheater
Reputation: 4
Joined: 07 Nov 2010 Posts: 600
|
Posted: Mon Jan 07, 2013 9:04 am Post subject: |
|
|
why do you even alloc ?
| Code: | [ENABLE]
"GeometryWars.exe"+24AD3:
db 90 90 90 90 90 90 90
// since the code add dword ptr [esi+000000A0],FF is 7 bytes long we replace with 7 nops
// nop or db 90 is the same thing
[DISABLE]
"GeometryWars.exe"+24AD3:
add dword ptr [esi+000000A0],FF |
_________________
... Fresco |
|
| Back to top |
|
 |
|