- Support for dumping a file in hexadecimal, binary or octal format.
- Color support to match strings in the dump with the ASCII representation.
- Choice of the columns count and size.
- Ability to search for strings in a file.
- Supports Windows and Linux.
CMake and C toolchain are needed to build the program.
mkdir bin build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .
cd bin
./bhex (or .\bhex.exe)
hex_dump [-lbf] [-s n] [-c n] [-n hex|oct|bin] FILENAME
-l: Don't show the address column.
-b: Disable colors.
-f: Disable ASCII column.
-s n: Set the column size to n.
-c n: Set the column number to n.
-n hex|oct|bin: Specify the dump type.
-e string: try to find string in the file, you can use \\xAB to specify a hex byte.
FILENAME: a readable file.