Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Cracking DBP Exe's

Author
Message
Drew Cameron
20
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 28th Aug 2005 19:10 Edited at: 29th Aug 2005 18:23
[edit] Found a backup of my work on a pen drive: never mind.



Katie Holmes is back!
TDP Enterprises
19
Years of Service
User Offline
Joined: 28th Mar 2005
Location: on or in front of my computer
Posted: 28th Aug 2005 19:13
how did you lose your data?

“A lot of people approach risk as if it’s the enemy when it’s really fortune’s accomplice” - Sting“
Steve Fash
21
Years of Service
User Offline
Joined: 31st Dec 2002
Location: Doncaster, UK
Posted: 28th Aug 2005 19:19
I'm not sure if this is possible (I remember someone posting here a while back saying his friend had reverse engineered some db exe)....
If anyone could help you it would be whoever that was (or failing that one of the TGC guys)...
Good luck and I hope you get it sorted

For game/demo music for YOUR PC productions visit:-www.futuredevelopments.org.uk
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 28th Aug 2005 20:39
You cant convert the assembly back into source code - with DB 'Classic' it was feasible, although tricky (apparently), but with DBPro, all you would have to go on is machine code.

That what comes of not making regular backups

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 28th Aug 2005 20:40
Drew - Didn't this already happen to you this year? You didn't learn your backup lesson then!?


My "everyone else has one so why can't I?" blog: http://www.jeku.com/blog/
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 28th Aug 2005 20:45
but if you loose your code it never happens again right :p


Megaton Cat
21
Years of Service
User Offline
Joined: 24th Aug 2003
Location: Toronto, Canada
Posted: 28th Aug 2005 20:47
Now the D&C fans will suffer because of the creator's incompetence...


The future is here, and I can't afford it.
PowerSoft
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 28th Aug 2005 20:53
machine code being ASM?

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 28th Aug 2005 20:58 Edited at: 28th Aug 2005 21:23
I think that machine code is being binary: 1100100010110010101001010111010110010101010...
ASM still is compiled into binary.

A [binary to assembly] decompiler could be found, of course, but it would be better to decomile to C/C++ and try to learn that language.

-Xol


DBpro IonRay IDE: Demo 0.1.0.0 available!
Drew Cameron
20
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 28th Aug 2005 20:59 Edited at: 28th Aug 2005 21:03
Yes, it's happened already. It's the same faulty hard-drive and it's finally had it. Western Digital are sh*t.

I just found a backup I made in July 22nd, on a pen drive. I rule.
I just don't have one from the August 10th, the last build. (demo)

It's not a huge job to get back to work - I guess I'll lose about a week, but not longer. Luckily all the film work is on my internet computer (this one) because my other one doesn't support Fraps

Katie Holmes is back!
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 28th Aug 2005 21:00
Quote: "A decompiler could be found"

Doubtful, unless someone has found a way to decode assembler back into the correct DBPro code.

A decompiler into assembler is, of course, possible - see my original post.

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 28th Aug 2005 21:25
Quote: "A decompiler into assembler is, of course, possible"


Yes, that's what I was referring to. If one existed for DBpro, surely the whole community would know of it . Thus I said that it would be much easier to decompile into C/C++ (than assembly)

That's good, Drew Cameron. It would be very sad for such a near-completion game to be lost.

-Xol


DBpro IonRay IDE: Demo 0.1.0.0 available!
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 29th Aug 2005 00:29
be sure to let us know when your next hard drive crashes and it isnt a Western Digital drive.

Drew Cameron
20
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 29th Aug 2005 11:13 Edited at: 29th Aug 2005 11:13
I don't understand?

