View previous topic :: View next topic |
Author |
Message |
NoobTracker How do I cheat? Reputation: 0
Joined: 09 Aug 2022 Posts: 3
|
Posted: Tue Aug 09, 2022 2:34 am Post subject: CheatEngine address as GDB watch |
|
|
Hello,
I have a CheatEngine pointer path. How do I tell gdb to watch the address that the pointers point to? How do I know the base address of the executable?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Tue Aug 09, 2022 2:50 am Post subject: |
|
|
you can use info modulename to get the baseaddress of a specific module
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
NoobTracker How do I cheat? Reputation: 0
Joined: 09 Aug 2022 Posts: 3
|
Posted: Tue Aug 09, 2022 3:20 am Post subject: |
|
|
Dark Byte wrote: | you can use info modulename to get the baseaddress of a specific module |
Hmm, to be more precise, I'm using winedbg, which should be pretty much like gdb, but that command doesn't exist there. Does this seem to do the same thing?
Code: |
Wine-dbg>info share
Module Address Debug info Name (34 modules)
PE 400000- d6f000 Deferred my-executable
PE 7b020000-7b023000 Deferred kernelbase
...
...
|
The offset of the base pointer is way bigger than the reserved space ...
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Tue Aug 09, 2022 3:45 am Post subject: |
|
|
what is the base address? It may be a different module than then exe
a valid base would be: my-executable.exe+96F000 (which would end up at d6f000 )
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
NoobTracker How do I cheat? Reputation: 0
Joined: 09 Aug 2022 Posts: 3
|
Posted: Tue Aug 09, 2022 3:50 am Post subject: |
|
|
What the ... must've done the math in decimal mode ...
Edit: (no double posts?)
Dark Byte wrote: | a valid base would be: my-executable.exe+96F000 (which would end up at d6f000 ) |
In my case it's "my-executable.exe"+00804070, which is within that range. Do I need to add the base address to the following pointers?
Edit #2:
Yay, it works! Thanks for your help! (in case anyone wonders: don't add the base address to following pointers)
|
|
Back to top |
|
|
|