Skip to content

bhex is a simple console hex dumping utility with color support.

License

Notifications You must be signed in to change notification settings

terriblemoment0836x/bhex

Repository files navigation

bhex

Linux build Windows build

bhex (beyound hex) is a simple console hex (also other bases) dumping utility with color support.


Screenshot:

Example hex dump of an jpg image

Features:

  • 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.

Building

CMake and C toolchain are needed to build the program.

mkdir bin build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . 

Running

cd bin
./bhex (or .\bhex.exe)

Usage:

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.

About

bhex is a simple console hex dumping utility with color support.

Topics

Resources

License

Stars

Watchers

Forks