Code: Select all
# filecutter script for QuickBMS
# script for QuickBMS http://aluigi.org/papers.htm#quickbms
get SIZE asize
math CHUNKSZ = 0x100000
if SIZE <= CHUNKSZ
cleanexit
endif
math OFFSET = 0
get NAME filename
string NAME += "_"
string NAME += OFFSET
string NAME += "_"
string NAME += SIZE
log NAME OFFSET CHUNKSZ
math OFFSET = SIZE
math OFFSET -= CHUNKSZ
get NAME filename
string NAME += "_"
string NAME += OFFSET
string NAME += "_"
string NAME += SIZE
log NAME OFFSET CHUNKSZ
let me know any suggestion or improvement