I've never worked with mexcom script before but i wanted to give it a try
File Structure of .VFS Files:
long 0x0 = fileheader = "LP2C"
long 0x4 = total folders in Archive(probably )
long 0x8 = files in current folder
byte 0xC = length of filename
string 0xC + lof = filename
long 0xC + lof = filesize
long 0xC + lof + 4 = offset of file in archive
long 0xC + lof + 4 + 12 = next file
i don't know if i explained this correctly but check my example files and you'll know wtf i mean
Examples archives:
http://s000.tinyupload.com/index.php?fi ... k=transfer
the script will work perfectly for Effects.vfs however Properties.vfs contains a folderstructure and i have no idea how to handle it...
This is my BMS script so far:
Code: Select all
# The Void
# script for QuickBMS http://aluigi.org/papers.htm#quickbms
idstring "LP2C"
get TOTAL_SIZE asize
get FOLDERS long 0
set PATHNAME string ""
if FOLDERS < 1;
get FILES long 0
else;
#set FILES 0
EndIf;
for i = 1 to FILES;
get FILENLENGTH byte 0
getdstring FILENAME FILENLENGTH
get FILESIZE long 0
savepos OFFSET
math OFFSET += 4
goto OFFSET
get FILEOFFSET long 0
string PATHNAME += Extracted
string PATHNAME += \
string PATHNAME += FILENAME
log PATHNAME FILEOFFSET FILESIZE
set PATHNAME string ""
savepos OFFSET
math OFFSET += 12
goto OFFSET
next i;