Call of duty MW3 & Black ops sound file_PS3

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Call of duty MW3 & Black ops sound file_PS3

Post by rkthelegend »

Hey everyone i'm here again with another problem and the problem is regarding sound files of Call of duty MW3 & Black ops 1.

as i looked at the files in hex editor i found that they are wav and mp3 files that have put inside a archive.
i was able to play them with windows media player but i couldn't extract them like rar or zip archives so i wrote here that somebody who is master in opening such file could help me out.

i am attaching all samples that you might need.

here are the samples
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: Call of duty MW3 & Black ops sound file_PS3

Post by rkthelegend »

i googled every possible sites my only hope is this website
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Call of duty MW3 & Black ops sound file_PS3

Post by aluigi »

packfile1.pak is just an mp3 file with an ID3 that lists all the points of the audio.
This script dumps each single mp3 file referenced there:

Code: Select all

endian big
goto 0x800
idstring "ID3\x03"
get DUMMY long
getdstring DUMMY 8
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY short
get FILES short
savepos TMP
xmath BASE_OFF "TMP + (FILES * 4)"
math BASE_OFF x 0x100
for i = 0 < FILES
    get OFFSET long
    math OFFSET + BASE_OFF
    putarray 0 i OFFSET
next i
    get OFFSET asize
    putarray 0 i OFFSET
for i = 0 < FILES
    getarray OFFSET 0 i
    math i + 1
    getarray SIZE   0 i
    math SIZE - OFFSET
    string NAME p "%d.mp3" i
    log NAME OFFSET SIZE
next