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 


Link Static Addrese

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

Joined: 20 Dec 2014
Posts: 103

PostPosted: Mon Dec 14, 2015 4:04 am    Post subject: Link Static Addrese Reply with quote

I am patching a dll and in the original code I am patching I came across with the following which I need to rewrite in my inline asm:

mov eax, [sound.dll+12E0]

Is there a way for me to load my dll via Loadlibrary and static linked sound.dll+12E0 to my code?

Thanks !
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Dec 14, 2015 5:46 am    Post subject: Reply with quote

Yes. Inject your library doing the normal CreateRemoteThread method (Google it there are millions of examples). Afterward you can use GetModuleHandle to obtain the base address of sound.dll and do what you need.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Mon Dec 14, 2015 5:51 am    Post subject: Reply with quote

Thanks. I understand, that is the way I have been doing it.

My question is if the DLL can link to that address when LoadLibrary is called, doing a linkage via some imports or any other artifact?

Thanks !
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 Gamehacking 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