Kodewerx
https://www.kodewerx.org/forum/

CBDSCrypt
https://www.kodewerx.org/forum/viewtopic.php?f=11&t=3937
Page 1 of 1

Author:  kenobi [ Sun Aug 05, 2007 12:14 pm ]
Post subject:  CBDSCrypt

Here it is ! It allows you to decrypt/encrypt CBDS codes, and also includes a (m) code search.
Attachment:
File comment: CBDSCrypt 2.00
CBDSCrypt.rar [201.17 KiB]
Downloaded 1653 times

You'll find some docs included in the file.

Update : v2.00 adds supports for the CodeFreak encryption/decryption.

Edit : Just for the information, the CBDS encryption/decryption was broken in less than 2 weeks (as far as I remember, might have been 10 days) of casual work, but the tool has been hold (and improved/bugfixed) until now. That's why it's been released as version 1.02. Also, the CF encryption/decryption was broken in some hours.

Author:  Parasyte [ Sun Aug 05, 2007 12:26 pm ]
Post subject:  Re: CBDSCrypt

Thanks, Kenobi!

Also, here are the files which got this project started, around mid-December.

The files in the rar are:
smc-cbds.nds - v1.0.1 ROM dump
smc-cbds2.nds - v1.0.2 ROM dump
arm9enc.bin - v1.0.1 encrypted/compressed ARM9 executable
arm9enc2.bin - v1.0.2 encrypted/compressed ARM9 executable
CBDSDEC - decryptor/decompressor for ARM9 executables

You can probably see how I dumped the encrypted executables from the ROMs by looking through the arm9 binary (dump it with ndstool for example) this is just a small loader that loads and decrypts/decompresses the real executable to RAM address 0x021F0000 ... use cbdsdec to decrypt and decompress the files. Then you can load them in IDA Pro.

Attachments:
CBDS.rar [974.06 KiB]
Downloaded 984 times

Author:  James0x57 [ Sun Aug 05, 2007 11:42 pm ]
Post subject:  Re: CBDSCrypt

Awesome.
Thanks!

Author:  sirtyface [ Sun Aug 12, 2007 12:25 pm ]
Post subject:  Re: CBDSCrypt

Hm. It doesn't seem to be working for me. I try dropping the ROM onto the file, but the title bar doesn't change or anything. I'm trying this with Pokemon Diamond, by the way.

Author:  Parasyte [ Mon Aug 13, 2007 4:49 pm ]
Post subject:  Re: CBDSCrypt

Does the cursor change to the "drop" cursor while you are hovering the file over the window? (It looks like the pointer arrow with a small + sign by it.) If yes, and you are still having the same problem, the program either has a bug, or your ROM is bad.

Author:  sirtyface [ Tue Aug 14, 2007 9:29 pm ]
Post subject:  Re: CBDSCrypt

No, it doesn't give the drop cursor. But it doesn't do that with dlong's Master Code Creator either, and it works just fine. (granted, I haven't tested any of the master codes the generator gives, but still) Is the Decrypter incompatible with the Pokemon games or am I still doing something wrong?

Author:  bfoos [ Fri Aug 17, 2007 12:27 am ]
Post subject:  Re: CBDSCrypt

Don't drop the rom on the executable. Launch it first, then drop the rom in the window.

Awesome app, kenobi! Thanks.

Author:  Parasyte [ Fri Aug 17, 2007 5:38 pm ]
Post subject:  Re: CBDSCrypt

Right, it's a drag-and-drop feature, not a command line feature. (Dropping the file onto the program icon in explorer passes that filename to the program on the command line. Dropping a file from explorer onto the program's window is drag-and-drop.)

Author:  sirtyface [ Sun Aug 19, 2007 6:16 pm ]
Post subject:  Re: CBDSCrypt

Oh, ok. Yeah, that worked. Thanks for the help guys. =)

Author:  Hiei-YYH [ Thu Aug 23, 2007 12:27 pm ]
Post subject:  Re: CBDSCrypt

oh man, i didn't saw that before :/ i was talking to CMX then he gave me this... guess I'm blind


anyway, thank you kenobi and parasyte :lol:

