Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


C++ Calculate address of exe+pointers

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
SleepiDreamer
Cheater
Reputation: 0

Joined: 27 Aug 2021
Posts: 41

PostPosted: Sun Nov 28, 2021 5:43 am    Post subject: C++ Calculate address of exe+pointers Reply with quote

for a while now, me and a friend have been trying to find a way to go from:
Code:
[[[["Minecraft.Windows.exe"+04169158]+40]+A0]+C0]+DC

to the address:
Code:
0x1A756FC0ECC


We think we understand how pointers work (DarkByte's post) but can't really test it without knowing the modulebase.

So how do we get the address of our exe?

_________________
Hope you're having a great day!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25788
Location: The netherlands

PostPosted: Sun Nov 28, 2021 6:26 am    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?p=5280115#5280115
_________________
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
View user's profile Send private message MSN Messenger
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Sun Nov 28, 2021 6:35 am    Post subject: Reply with quote

This will retrieve the base address of the main module of the attached process in Lua, as mentioned by DB, if you require it using C/C++ then see the link provided.

Code:

print('Base address for attached process ' .. process .. ' is ' .. string.format("%X", getAddressSafe(process)))
Back to top
View user's profile Send private message
SleepiDreamer
Cheater
Reputation: 0

Joined: 27 Aug 2021
Posts: 41

PostPosted: Sun Nov 28, 2021 6:58 am    Post subject: Reply with quote

I've tried to decipher what it (the link) is doing and recreate it in C++ but I don't know that language. I can't find an explanation of how you should do it anywhere.
_________________
Hope you're having a great day!
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Sun Nov 28, 2021 7:36 am    Post subject: Reply with quote

A search will point you in the right direction:

https://cpp.hotexamples.com/examples/-/-/CreateToolhelp32Snapshot/cpp-createtoolhelp32snapshot-function-examples.html

https://cpp.hotexamples.com/pt/examples/-/-/Module32First/cpp-module32first-function-examples.html

I don't mean to be rude but search engines exist for a reason; to answer the questions you have. You were born with a brain, it's up to you how you use it. Now if you need something explaining that's where other people can come in but ideally, you want to figure it out yourself because you won't learn by copying/pasting code.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites