# Hard Reset Redux (BIN format) # Written by Ekey (h4x0r) # # script for QuickBMS http://quickbms.aluigi.org
get FILES long
for i = 0 < FILES get NSIZE long getdstring NAME NSIZE get SIZE long get ZSIZE long get OFFSET longlong get DUMMY longlong putarray 0 i NAME putarray 1 i SIZE putarray 2 i ZSIZE putarray 3 i OFFSET next i
savepos TEMP math TEMP += 4 for i = 0 < FILES getarray NAME 0 i getarray SIZE 1 i getarray ZSIZE 2 i getarray OFFSET 3 i math OFFSET += TEMP
if ZSIZE == SIZE log NAME OFFSET SIZE else clog NAME OFFSET ZSIZE SIZE endif next i
# Hard Reset Redux (BIN format) # Written by Ekey (h4x0r) # # script for QuickBMS http://quickbms.aluigi.org
get FILES long
for i = 0 < FILES get NSIZE long getdstring NAME NSIZE get SIZE long get ZSIZE long get OFFSET longlong get DUMMY longlong putarray 0 i NAME putarray 1 i SIZE putarray 2 i ZSIZE putarray 3 i OFFSET next i
savepos TEMP math TEMP += 4 for i = 0 < FILES getarray NAME 0 i getarray SIZE 1 i getarray ZSIZE 2 i getarray OFFSET 3 i math OFFSET += TEMP clog NAME OFFSET ZSIZE SIZE next i
Works better without stream length check. We need to decompress zstream even in the rare case when zsize is the same as plain text length.