FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Project CARS 2/3 Bff Decryption Tool (https://fileforums.com/showthread.php?t=102524)

Razor12911 06-01-2019 03:41

Project CARS 2/3 Bff Decryption Tool
 
1 Attachment(s)
Hello, here's the release of the decryption tool for this particular game.

At least the devs didn't use extreme compression settings like the FIFA 19 release even though they are called Slightly Mad Studio... :rolleyes:

Enjoy.

Shateiel 06-01-2019 12:13

Assuming you did your research, won't link zenhax/xentax, and if not, here you go:

https://forum.xentax.com/viewtopic.php?f=16&t=17057

Seems its using RC4, don't have bff file to test, any sample would be appreciated.

Razor12911 06-01-2019 14:07

Quote:

Originally Posted by Shateiel (Post 478477)
Assuming you did your research, won't link zenhax/xentax, and if not, here you go:

https://forum.xentax.com/viewtopic.php?f=16&t=17057

Seems its using RC4, don't have bff file to test, any sample would be appreciated.

I was rather expecting stuff like, don't waste your time on this because of slow recompression but I guess I shouldn't worry about that, and yes. I did a bit of research, for now. I figured out how to decrypt pretty much the entire game, all I need is a good strategy of detecting streams without reading the headers :) so I guess all is in good order.

yasitha 06-01-2019 18:34

Quote:

Originally Posted by Razor12911 (Post 478480)
:D

Who is This this Guy?
Where'd he from?
I think he's an aline :D

Tadaa.... Gotcha ;)

Hi bro what you need,
Just tell me what to do,
I want to help you.... You know like old days...

Shateiel 06-01-2019 20:47

Quote:

Originally Posted by Razor12911 (Post 478480)
I was rather expecting stuff like, don't waste your time on this because of slow recompression but I guess I shouldn't worry about that, and yes. I did a bit of research, for now. I figured out how to decrypt pretty much the entire game, all I need is a good strategy of detecting streams without reading the headers :) so I guess all is in good order.


Don't think there is any other way but to look for "PAK " and then parse and decrypt. You could've looked for encrypted headers as RC4 is simple, made a class reader to decrypt while reading to decompress, but thats out of option when recompressor and decyptor are two different exe.

Unless you got some some other brilliant idea which you can share (:

Razor12911 07-01-2019 14:55

Quote:

Originally Posted by Shateiel (Post 478484)
Don't think there is any other way but to look for "PAK " and then parse and decrypt. You could've looked for encrypted headers as RC4 is simple, made a class reader to decrypt while reading to decompress, but thats out of option when recompressor and decyptor are two different exe.

Unless you got some some other brilliant idea which you can share (:

Well I managed to do it without looking for "PAK " and parsing any of the headers :D

using bdt+oo2reck:
Code:

Compressed 1 file, 4,339,674 => 16,546,064 bytes. Ratio 381.27%
Compression time: cpu 0.03 sec/real 2.79 sec = 1%. Speed 1.56 mB/s

Extracted 1 file, 16,546,064 => 4,339,674 bytes. Ratio 381.27%
Extraction time: cpu 0.00 sec/real 0.77 sec = 0%. Speed 5.63 mB/s

4,13 MB (4 339 674 bytes) >> 15,7 MB (16 546 306 bytes)

using QuickBMS and nfsshift.bms:
Code:

4,13 MB (4 339 674 bytes) >> 15,7 MB (16 543 104 bytes)
Edit:

A bit bigger input this time and here are the results:
Code:

Compressed 1 file, 332,106,505 => 1,904,256,950 bytes. Ratio 573.39%
Compression time: cpu 0.70 sec/real 126.43 sec = 1%. Speed 2.63 mB/s

Tested 1 file, 1,904,256,950 => 332,106,505 bytes. Ratio 573.39%
Testing time: cpu 0.75 sec/real 27.13 sec = 3%. Speed 12.24 mB/s


yasitha 07-01-2019 19:56

Quote:

Originally Posted by Razor12911 (Post 478519)
Well I managed to do it without looking for "PAK " and parsing any of the headers :D

using bdt+oo2reck:
Code:

Compressed 1 file, 4,339,674 => 16,546,064 bytes. Ratio 381.27%
Compression time: cpu 0.03 sec/real 2.79 sec = 1%. Speed 1.56 mB/s

Extracted 1 file, 16,546,064 => 4,339,674 bytes. Ratio 381.27%
Extraction time: cpu 0.00 sec/real 0.77 sec = 0%. Speed 5.63 mB/s

4,13 MB (4 339 674 bytes) >> 15,7 MB (16 546 306 bytes)

using QuickBMS and nfsshift.bms:
Code:

4,13 MB (4 339 674 bytes) >> 15,7 MB (16 543 104 bytes)
Edit:

A bit bigger input this time and here are the results:
Code:

Compressed 1 file, 332,106,505 => 1,904,256,950 bytes. Ratio 573.39%
Compression time: cpu 0.70 sec/real 126.43 sec = 1%. Speed 2.63 mB/s

Tested 1 file, 1,904,256,950 => 332,106,505 bytes. Ratio 573.39%
Testing time: cpu 0.75 sec/real 27.13 sec = 3%. Speed 12.24 mB/s


Always the Smart One ;) Good Work :) Mate..

