Skip to content

Instantly share code, notes, and snippets.

@bartolsthoorn
Created February 28, 2014 22:09
Show Gist options
  • Save bartolsthoorn/9281048 to your computer and use it in GitHub Desktop.
Save bartolsthoorn/9281048 to your computer and use it in GitHub Desktop.
Reverse engineering bash script helper for OSX. First `chmod u+x analyse.sh` to make it executable, and then use `./analyse.sh file1`
OUT=reports
mkdir -p $OUT/$1
nm $1 > $OUT/$1/nm.asm
otool -Vt $1 > $OUT/$1/text.asm
otool -V -s __TEXT __cstring $1 > $OUT/$1/cstring.asm
xxd -a $1 > $OUT/$1/xxd.hex
echo "Analysing of $1 finished"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment