![]() |
Help me with encrypted data.pak file
1 Attachment(s)
I wanted to repack the game Car Jacker Hotwired and Gone but the data.pak file is encrypted - so files like .ogg .wav .dds do not compress efficiently with msc, oggre...
I can extract the files with quickbms but this script cannot reconstruct them back. I wanted someone to help me make a tool that decrypts and encrypts (CLI) this file. Looking online I found a website (https://habr.com/ru/articles/689354/) where someone explains how to do this but I didn't understand anything:(. If anyone can help me I would really appreciate it. I really want to compress this data. interesting topic about this file: https://web.archive.org/web/20220309...p=69458#p69458 the AI claude told me that it is possible, using the quickbms script, to create a program in c++ (CLI) that has the function of decrypting and encrypting the data.pak file. but I don't understand anything about programming :(. so please, someone who understands programming do this for me, I beg you. Hahaha it was dramatic. it's serious!!! please! I will leave the file for analysis: |
1 Attachment(s)
Use quickbms reimport
Code:
quickbms_4gb_files -w -r "en_gine_pak_CarJacker - Hotwired and Gone.bms" "data.pak" "data.pak_extract" |
this doesn't help, because I will have to keep the data.pak plus the extracted files.
|
You keep data.pak, but it's empty except for something in the file footer which is required by the script to reimport the files properly so the data.pak file is crc perfect after second reimport.
|
Are you saying that the data.pak is empty after executing "01_unpack.bat" because if so... I'm running it and it's still not getting empty...
|
Look at the data.pak before and after reimport zero'd files. Original https://i.imgur.com/zhCl23U.png Reimported zero'd files https://i.imgur.com/V77fD0F.png If you compress the modified data.pak with 7z or any other compressor, ratio is extrem low (compressed data.pak from 91MB to 25KB). |
It took me a while but I understood haha, thanks. the only downside is that the quickbms executable is 19.3 MB and compressed 3.79 MB, this will overshadow almost all the gain I will have by decrypting the data.pak. But do what you know...that's life. If someone could create a C++ program from this BMS script, the executable would not exceed 100kb....
|
1 Attachment(s)
Quote:
Even though I've only ever dabbled in python scripting, writing a C++ application proved to be quite simple, here's the source code: Code:
#include <fstream> |
Couldn't you (if it's not too much to ask) simply produce a tool that looks like this pak_enc_dec that can be put in a chain like this: -mpak_enc_dec+oggre+srep+msc+lolz.
To be honest, your program I don't understand how it works. and it also has a dependency on dlls - which is not a big problem since when compressed it drops from 1.50mb to 343kb... Sorry if I'm being noob in any way. |
Quote:
|
1 Attachment(s)
forget it, I managed to create myself (with the help of AI) a tool(with only 29kb) that can be used like this: -mpak+oggre+srep+msc+lolz reaching all types
of files inside the data.pak already decrypted. this ambition I had to make this repack was more for sport - because it doesn't save much space - due to the amount of .ogg and .wav being small, but even so it was a delight to compress after applying the decryption. I'll leave the tool here for anyone who wants to use it too: |
| All times are GMT -7. The time now is 14:24. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com