masen485 07-01-2019 20:58

Hi Razor12911
 
Hi Razor12911
Very nice development
Thank you
Project CARS 2 bff Decryptor (WIP)
Fit to try the application you're glued to?

Razor12911 08-01-2019 14:09

Initial release uploaded

Tested on:
Project CARS 2 - Spirit of Le Mans vers 7.1.0.1 (12/2018)

Pakfiles\Vehicles:
Code:

Compressed 703 files, 6,564,499,114 => 15,042,895,652 bytes. Ratio 229.16%
Compression time: cpu 41.98 sec/real 4437.19 sec = 1%. Speed 1.48 mB/s

Tested 703 files, 15,042,895,652 => 6,564,499,114 bytes. Ratio 229.16%
Testing time: cpu 15.78 sec/real 549.54 sec = 3%. Speed 11.95 mB/s

I wonder what game should be next to try and decrypt... :rolleyes:

doofoo24 08-01-2019 23:36

1 Attachment(s)
ok;
so done compressing with srep+lolz bff files 45.6gb > 95.6gb > 42.4gb > 18.9gb :D
bdt+oo2reck took around 3 hours...
edit : decompression it get to 4.7% remain stuck then data corrupt
it seem that bdt disappear in the processes but oo2reck continue to work for while then i get error

yasitha 08-01-2019 23:38

Quote:

Originally Posted by doofoo24 (Post 478601)
ok;
so done compressing with srep+lolz bff files 45.6gb > 95.6gb > 42.4gb > 18.9gb :D
bdt+oo2reck took around 3 hours

Nicely done... Numbers.... :D

KaktoR 09-01-2019 05:06

Quote:

Originally Posted by doofoo24 (Post 478601)
ok;
so done compressing with srep+lolz bff files 45.6gb > 95.6gb > 42.4gb > 18.9gb :D
bdt+oo2reck took around 3 hours...
edit : decompression it get to 4.7% remain stuck then data corrupt
it seem that bdt disappear in the processes but oo2reck continue to work for while then i get error

Have you tested with unpack.bat?

doofoo24 09-01-2019 07:14

ya the same thing :)
it manage to decompress 2.12gb then the bdt disappear :confused:

Razor12911 09-01-2019 15:21

could you run bdt by itself to see what happens when you unpack, since anyways it's fastest way I can think of to start debugging this thing

doofoo24 09-01-2019 15:57

ok so bdt alone decompress fine...


All times are GMT -7. The time now is 13:59.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com