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 


couple questions

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Wed Aug 01, 2012 6:44 am    Post subject: couple questions Reply with quote

i'm asking some questions to clear up my confusion with anti-hacking system and how they hook a function.

when an anti-hacking system decides to do a block lets say GetAsyncKeyState within the user32.dll locally, it'll modify GetAsyncKeyState within every open application correct? how does the anti-hacking system hook a function locally and globally? and how is that bypassable with a driver?
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Aug 01, 2012 7:55 am    Post subject: Reply with quote

if the hook is being done in user32.dll then it means the anti-hacking system has instrumented every process. this typically requires it to inject itself into all processes. this is why at some stage, some anti-hacking systems could be bypassed by hiding your process

the hook itself is typically just a detour at the start of the function although this is not the only way of detouring execution. as discussed, a global usermode hook is simply a local hook in every process.

usermode hooks do not even require a driver to be bypassed. they can be simply trampolined. that is, make a copy of the bytes that are overwritten by the hook and execute them first then unconditionally branch to the instruction directly after the hook. it is bypassable with a driver by a similar notion. because many usermode functions interacting with the system are actually fancy 'wrappers' around some kernelmode function/s, you can invoke the kernelmode equivalent from a driver completely bypassing the usermode part of the function.
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