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 


Can I load DBVM in my own code?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source
View previous topic :: View next topic  
Author Message
jackendra
How do I cheat?
Reputation: 0

Joined: 11 Mar 2014
Posts: 8

PostPosted: Thu Jun 11, 2015 9:43 am    Post subject: Can I load DBVM in my own code? Reply with quote

I'm wanting to do some memory editing on a game, but the game will crash on WriteProcessMemory, unless I load DBVM.

Is there a way I can load DBVM from my own code like CE would?
~ And maybe where in the source I could find this?
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 465

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

PostPosted: Thu Jun 11, 2015 12:08 pm    Post subject: Reply with quote

i take it you mean dbk32/64 instead of dbvm

the sourcecode for that is at https://github.com/cheat-engine/cheat-engine/tree/master/DBKKernel and you can compile it with tge windows ddk (6700. 16xxx or something)

_________________
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
jackendra
How do I cheat?
Reputation: 0

Joined: 11 Mar 2014
Posts: 8

PostPosted: Thu Jun 11, 2015 12:14 pm    Post subject: Reply with quote

Dark Byte wrote:
i take it you mean dbk32/64 instead of dbvm

the sourcecode for that is at cheat-engine/cheat-engine/tree/master/DBKKernel and you can compile it with tge windows ddk (6700. 16xxx or something)


I assume I did mean that.
Thank you, I'll check out the link.

Also, what resources should I check out for actually loading the driver? or is it all inside the github link?

Again thanks.

Edit: One question, did you sign the driver?
I wasn't sure, I assume thats how it loads on Vista x64 and up. (or is it XP+?)
But arent the certificates at least somewhat costly?


Nevermind, it is signed with a cert
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 465

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

PostPosted: Thu Jun 11, 2015 3:43 pm    Post subject: Reply with quote

the dbkfunctions.pas contains code to load and access the driver from usermode

now for the signed part: you MUST compile and optionally sign the driver yourself if you wish to use it.
The release build of the driver, which is signed, will only accept commands from exe's that have a valid .sig file, which is a hash of the .exe. (it's a precaution to make sure no malware uses it)

_________________
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
jackendra
How do I cheat?
Reputation: 0

Joined: 11 Mar 2014
Posts: 8

PostPosted: Thu Jun 11, 2015 3:45 pm    Post subject: Reply with quote

Dark Byte wrote:
the dbkfunctions.pas contains code to load and access the driver from usermode

now for the signed part: you MUST compile and optionally sign the driver yourself if you wish to use it.
The release build of the driver, which is signed, will only accept commands from exe's that have a valid .sig file, which is a hash of the .exe. (it's a precaution to make sure no malware uses it)


I see.
Thank you for the help.
Back to top
View user's profile Send private message Send e-mail
jackendra
How do I cheat?
Reputation: 0

Joined: 11 Mar 2014
Posts: 8

PostPosted: Fri Jun 12, 2015 11:18 am    Post subject: Reply with quote

i'm getting a lot of errors simlilar to:
A2006: undefined symbol : rcx
This is building with MSVS though, should I do it within my win2k VM? Or is it possible to do it in VS
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 465

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

PostPosted: Fri Jun 12, 2015 12:41 pm    Post subject: Reply with quote

it's not possible to do it with VS (I use it for editor, but not compile)
You must use the win xp or win 7 build environment that the windows ddk installs

_________________
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
jackendra
How do I cheat?
Reputation: 0

Joined: 11 Mar 2014
Posts: 8

PostPosted: Fri Jun 12, 2015 2:09 pm    Post subject: Reply with quote

Dark Byte wrote:
it's not possible to do it with VS (I use it for editor, but not compile)
You must use the win xp or win 7 build environment that the windows ddk installs


I'm downloading the ISO file for DDK 7.1.x
Ill see if it had the build environments. (Apparently 8.x+ does not)

Edit: I edited my post just a little too late.

All this time I was trying to do it with a newer version, but as I mentioned above I have now downloading GRMWDK_7600


Last edited by jackendra on Fri Jun 12, 2015 2:15 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 465

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

PostPosted: Fri Jun 12, 2015 2:12 pm    Post subject: Reply with quote

use DDK 7600.16385.1 if you can

after instalation you'll have a start->windows driver kits->wdk 76000.16385.1->Build environments
In there is the win 7 64-bit free build environment.
Use that, go to the folder where dbkkernel is and execute ce.bat

_________________
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
jackendra
How do I cheat?
Reputation: 0

Joined: 11 Mar 2014
Posts: 8

PostPosted: Fri Jun 12, 2015 3:46 pm    Post subject: Reply with quote

Alright! I have successively built both a 32 and 64 bit driver.
I'm about to (although inadvisable) turn off forced driver signing to test it.
Back to top
View user's profile Send private message Send e-mail
tejinaji
How do I cheat?
Reputation: 0

Joined: 08 Jun 2024
Posts: 7

PostPosted: Wed Jul 17, 2024 9:31 am    Post subject: Reply with quote

Dark Byte wrote:
i take it you mean dbk32/64 instead of dbvm


Thank you for you work <3
But what about DBVM is it possible to run with C++ code I mean if I want to work with it do break and read registers when it reached?

Dark Byte wrote:
the dbkfunctions.pas contains code to load and access the driver from usermode


but this file does not exist anymore, is it still available?

I've found DBK32Function.pas is it that? It contains vmdisk.img string Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source 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