Skip to content

Instantly share code, notes, and snippets.

@RomanKharin
Created April 14, 2014 20:13
Show Gist options
  • Save RomanKharin/10679348 to your computer and use it in GitHub Desktop.
Save RomanKharin/10679348 to your computer and use it in GitHub Desktop.
Quick BMS Script - Petka-1 quest .str unpacker
# str files (petka-1 quest)
# script for QuickBMS http://quickbms.aluigi.org
idstring "\x53\x74\x4f\x52"
get OFFSET long
goto OFFSET
get FILES long
# index
for i = 0 < FILES
# skip unused bytes
get UNUSED long
get STRPOS[i] long
get STRSZ[i] long
next i
# filenames
for i = 0 < FILES
get STRFN[i] string
next i
# extract
for i = 0 < FILES
log STRFN[i] STRPOS[i] STRSZ[i]
next i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment