Last active
May 4, 2021 03:02
-
-
Save michaeljclark/edefa9955798640a0433a038e0c99206 to your computer and use it in GitHub Desktop.
script that uses xxd and objdump to allow interactive decode of x86 instructions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
T=$(mktemp fooXXXXXX) | |
echo $* | xxd -r -p - > ${T} | |
objdump -D -bbinary -mi386:x86-64 -Mintel ${T} | \ | |
sed -n '/<.data>:/{n;s/0://g p}' | |
rm -f ${T} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment