Created
July 18, 2014 02:26
-
-
Save inaz2/3baf5ae2dcb472b8afe4 to your computer and use it in GitHub Desktop.
バイナリファイルから特定のバイト列を検索し、オフセットを表示する
This file contains 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
$ 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