ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Jul 21, 2018 11:29 pm

All times are UTC




Post new topic  Reply to topic  [ 36 posts ]  Go to page 1 2 Next
Author Message
PostPosted: Fri Oct 09, 2015 3:40 pm 

Joined: Fri Oct 09, 2015 3:38 pm
Posts: 26
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:
https://www.dropbox.com/s/r1vp7wd6r2uva6w/PAC.7z?dl=0


PWS file sample :-

Code:
https://www.dropbox.com/s/eatozdwkwmf6wef/PWS.7z?dl=0


Top
   
PostPosted: Sat Oct 10, 2015 8:20 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8478
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.


Top
   
PostPosted: Mon Oct 19, 2015 7:44 pm 

Joined: Mon Mar 09, 2015 8:32 am
Posts: 4
aluigi
A decryptor\encryptor is needed here. Most of files are encrypted.


Top
   
PostPosted: Mon Oct 19, 2015 11:58 pm 
Site Admin
User avatar

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


Top
   
PostPosted: Thu Oct 22, 2015 8:35 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8478
So any feedback?


Top
   
PostPosted: Thu Oct 22, 2015 8:42 am 

Joined: Thu Oct 22, 2015 8:40 am
Posts: 1
aluigi wrote:
So any feedback?


It works bro as usual, any way to encrypt the unpacked zip back into pac ? And what about PWS ?


Top
   
PostPosted: Thu Oct 22, 2015 9:00 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8478
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.


Top
   
PostPosted: Thu Oct 22, 2015 8:11 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 229
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.


Top
   
PostPosted: Thu Oct 22, 2015 8:33 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8478
If you can provide one of these pac with bad bytes at the end, I can fix the script.


Top
   
PostPosted: Fri Oct 23, 2015 7:29 am 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 229
http://www36.zippyshare.com/v/rY3enan5/file.html


Top
   
PostPosted: Fri Oct 23, 2015 7:41 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8478
Fixed in 0.1.1, thanks


Top
   
PostPosted: Fri Oct 23, 2015 8:59 am 

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


Thanks aluigi, you are an absolute perfectionist when it comes to this :)


Top
   
PostPosted: Fri Oct 23, 2015 9:07 pm 

Joined: Fri Oct 23, 2015 8:45 pm
Posts: 12
Hi guys. It's my problem or is normal from .pac it becomes .tmp ?

example

quickbms + XXX.pac = XXX.tmp


Top
   
PostPosted: Fri Oct 23, 2015 9:48 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8478
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.


Top
   
PostPosted: Fri Oct 23, 2015 9:54 pm 

Joined: Fri Oct 23, 2015 8:45 pm
Posts: 12
script 0.1.1.
quickbms 0.6.7.97


Top
   
PostPosted: Fri Oct 23, 2015 9:57 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8478
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".


Top
   
PostPosted: Fri Oct 23, 2015 10:00 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8478
Any way to replicate the issue?


Top
   
PostPosted: Fri Oct 23, 2015 10:03 pm 

Joined: Fri Oct 23, 2015 8:45 pm
Posts: 12
maybe i do something wrong check it please

Image


Top
   
PostPosted: Fri Oct 23, 2015 10:13 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8478
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


Top
   
PostPosted: Fri Oct 23, 2015 10:18 pm 

Joined: Fri Oct 23, 2015 8:45 pm
Posts: 12
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 ;)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 36 posts ]  Go to page 1 2 Next

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited