notes/Extracting resource files from Binary files-FCvj5mgu.sh
#Extracting resource files from Binary files - executables

sudo aptitude install icoutils
mkdir output

#list all resources in file
wrestool -l file.exe

#Extract icons
wrestool -x -t 14 file.exe -o output

#Extract Bitmaps
wrestool -x -t 2 file.exe -o output


#extract Cursors

wrestool -x -t 12 file.exe -o output

#extract strings

#this is different then using 'strings'
#the output can be displayed using 'cat'

#but 'strings' and 'vim' are a no go

wrestool -x --raw -t 6 file.exe -o output

syntax highlighted by Code2HTML, v. 0.9.1