Skip to content

Instantly share code, notes, and snippets.

@inaz2
Created July 18, 2014 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inaz2/3baf5ae2dcb472b8afe4 to your computer and use it in GitHub Desktop.
Save inaz2/3baf5ae2dcb472b8afe4 to your computer and use it in GitHub Desktop.
バイナリファイルから特定のバイト列を検索し、オフセットを表示する
$ grep -boa $'\xc9\xc3' a.out | awk -F: '{printf "0x%x\n", $1}' # leave; ret
0x401
0x466
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment