FSBext - FSB files extractor

Do you know a tool, link or website for working on a specific game files or to help game research? Let's collect them here!
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: FSBext - FSB files extractor

Post by AnonBaiter »

Basically, I got that archive from a Wii game made by Rockstar(Bully Scholarship Edition). That's it.

EDIT: So I used your script and this is what I got. Also, the output files are supposed to be .genh, not .gen.
If you wish I can upload what's left from the archive(.bin, .lst).

EDIT2: And last but not least:

Code: Select all

  00000000 31006      00009dcf.dat

Error: incomplete input file 0: E:\ROCKSTAR_LEL\BULLY_SCHOLARSHIP_EDITION\WII\audio\PLAYLIST\Speech.fsb
       Can't read 4 bytes from offset 4c1b8800.
       Anyway don't worry, it's possible that the BMS script has been written
       to exit in this way if it's reached the end of the archive so check it
       or contact its author or verify that all the files have been extracted.
       Please check the following coverage information to know if it's ok.

  coverage file 0    96%   1233909539 1276872704

Last script line before the error or that produced the error:
  4   get DUMMY1 long
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FSBext - FSB files extractor

Post by aluigi »

The error with the last file is correct because there is no end-of-file check in the script.
cyberspeed
Posts: 104
Joined: Wed Mar 23, 2016 5:11 am

Re: FSBext - FSB files extractor

Post by cyberspeed »

Hey guys.
Quick question.
While using fsbext, if it can find a partial password, how many characters should it be? and you count from where?
I have the following results on a file, please advise, if possible, thank you.

Code: Select all


FSB files extractor 0.3.5
by Luigi Auriemma
e-mail: me@aluigi.org
web:    aluigi.org

- GUI mode activated, remember that the tool works also from command-line
  where are available various options

- select the output folder where extracting the files
- input file:   C:\Program Files (x86)\Origin Games\SHIFT 2 UNLEASHED\Audio\Musi
c\drift_music.fsb
- enter folder: C:\Users\User\Desktop\TCWD\fsbext
- probably the file uses encryption, insert the needed keyword:
  type ? for viewing the hex dump of the first 176 bytes of the file because
  it's possible to see part of the plain-text password in the encrypted file!
  ?