Author:  kenobi [ Sat Nov 24, 2007 6:48 pm ]
Post subject:  Re: CBDSCrypt

For the general information, I just discovered a new codebreaker "made in japan" is out under the name "codefreak" (maybe it is out since some months/years...?).
It seems to supports unencrypted code like the CBDS (when putting a 8 at the start of an (m) code), as numerous site are posting unecrypted codes for it.
However I just found some encrypted codes, and I can say it has a different encryption than the CBDS, the main visible difference is that the values are not encrypted for some code types.
Exemple (taken from this site) :
(M)
00007C0D 5943584A
CD8AB39B 0DC445EE
コズミックゲート残機99
3D828B4B 00000063

I was not quite sure where to make this post, so I choosed the CBDSCrypt thread to let you know CBDSCrypt can't decrypt these codes, and I doubt codes encrypted with CBDSCrypt work with it (unless it has a 'backward compatibility' of some sort).

Edit : Funny thing. The 29 november they'll sell a new version of this codefreak, called codefreak typeII, which has a micro SD slot.
I guess this is only for multimedia capabilities ;)

Edit2 : Whoa this codefreak is much better than the CBDS. It allows to upgrade cheats (not deleting the one you've entered), or make a system upgrade only (without touching the cheats). Also, the type II allows to enter the codes on the PC, put them on a file on a SD card, and load them in the codefreak. Go there and scroll down to see some pics.

Author:  kenobi [ Wed Dec 19, 2007 11:48 am ]
Post subject:  Re: CBDSCrypt

v2.00 is up : Added support for the CodeFreak.

The CodeFreak encryption has nothing to do with the CBDS one. It's still game dependant, because its seed is based on the gamecode, but it doesn't rely on the secure area like the CBDS, now it's just an internal table that is scrambled. Also only the codes entered in the (m) code (except the gamecode of course) are fully encrypted. All other codes are 'half encrypted', ie. only the address is encrypted.

To make it easier, I made it that codes type A0,A8,F0 and F8 are fully encrypted/decrypted. The gamecode is left untouched (but its MSB (encrypted/decrypted bit)), and all other code types are half encrypted/decrypted. Also, the rom could be uneeded, but to avoid any problem (and to allow the decryption/encryption of any line of code when the gamecode isn't entered), I made it that you still need to drag & drop it on the tool to enable the encryption/decryption.

The tool has been succesfuly tested on half a dozen encrypted codes for different games. I'll make more tests later on.

Edit : for the general information, the CodeFreak type I (1.0.3) uses the very same code handler than the CBDS 2.0

Author:  Hiei-YYH [ Thu Dec 20, 2007 2:23 pm ]
Post subject:  Re: CBDSCrypt

huh? so you didn't knew about codefreak? XD your katakana reading probably is bad :P

Author:  kenobi [ Thu Dec 20, 2007 3:41 pm ]
Post subject:  Re: CBDSCrypt

Well honestly I never paid attention to the japanese NDS cheating devices.
I just knew there was a japanese CBDS, but I never searched for more informations (as I though it was the very same than the CBDS, there was no point in looking into it). Until some guy posted some codefreak codes, and when I looked at them I realized it was using CBDS codes types, but not CBDS encryption. That day I discovered that the codefreak existed, and that is was very different - and much better - than the CBDS.

Also - and please don't worry about my kanas reading skill - but I'm not sure what katakanas have to do with this. I've been to pages that have 'codeFreak' in plain roman letters (like here), so even if I couldn't read ka(taka)nas I should have seen/remember it... But I didn't, so I guess I just couldn't care less back then.

Author:  Dualscreenman [ Wed Dec 26, 2007 9:17 am ]
Post subject:  Re: CBDSCrypt

Oh, just so you know, this works perfectly in Linux using Wine. 8-)

Author:  Radical Hacker [ Mon Jul 07, 2008 9:13 pm ]
Post subject:  Re: CBDSCrypt

here's the site translated into English, sorry for post LATE on this topic :(

http://translate.google.com/translate?hl=en&u=http%3A%2F%2Fwww.cybergadget.co.jp%2Fproducts%2Fcf%2F4544859811111%2F

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/