ncurses-hexedit
ncurses-hexedit is a curses-based hex editor for viewing and editing files or disks in hexadecimal, ASCII, or EBCDIC formats. It supports insert, delete, search, undo, and disk editing capabilities.
Description
Hexedit allows editing and viewing files in hexadecimal along with their ASCII or EBCDIC text equivalents. Standard editing features include insert, delete, search for text or bytes, highlighted changes, undo, two viewing formats, and full-screen text snapshots. It also permits editing of fixed disks and includes a binary/octal/decimal/hex converter.
This tool is useful for low-level file manipulation, reverse engineering binaries, forensic analysis of disk images, or examining raw data structures. The full-screen curses interface provides an intuitive way to navigate and modify hex data without leaving the terminal.
As part of Kali Linux tools, ncurses-hexedit (also referred to as hexeditor) is packaged for easy installation and depends on libraries like libc6, libncurses6, libtinfo6, and hexeditor.
How It Works
ncurses-hexedit operates as a full-screen curses-based interface, rendering hexadecimal data alongside ASCII or EBCDIC representations. It buffers files in memory when specified for faster insert/delete operations, supports read-only disk editing by default, and requires force flag for writes. Searches scan for text or byte sequences, with changes highlighted and undo functionality tracking modifications. Viewing modes switch between formats, and a converter handles numeric base transformations.
Installation
sudo apt install ncurses-hexeditFlags
Examples
hexeditor -hhexeditor file.binhexeditor -b largefile.imghexeditor -d /dev/sdahexeditor -f -d /dev/sdahexeditor -a file.dathexeditor -8 -b file.hex