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 do you make a Cheat Engine trainer use DBK32

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Reclaimer Shawn
Advanced Cheater
Reputation: 0

Joined: 09 Jun 2015
Posts: 77

PostPosted: Mon Sep 12, 2016 5:27 pm    Post subject: How do you make a Cheat Engine trainer use DBK32 Reply with quote

So, I had a user on my YouTube channel complain that he couldn't use my software as his OS was 32 Bit. So, I tried including DBK32 and my .SIG file in my tool. I made sure to set it up so it was a 32 Bit trainer. It keeps telling me the driver isn't loading properly. Here's the code I use to initialize DBK64:

Code:

dbk_initialize()

openProcess([[Pokemon XD Gale of Darkness Randomizer.exe]])
reinitializeSymbolhandler()

autoAssemble([[
alloc(NewVirtualProtectEx,256, VirtualProtectEx )
alloc(OriginalVirtualProtectEx, 8, VirtualProtectEx)
registersymbol(NewVirtualProtectEx)
registersymbol(OriginalVirtualProtectEx)
label(notself)
NewVirtualProtectEx:
cmp ecx,ffffffff
jne short notself


jmp [OriginalVirtualProtectEx]


notself:
xor rax,rax
ret

]])

s=generateAPIHookScript("VirtualProtectEx", "NewVirtualProtectEx", "OriginalVirtualProtectEx")

--stupid bug in generateAPIHookScript forgets the alloc originalcall0
s=[[alloc(originalcall0, 64, VirtualProtectEx)
]]..s

autoAssemble(s)

dbk_useKernelmodeOpenProcess()
dbk_useKernelmodeProcessMemoryAccess()


I also tried changing the 64 to a 32 in the code, and it still will not boot for me. Is it because I run on a 64 bit OS and it isn't compatible with DBK32?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon Sep 12, 2016 5:58 pm    Post subject: Reply with quote

both dbk32.sys and dbk64.sys need to be added to the package
the trainername.exe.sig file must be present. (if build for 32 bit, the cheatengine-i386.exe.sig file needs to be renamed to trainername.exe.sig)

of course, dbk32.sys doesn't bother with the .sig check, so that shouldn't be something to waste to much time on

_________________
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
Reclaimer Shawn
Advanced Cheater
Reputation: 0

Joined: 09 Jun 2015
Posts: 77

PostPosted: Mon Sep 12, 2016 8:39 pm    Post subject: Reply with quote

Dark Byte wrote:
both dbk32.sys and dbk64.sys need to be added to the package
the trainername.exe.sig file must be present. (if build for 32 bit, the cheatengine-i386.exe.sig file needs to be renamed to trainername.exe.sig)

of course, dbk32.sys doesn't bother with the .sig check, so that shouldn't be something to waste to much time on


Hey Dark Byte, could you please read your Private Messages? I'm sorry to bother you.
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 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