- encryption type 1
6c ae b4 ae ca 9a 7a c6 24 92 d2 ac c1 27 6b 5a   l.....z.$....'kZ
1e ac 56 92 d0 6c d6 e6 91 1a fb e9 f4 39 e6 e6   ..V..l.......9..
35 e8 ec d6 1b 4c 9d 04 bb 54 87 43 e3 b0 52 4f   5....L...T.C..RO
14 ac 54 d8 60 0e fc 1c 20 62 88 40 b2 98 80 c8   ..T.`... b.@....
f4 c6 70 ac 38 68 34 50 ca 32 d2 ac c2 4c 6e 7a   ..p.8h4P.2...Lnz
1f da c4 92 f1 0d d4 e6 ac 6e 72 12 da 58 84 56   .........nr..X.V
0e 24 d6 82 c3 47 7a c6 d3 32 d3 ac c3 4c 4e 7a   .$...Gz..2...LNz
1e ac 77 6e f2 6e ee 84 a6 6e 72 12 24 2e 36 56   ..wn.n...nr.$.6V
04 64 d4 c8 50 f8 50 3c a0 be 28 3e 84 da 30 fc   .d..P.P<..(>..0.
e4 5e 38 04 14 6c d6 e6 ac 6e 72 12 24 2e 36 56   .^8..l...nr.$.6V
0f d5 8c 82 c0 49 08 c6 2c 32 d2 ac 3c fd 14 7a   .....I..,2..<..z

- encryption type 2
70 26 6f 33 53 59 5e 63 24 49 4b 35 83 e4 d6 5a   p&o3SY^c$IK5...Z
78 35 6a 49 0b 36 6b 67 89 58 df 97 2f 9c 67 67   x5jI.6kg.X../.gg
ac 17 37 6b d8 32 b9 20 dd 2a e1 c2 c7 0d 4a f2   ..7k.2. .*....J.
28 35 2a 1b 06 70 3f 38 04 46 11 02 4d 19 01 13   (5*..p?8.F..M...
2f 63 0e 35 1c 16 2c 0a 53 4c 4b 35 43 32 76 5e   /c.5..,.SLK5C2v^
f8 5b 23 49 8f b0 2b 67 35 76 4e 48 5b 1a 21 6a   .[#I..+g5vNH[.!j
70 24 6b 41 c3 e2 5e 63 cb 4c cb 35 c3 32 72 5e   p$kA..^c.L.5.2r^
78 35 ee 76 4f 76 77 21 65 76 4e 48 24 74 6c 6a   x5.vOvw!evNH$tlj
20 26 2b 13 0a 1f 0a 3c 05 7d 14 7c 21 5b 0c 3f    &+....<.}.|![.?
27 7a 1c 20 28 36 6b 67 35 76 4e 48 24 74 6c 6a   'z. (6kg5vNH$tlj
f0 ab 31 41 03 92 10 63 34 4c 4b 35 3c bf 28 5e   ..1A...c4LK5<.(^

- probably the file uses encryption, insert the needed keyword:
  type ? for viewing the hex dump of the first 176 bytes of the file because
  it's possible to see part of the plain-text password in the encrypted file!

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

Re: FSBext - FSB files extractor

Post by aluigi »

The key for that game is available on my website from long time:
http://aluigi.altervista.org/papers.htm#info
Just search Need for speed
cyberspeed
Posts: 104
Joined: Wed Mar 23, 2016 5:11 am

Re: FSBext - FSB files extractor

Post by cyberspeed »

aluigi wrote:The key...

Thank you, :)
Much appreciated.
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: FSBext - FSB files extractor

Post by Savage »

Compiled version for Linux, includes the source and the exe for Windows too
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: FSBext - FSB files extractor

Post by spider91 »

Have a big .fsb (version 5) archive with mp3 format and last file extracted from it is obviously wrong, cause it have 1gb size while 1.38 is whole .fsb size and rest of extracted files are 1.37gb.

Screenshot with wrong last file size - https://puu.sh/vuyQF/d6afc2cda3.png
Main .fsb file - https://mega.nz/#!BAZBxSSb!7M3U6tXPjeF7 ... 6KSTT86NPg

P.S.
Using fsbext 0.3.6
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: FSBext - FSB files extractor

Post by spider91 »

aluigi
any fixes for fsbext? tool with fmod api from deamon1 converts all files to wav without problems and last file is some kb on size
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FSBext - FSB files extractor

Post by aluigi »

Just checking in this moment.
All the offsets and sizes are correct till the file at offset 0x400a9720 ("FR_HQ_sid_DLGMINER-LINE2057").
Give me some minutes.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FSBext - FSB files extractor

Post by aluigi »

Versio 0.3.7

Please note that I have not verified if the offsets are really 34 bits
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: FSBext - FSB files extractor

Post by spider91 »

Seems to be fine now, thanks.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FSBext - FSB files extractor

Post by aluigi »

Version 0.3.8
An user provided a sample that had the channels sub field (type 0xa) set to zero so I had to "restore" the original channels specified in the header (don't know why they specify zero channels), then I had to limit the offset to 32 bits instead of the hypotethical 34 I thought (due to "samples >> 2" + 32, yeah guessing was wrong).
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: FSBext - FSB files extractor

Post by AnonBaiter »

You've probably never thought of this but...

Does this tool support the splitting of multiple .fsb files out of a single .fsb archive?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FSBext - FSB files extractor

Post by aluigi »

I thought about a similar option for helping the people who use fsb_aud_extr.exe on bank files that contain multiple fsb archives with ogg data, but I "forgot" (50% forgot, 50% lack of interest and lazyness due to all the necessary tests) to implement it.
Probably it's better to make a script for that, findloc FSB, read the header and handle it if the format is correct or skip it if it's a false positive.

Or do you mean something else?
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: FSBext - FSB files extractor

Post by AnonBaiter »

You know, same thing as extraction but with a way to keep the headers intact for each file.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FSBext - FSB files extractor

Post by aluigi »

I don't understand if you are talking about an input fsb archive or an input raw file containing multiple fsb archives, because an fsb archive contains multiple audio data with information that have no sense in the prioprietary header of each entry (moreover fsb5 where it has dynamic size).
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: FSBext - FSB files extractor

Post by AnonBaiter »

I'm talking about an input fsb archive.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FSBext - FSB files extractor

Post by aluigi »

ok so I definitely not understand what you mean with extracting multiple fsb files from one fsb archive and what would be the purpose of a similar thing.
GHOST DEAD
Posts: 218
Joined: Wed Jul 19, 2017 5:04 am

Re: FSBext - FSB files extractor

Post by GHOST DEAD »

hello aluigi...
your tool is verry good work with all fsb
i can extract fsb file but how can i repack them? i want rebuild some mp3 files to fsb5... canyou help me? or give me a example of .bat file
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FSBext - FSB files extractor

Post by aluigi »

fsbext has a rebuild option but it was used in the past and I doubt it's still compatible with the current versions of the FSB archive.
It's better if you use the official fmod soundback tools.