1. Add subfolder traversal in edat/sdat folder.
2. Fix 2G+ file handling issue (probably).
3. Fix syntax issue while handling certian edat files.
4. Re-adjust the mainmenu.
1. Add SDAT file supporting.
1. Fix Java OutOfMemory for encrypting big files.
2. Add JVM Memory config in toolcore.cfg.
1. Decrypt and encrypt edat files on pc.
2. Fast rebuild mode.
3. Batch mode.
4. Dev Klic should be input manually at now.
It seems Windows 8 cannot pass the java check.. maybe fix it in next version.
Finally, from oakhead69: Hi jjkkyu, If you have based your code on my C# code which in turn is based on the port by KDSBest. There is a significant bug in the reverseByteWithSizeFIX code.
It will fail the hash check on some data blocks, hench KDSBest removed the test. More importantly when generating the hash for the data blocks during encryption, the hash will be incorrect. Hench the resulting SDAT/EDAT will be bad. I have attached some updated code below.
public static byte reverseByteWithSizeFIX(byte b)
if (b.Length < 0x10 && (b[b.Length - 1] & 0x80) != 0)
b2 = new byte[0x10];
for (i = 0; i < b.Length; i++)
b2[b2.Length - 1 - i] = b[i];
for (i = b.Length; i < 0x10; i++)
b2[0x10 -1 - i] = 0xff;
b2 = new byte[b.Length];
for (i = 0; i < b2.Length; i++)
b2[b2.Length - 1 - i] = b[i];
Stay tuned for more PS3 Hacks and PS3 CFW news, follow us on Twitter and be sure to drop by the PS3 Hacks and PS3 Custom Firmware Forums for the latest PlayStation 3 scene updates and homebrew releases!
Finally, in related PlayStation 3 hacking news pink1 has made available an R2R+Edat tool followed by a R2R+edat v1.0.1 update with details below, as follows:
Here is a tool I put together. It's pretty much rap2rif, rif2rap and an edat fix tool for C00 type demos. Put your act.dat & idps in the data folder and you're ready for rap2rif & rif2rap. To fix C00 type demos input a .pkg from a C00 demo or the PARAM.SFO and it will output the fixed .edat.
This is a small update to R2R+edat, it fixes edats being a byte short & should speed up pkg2edat a lot by only decrypting the first 5MB instead of the whole pkg. Put your act.dat & idps in the data folder and you're ready for rap2rif & rif2rap. To fix C00 type demos input a .pkg from a C00 demo or the PARAM.SFO and it will output the fixed .edat.
To quote: This tool is used to bruteforce devklic for edat files on pc. It supports bruteforcing from binary or text files. It only take minutes to bruteforce in an elf file, no more waiting for hours or days.
This tool is based on BuC's EDAT Devklic Validator, all credit to BuC.
Update to v1.1
Fix a bug while bruteforce in text file.
If you meet some issue, please feedback. Thx.
Update to v1.2
Add 2 Modes:
Short Mode: Run only 4 rounds for binary source file. This mode doesn't try all the contents from source file. But it is enough in most cases.
Line Mode: Run only 1 round for text source file. This mode reads first 32 bytes in each line as devklic. It runs extremely fast for formatted text source file.