Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.29 KB

README.md

File metadata and controls

47 lines (38 loc) · 1.29 KB

hexing

Graphical and minimalistic hex editor. Comes with coloring of magic numbers to aid in recognizing the type of file you are dealing with.

Build

Prerequisites are SDL2 and SDL2_TTF libraries. To build the app just run:

$ make

You can optionally run strip hexing later to cut some bytes from the final binary but won't do much difference.

Usage

Mouse interaction is still very limited in purpose and optional.

Keys:

  • UP/DOWN/PAGEUP/PAGEDOWN: navigation through the file.
  • g: go to file offset. You can press ENTER if you don't want to write the full offset address.
  • 0-9a-f: write byte to position in file.
  • +/-: add or substract to byte.
  • x/X: copy 1 or 4 escaped bytes from file.
  • n: write NOP (0x90) to position in file.
  • ESC/q: quit the application.

Mouse:

  • Grab the window to drag it anywhere in the screen.
  • Left click will select the byte in content.

Customize

The theme structure will let you customize the application by changing the colors, font (TTF format) and font size. The font lives in font.h completely and can be changed by just modifying the ttf and ttf_len variables.

TODO

  • Append new bytes to files.
  • Magic number with variable offsets (scan).