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 


Why GetThreadContext doesn't catch the DBVM?

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

Joined: 02 Feb 2017
Posts: 149

PostPosted: Tue May 19, 2020 3:01 pm    Post subject: Why GetThreadContext doesn't catch the DBVM? Reply with quote

So using GetThreadContext the veh debugger can be detected easily, but the kernelmode one can't...
If I open the view showing threads of the process that I'm debugging with cheat engine, with the kernel debugger debugging it shows that debug registers aren't touched at all.
Just how is it possible?

Edit: to be more precise it happens when I enable global debug, with global debug disabled registers can be seen changing
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed May 20, 2020 1:59 am    Post subject: Reply with quote

With kernelmode debug and global debug enabled CE's driver will take full control of the DR registers
Reading from and writing to the DR register will cause the driver to be invoked which then emulates the read/write instruction hiding the debug registers it has set

_________________
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
Viloresi
Expert Cheater
Reputation: 0

Joined: 02 Feb 2017
Posts: 149

PostPosted: Thu May 21, 2020 4:13 am    Post subject: Reply with quote

Thank you.
P,.s. I have another question but I make another thread to avoid going offtopic
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