the name offsets make sense if you start right where the folder names end.
the size of the folder name index and file name index is stored in the header.
i can't really work with file cutted samples so this is all i can give
Code: Select all
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm
idstring "\x57\x41\x52\x54\x33\x2e\x30\x30"
get FILES long
get STR_TABLE_OFF long
get NAME_TABLE_SZ long
get FOLDER_TABLE_SZ long
for i = 0 < FILES
get OFFSET long
get UNK long //??
get SIZE long
get CRCx long //??
get NAME_OFFSET long
get FOLDER_OFFSET long
savepos TMP
xmath STR_OFF "STR_TABLE_OFF + FOLDER_TABLE_SZ + NAME_OFFSET"
goto STR_OFF
get NAME string
xmath FOLDER_OFF "STR_TABLE_OFF + FOLDER_OFFSET"
goto FOLDER_OFF
get FOLDER string
string NAME p "%s%s" FOLDER NAME
log NAME OFFSET SIZE
goto TMP
next i
edit
well i guess my UNK is a ZSIZE according to aluigis script, i can not confirm
compression with filecutted samples so my script doesn't handle that yet.
