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 


Reading BaseAddress of executable .dll file

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
drumatic
How do I cheat?
Reputation: 0

Joined: 23 Feb 2014
Posts: 4

PostPosted: Sun Dec 27, 2015 11:49 am    Post subject: Reading BaseAddress of executable .dll file Reply with quote

Code:
process.MainModule.BaseAddress.ToString("X")


returns 0x400000 ( probably because file is dll and base address for dll file is 0x400000 )

Pointer offset is "somefile.dll"+008C535C -> 054D1790

So base address should be 0x4C0C434 right?

I also checked every module loaded for process and none of them has right base address (0x4C0C434)

Notes:
Mentioned .dll file is an .exe file which is executed from another application with doing some serverside authentication, updates etc.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Sun Dec 27, 2015 1:05 pm    Post subject: Reply with quote

drumatic wrote:
"somefile.dll"+008C535C -> 054D1790

This means that the address "somefile.dll"+008C535C points to the address 054D1790. AKA the value stored at the address "somefile.dll"+008C535C is 054D1790.

If you mean that "somefile.dll"+008C535C = 054D1790, then yes, the address "somefile.dll" is located at is 04C0C434 (054D1790 - 008C535C).

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
drumatic
How do I cheat?
Reputation: 0

Joined: 23 Feb 2014
Posts: 4

PostPosted: Sun Dec 27, 2015 1:20 pm    Post subject: Reply with quote

I tought -> as equal in CE. I just understood it means points to.

Thank you.


Last edited by drumatic on Sun Dec 27, 2015 3:28 pm; edited 2 times in total
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Sun Dec 27, 2015 1:56 pm    Post subject: Reply with quote

That's one of the most frequently asked questions in this forum. Google it before you ask it.

Here are some topics pertaining to it:
http://forum.cheatengine.org/viewtopic.php?t=563414
http://forum.cheatengine.org/viewtopic.php?t=545149
http://forum.cheatengine.org/viewtopic.php?t=584686
http://forum.cheatengine.org/viewtopic.php?t=584479

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
drumatic
How do I cheat?
Reputation: 0

Joined: 23 Feb 2014
Posts: 4

PostPosted: Sun Dec 27, 2015 3:19 pm    Post subject: Reply with quote

Okay, I figured it out.

Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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