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 


How exactly does DBVM work, from a technical perspective?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
h3x1c
Master Cheater
Reputation: 17

Joined: 27 Apr 2013
Posts: 306

PostPosted: Thu Aug 25, 2016 9:34 am    Post subject: How exactly does DBVM work, from a technical perspective? Reply with quote

I know why DBVM is useful and what enabling it allows you to do, but what I'm wondering is what's actually happening when you load DBVM? Like, under the hood, what is DBVM doing in relation to everything else in memory (OS, other applications, etc.)?

I would go digging through the source code to try and make heads or tails of things, but outside of Assembly, I'm still quite the noob with programming at the moment. Embarassed

I'm just curious and would like to really understand how DBVM does what it does. Thanks!

_________________
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu Aug 25, 2016 9:39 am    Post subject: Reply with quote

dbvm launches a hardware based virtual machine, and either boots up windows (or linux, or macos) or changes the current system session into that virtual machine.

After that DBVM will run the OS and is able to emulate hardware like physical memory, see low level operations like control register access, intercept interrupts, etc...

_________________
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
h3x1c
Master Cheater
Reputation: 17

Joined: 27 Apr 2013
Posts: 306

PostPosted: Thu Aug 25, 2016 10:00 am    Post subject: Reply with quote

Dark Byte wrote:
dbvm launches a hardware based virtual machine, and either boots up windows (or linux, or macos) or changes the current system session into that virtual machine.

After that DBVM will run the OS and is able to emulate hardware like physical memory, see low level operations like control register access, intercept interrupts, etc...


Are you having to do anything hack-ish or exploit-ish to get DBVM to work like it does, or is all of that possible via APIs and such if you know what you're doing? I think it's fascinating. Very Happy

_________________
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu Aug 25, 2016 11:43 am    Post subject: This post has 1 review(s) Reply with quote

Exploit-ish, nope. But hackish, I guess you can call it that.

After saving the current CPU state , it changes it to what DBVM is designed for. (Custom paging setup just for DBVM and it's memory management)
If compiled as debug build, it will try and connect to a serial port on a hardcoded IO port and output debug information to it, and also take commands from it)

Then it sets up a virtual machine with the saved CPU state, and runs it, followed by an infinite loop where it handles virtual machine events

_________________
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
h3x1c
Master Cheater
Reputation: 17

Joined: 27 Apr 2013
Posts: 306

PostPosted: Thu Aug 25, 2016 5:03 pm    Post subject: Reply with quote

Really neat stuff, man. Thanks for the insight. Gives me a lot to specifically look into. =)
_________________
Back to top
View user's profile Send private message Visit poster's website
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Thu Aug 25, 2016 5:23 pm    Post subject: Reply with quote

i am curious as to how many times did your system crash while developing and testing DBVM Laughing
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: Thu Aug 25, 2016 6:40 pm    Post subject: Reply with quote

Often, but I also tested on an emulator like Bochs which helped a lot. (of course it had a few bugs so I did still have to test on real hardware as well)


I of course used a test system specifically for this so at most I just had to build, press reset and book up using a usb stick with the DBVM img on it. (DBVM is designed to be able to load the operating system from boot time. The runtime offloading is just something I added later)

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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