bgrep

Search for binary strings and patterns in files like grep

brewmacoslinux
Try with needOr install directly
Source

About

Like grep but for binary strings

Commands

bgrep

Examples

Search for a hexadecimal pattern in a binary file$ bgrep '48 89 e5' /bin/ls
Search for ASCII string in binary file with context$ bgrep -i 'ELF' firmware.bin
Search for pattern and show byte offset of matches$ bgrep -n 'FF D0' /usr/bin/python