Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
RageX
Posts: 26 Joined: Fri Oct 09, 2015 3:38 pm
Post
by RageX » Fri Oct 09, 2015 3:40 pm
WRC 5 is released today on PC and as we know the developer is no longer Milestone who used to build WRC games with their MIX file format. The developer, Kylotonn behind WRC 5 used PAC/PWS file format for the game.
Can anyone please check the files and hopefully write unpacker/repacker for the game ?
PAC file sample :-
Code: Select all
https://www.dropbox.com/s/r1vp7wd6r2uva6w/PAC.7z?dl=0
PWS file sample :-
Code: Select all
https://www.dropbox.com/s/eatozdwkwmf6wef/PWS.7z?dl=0
aluigi
Site Admin
Posts: 12984 Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi » Sat Oct 10, 2015 8:20 am
type1.pac is probably an obfuscated/encrypted zip file type2.pac is just a normal zip file For the PWS files my suggestion is to use offzip at the moment.
markfiter
Posts: 4 Joined: Mon Mar 09, 2015 8:32 am
Post
by markfiter » Mon Oct 19, 2015 7:44 pm
aluigi A decryptor\encryptor is needed here. Most of files are encrypted.
aluigi
Site Admin
Posts: 12984 Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi » Thu Oct 22, 2015 8:35 am
So any feedback?
TheRanger
Posts: 6 Joined: Thu Oct 22, 2015 8:40 am
Post
by TheRanger » Thu Oct 22, 2015 8:42 am
aluigi wrote: So any feedback?
It works bro as usual, any way to encrypt the unpacked zip back into pac ? And what about PWS ?
aluigi
Site Admin
Posts: 12984 Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi » Thu Oct 22, 2015 9:00 am
Cool. To re-encrypt your new zip file just reuse the same script. It automatically checks if the extension is ZIP and in that case encrypts and creates a PAC file, otherwise decrypts the PAC in a ZIP. As suggested in my first post, currently offzip is the best and easiest solution for the PWS archives.
spider91
Posts: 233 Joined: Sun Aug 24, 2014 5:26 pm
Post
by spider91 » Thu Oct 22, 2015 8:11 pm
No need to reencrypt zip's. Game should work with normal zip's renamed to pac. Also key for the odd bytes at the end seems to be diferent for some pac's, but it steel can be unpacked with your's zip.bms.
aluigi
Site Admin
Posts: 12984 Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi » Thu Oct 22, 2015 8:33 pm
If you can provide one of these pac with bad bytes at the end, I can fix the script.
aluigi
Site Admin
Posts: 12984 Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi » Fri Oct 23, 2015 7:41 am
Fixed in 0.1.1, thanks
RageX
Posts: 26 Joined: Fri Oct 09, 2015 3:38 pm
Post
by RageX » Fri Oct 23, 2015 8:59 am
aluigi wrote: Fixed in 0.1.1, thanks
Thanks aluigi, you are an absolute perfectionist when it comes to this
rallyart04
Posts: 12 Joined: Fri Oct 23, 2015 8:45 pm
Post
by rallyart04 » Fri Oct 23, 2015 9:07 pm
Hi guys. It's my problem or is normal from .pac it becomes .tmp ? example quickbms + XXX.pac = XXX.tmp
aluigi
Site Admin
Posts: 12984 Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi » Fri Oct 23, 2015 9:48 pm
Check if you have quickbms 0.6.7a and script 0.1.1. I have checked from both command-line and double-click and it works ever correctly assigning the ZIP extension.
rallyart04
Posts: 12 Joined: Fri Oct 23, 2015 8:45 pm
Post
by rallyart04 » Fri Oct 23, 2015 9:54 pm
script 0.1.1. quickbms 0.6.7.97
aluigi
Site Admin
Posts: 12984 Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi » Fri Oct 23, 2015 9:57 pm
Uhmmm I have rechecked the script and it's all ok, the extensions are hardcoded so you can't get a ".tmp" that doesn't exist: it's ".pac" or ".zip".
aluigi
Site Admin
Posts: 12984 Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi » Fri Oct 23, 2015 10:00 pm
Any way to replicate the issue?
rallyart04
Posts: 12 Joined: Fri Oct 23, 2015 8:45 pm
Post
by rallyart04 » Fri Oct 23, 2015 10:03 pm
maybe i do something wrong check it please
aluigi
Site Admin
Posts: 12984 Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi » Fri Oct 23, 2015 10:13 pm
Yeah, you have correctly obtained the ZIP archive, the TMP file you see is inside the decrypted zip
So it's correct.
I checked these TMP files and they appear to be archives so I wrote a script on the fly:
http://aluigi.org/bms/wrc5_tmp.bms
rallyart04
Posts: 12 Joined: Fri Oct 23, 2015 8:45 pm
Post
by rallyart04 » Fri Oct 23, 2015 10:18 pm
WOW Aluigi are you an alien? lol I have always used your programs, but I have ever written here and I want to congratulate you thanks so much alien