WRC 5 PC [.PAC/.PWS], Someone ?

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

WRC 5 PC [.PAC/.PWS], Someone ?

Post by RageX »

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

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by aluigi »

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

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by markfiter »

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

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by aluigi »

If the key is fixed, this script can do the job:
http://aluigi.org/bms/wrc5_paczip.bms
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by aluigi »

So any feedback?
TheRanger
Posts: 6
Joined: Thu Oct 22, 2015 8:40 am

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by TheRanger »

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

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by aluigi »

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

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by spider91 »

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

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by aluigi »

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

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by aluigi »

Fixed in 0.1.1, thanks
RageX
Posts: 26
Joined: Fri Oct 09, 2015 3:38 pm

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by RageX »

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

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by rallyart04 »

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

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by aluigi »

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

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by rallyart04 »

script 0.1.1.
quickbms 0.6.7.97
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by aluigi »

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

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by aluigi »

Any way to replicate the issue?
rallyart04
Posts: 12
Joined: Fri Oct 23, 2015 8:45 pm

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by rallyart04 »

maybe i do something wrong check it please

Image
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by aluigi »

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

Re: WRC 5 PC [.PAC/.PWS], Someone ?

Post by rallyart04 »

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 ;)