Small hex dumper written in C.
- Reads a file in binary mode
- Prints file bytes in hex format to terminal
- Can save hex dump output to a file
- Supports basic CLI flags
Compile with GCC:
gcc main.c -o CexDumper -Wall -Werror./CexDumper [options] <input_file>-hShow help-vShow program version-o <file>Save dump output to file
Print dump to terminal:
./CexDumper example.txtSave dump to file:
./CexDumper -o output.hex example.txtShow version:
./CexDumper -vShow help:
./CexDumper -h- Each line starts with an offset
- Hex byte groups are printed after the offset
- Final file length/offset summary is printed at the end
- Read file and print dump to console
- Add CLI options (
-h,-v,-o) - Save hex dump to output file
- Add canonical hex + ASCII view
- Add output formats (octal, decimal)
- Add skip/length arguments