| View previous topic :: View next topic |
| Author |
Message |
Hatschi Master Cheater
Reputation: 2
Joined: 28 Jan 2010 Posts: 327
|
Posted: Sat Jul 08, 2017 7:13 am Post subject: [AA] Readmem and offsets |
|
|
Lets say I have the following opcode:
| Code: | 8B 96 8486F900 - mov edx,[esi+00F98684]
|
Now I want to write a script that is independent of the static address.
My idea was:
| Code: |
aobscanmodule(aobHealth,pinball.exe,8B 96 ?? ?? ?? ?? EC)
...
originalcode:
db 8B 96 readmem(aobHealth, 4)
|
But this won't compile. Is there a solution without defining an additional label and store the result of readmem there? Kind of one-line solution?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 473
Joined: 09 May 2003 Posts: 25912 Location: The netherlands
|
Posted: Sat Jul 08, 2017 8:11 am Post subject: |
|
|
| Code: |
aobscanmodule(aobHealth,pinball.exe,8B 96 ?? ?? ?? ?? EC)
...
originalcode:
db 8B 96
readmem(aobHealth, 4)
|
or
| Code: |
aobscanmodule(aobHealth,pinball.exe,8B 96 ?? ?? ?? ?? EC)
...
originalcode:
reassemble(aobHealth)
|
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Hatschi Master Cheater
Reputation: 2
Joined: 28 Jan 2010 Posts: 327
|
Posted: Sat Jul 08, 2017 8:15 am Post subject: |
|
|
| So simple, perfect. THank you!
|
|
| Back to top |
|
 |
|