02-25-2016, 10:01 PM
(This post was last modified: 02-25-2016, 10:10 PM by Struggleton!.)
Code:
comtype gzip
string GZIPID x "\x1F\x8B\x08\x08"
for
findloc OFFSET string GZIPID
goto OFFSET
getdstring DUMMY 0xA
get NAME string
findloc OFFEND longlong 0
xmath SIZE "OFFEND - OFFSET"
clog NAME OFFSET SIZE SIZE
goto OFFEND
next
This QuickBMS script should get all the files from the DATA.BIN. It looks for the GZIP identifier, and the null bytes after the stream, and calculates the size. It also gets the names from the stream, and uses that as the output name. Tell me if it has any issues.