Tasos Keliris

blog publications

if [ `whoami` == "root" ]; then echo "GameOver"; fi

Binary grep search

I have been on the lookout for an efficient and accurate way to perform grep searches for a sequence of bytes on a binary file. Something along the lines of this stackoverflow post: Using grep to search for hex strings in a file. Note that this doesn’t work when you have \x00 bytes in your search sequence.

Today I ran into a great program by tmbinc called bgreb. Excellent tool, thanks for developing and sharing it!