View previous topic :: View next topic |
Author |
Message |
ecc72 How do I cheat?
Reputation: 0
Joined: 25 Feb 2022 Posts: 3
|
Posted: Fri Feb 25, 2022 1:23 pm Post subject: Why I get different address in CE and python scripts |
|
|
I'm trying to convert a pointer with offset in CE into python scripts, using pymem.
However the first base address of xxx.dll is different.
In ce, it looks like: xxx.dll + 0x 040DF480 = 0x 24FF2830A80
0x 24FF2830A80 + 0x 80 = 0x 24FF2830B00
[0x 24FF2830B00] = 100 (the right value)
IN python: I use pymem to locate the dll
pm = pymem.Pymem("abc.exe")
baseAddress = pymem.process.module_from_name(pm.process_handle, "xxx.dll").lpBaseOfDll
but it return baseaddress of xxx.dll is 0x7ffccac40000
They're totally different.
I lookup win's docs, it said the function return the load address of dll, not main function address? could It be the reason?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25762 Location: The netherlands
|
Posted: Fri Feb 25, 2022 2:28 pm Post subject: |
|
|
it's the difference between an address and a value.
Looks like you're applying the math on the address and not the value of the address
_________________
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 |
|
 |
ecc72 How do I cheat?
Reputation: 0
Joined: 25 Feb 2022 Posts: 3
|
Posted: Fri Feb 25, 2022 8:45 pm Post subject: |
|
|
Oh. Thanks.
Suddenly, I know the reason after reading your words.
It's exactly address and value.
I didn't realized that the first offset from dll is also a pointer before.
|
|
Back to top |
|
 |
AkaPuppets How do I cheat?
Reputation: 0
Joined: 11 Jul 2025 Posts: 1
|
Posted: Fri Jul 11, 2025 10:23 am Post subject: |
|
|
Hey, sorry for necroing
I have the same problem and I do not understand the answer provided.
What do I need to do so I get the address and not the value?
Thanks
|
|
Back to top |
|
 |
|