Katie Holmes is back!
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 29th Aug 2005 14:41
1. Get a new drive (if you haven't already
2. He was saying that the HDD you have is sh*t not Western Digital...not got a warranty or something?

OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 29th Aug 2005 14:54
I do wish they would hurry up and do 100Gb flash drives - mind you, they may not be any more reliable...

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 29th Aug 2005 15:01
The cost of one however...I'll stick with 2 SATA 200GB drives with warranty and backing up data

OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 29th Aug 2005 15:06
Yes, it would be rather pricey

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
re faze
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 31st Aug 2005 10:48
in theory you could get out the _virtual.dat and check through there, ive looked through it and a lot of it is readable/sort of i might work on it in my spare time

"I am what I am and that is all I can be -J King"
Torrey
20
Years of Service
User Offline
Joined: 20th Aug 2004
Location: New Jersey
Posted: 31st Aug 2005 11:47
DBP exe's can be decompiled and put back into their DBP code. I do this quite often because I debug some of the bugs submitted on this forum, and also on my own programs. The hex characters in executable binaries represent ASM instructions, which I can understand a code with. DBP in binary form is really easy to follow just like most programs before it calls one of the commands that are stored in its DLL's it pushes the proper values on the stack. From those values you can start to rebuild the application as it was in DBP. There are several other instructions like math functions, conditionals, etc. but you just have to follow the flow to decompile the application.
PowerSoft
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 31st Aug 2005 13:40
Quote: " DBP exe's can be decompiled and put back into their DBP code."


But how...

Torrey
20
Years of Service
User Offline
Joined: 20th Aug 2004
Location: New Jersey
Posted: 31st Aug 2005 13:45 Edited at: 31st Aug 2005 13:46
Look at this for example, you can recreate this section of code really easy.



For the answer click below:
PowerSoft
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 31st Aug 2005 13:47
And how do you get this information? A disammbeler? Which is the best one?

Torrey
20
Years of Service
User Offline
Joined: 20th Aug 2004
Location: New Jersey
Posted: 31st Aug 2005 13:51
I always use Olly Debugger (ollydbg). I got that section of code by placing a "wait key" command in my dbp code so that I can grab the function names that dbprocore uses since it loads the DLL after run time. Then I put a breakpoint on the PrintS function so it stops when it's accessed, then I can single step through and grab the code I needed to show you.
PowerSoft
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 31st Aug 2005 14:06
but if you only have the dbp EXE without any WAIT commands.

Torrey
20
Years of Service
User Offline
Joined: 20th Aug 2004
Location: New Jersey
Posted: 31st Aug 2005 14:46 Edited at: 31st Aug 2005 15:06
In that case load the program into Ollydbg and start scrolling upward, you'll eventually find some dbp function calls. Put a breakpoint on them, hit F9 and the debugger will automatically stop when it gets to that instruction.

At the bottom of my Audio Plugin post I posted an example program that uses trigger zones, here's the program block (the do-loop block to be exact) in asm code as displayed in the debugger.


From this you could rebuild (by translating) the code. By translating I mean converting the ASM to DBP assuming you understand both langs.
John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 31st Aug 2005 17:09 Edited at: 31st Aug 2005 17:19
I had a go at writing a decompiler in my spare time today at work, and it is going quite well. It's very basic at the moment, and can only extract the library files used and the Dark Basic Professional commands used.

It however will not be extended beyond it's current feature set or made public, as I respect peoples hard work.

(pic attached)

Attachments

Login to view attachments
Ace Of Spades
19
Years of Service
User Offline
Joined: 6th Mar 2005
Location: Across the ocean
Posted: 31st Aug 2005 17:25
Just learn to talk Machine, can't be much harder than Japanese.

"Dark Basic rocks! Although the things you can do are not as dynamic as C++, just think how long it would take to do the same thing! I can get FPS of over 60!"
Torrey
20
Years of Service
User Offline
Joined: 20th Aug 2004
Location: New Jersey
Posted: 31st Aug 2005 18:43
It's easier then Japanese. That way of speaking is on a completely different level of human thought. Far out of my range.
Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 31st Aug 2005 20:12
pfft-- Japanese is easy. Mandarin is the difficult one :-P


My "everyone else has one so why can't I?" blog: http://www.jeku.com/blog/
Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 31st Aug 2005 20:22
is speak machine.......for I am a machine

Making better games everday!
Oh yeah and just so you know its Oh-nek-a not One-ka!
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 31st Aug 2005 20:54
Drew, suggestion....when you upload you EXE, upload your source in a separate folder...only people who have the pswd to the FTP will be able to get it. and it doesnt take too long either, and then you will never have this problem again.

"people who wear clothing with tech themes for the purpose of gaining a social label are no different than teenagers who wear large sweatpants to look edgy"
-Wikipedia "Nerd"
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 1st Sep 2005 00:11
That's very good of you, JohnY .

Drew Cameron, you could ask JohnY to decompile your D+C as well as it can so that you can find changes you made since the last backup.

-Xol


DBpro IonRay IDE: Demo 0.1.0.0 available!
Drew Cameron
20
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 1st Sep 2005 20:17 Edited at: 1st Sep 2005 20:17
Already back up to scratch really, but thanks anyway.

Katie Holmes is back!
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 1st Sep 2005 22:16
backup
back
up

back

UP

"people who wear clothing with tech themes for the purpose of gaining a social label are no different than teenagers who wear large sweatpants to look edgy"
-Wikipedia "Nerd"

Login to post a reply

Server time is: 2024-11-15 19:13:51
Your offset time is: 2024-11-15 19:13:51