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++] DLL function hook help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Full Metal Jacket
Newbie cheater
Reputation: 0

Joined: 11 Jul 2013
Posts: 14

PostPosted: Thu Jul 11, 2013 3:03 pm    Post subject: [C++] DLL function hook help Reply with quote

There is anticheat.DLL which has the function sub_100CBA4E responsible for sending informations to server to check if you're banned or not. This .DLL isn't exported but injected to portable executable(third party mod), so address 100CBA4E changes then. I know that I can use GetModuleHandle function to go directly to the DLL start address but I still don't know what's the offset to get 100CBA4E function.

How can I get address of this function after injection to some EXE?
GetModuleHandle("anticheat.dll") + ???? = 100CBA4E

Thanks in advance, someone adviced me to use FindPattern but I completely don't know how can I use it.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Thu Jul 11, 2013 3:06 pm    Post subject: Reply with quote

the offset is probably CBA4E as windows prefers to load modules on a 20 bit alignment
anyhow, in CE you can press ctrl+m, or just "go to address anticheat.dll" to see the base 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
View user's profile Send private message MSN Messenger
Full Metal Jacket
Newbie cheater
Reputation: 0

Joined: 11 Jul 2013
Posts: 14

PostPosted: Thu Jul 11, 2013 3:10 pm    Post subject: Reply with quote

Nvm thanks. // edited
Im gonna test it out
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