]> snippets.scripts.mit.edu Git - .git/blob - programming/disasm
disasm: Disassemble hex bytes given on the command line as x86
[.git] / programming / disasm
1 #!/bin/sh
2
3 file=$(mktemp)
4 echo "$*" | xxd -r -p > "$file"
5 objdump -D -b binary -m i386 "$file" | tail -n +7
6 rm "$file"