PyHex
is a simple python hex editor for the terminal
Displays the Offset and the content of the currently opened file. The Decoded text is displayed on the right
Supports scrolling with the arrow keys
Edit your files in hex supereasy
Key | Function |
---|---|
Arrow Keys | Move the cursor |
0-9 & A-F | Edit the current byte (All of your changes to the file will be displayed in red) |
Delete | Remove the edit at the position of the cursor and restore the original byte |
Esc or q | Quit the program |
... and other POSIX environments.
You need to install python 3.8, if you haven't installed it yet:
Debian and debian deriatives:
apt install python3.8
Arch and arch deriatives:
pacman -S python3
Alpine linux:
apk add python3
Fedora:
dnf install python3
MacOS: You need to install python 3.8 from the python website.
Then, download the newest version of PyHex
and unzip the program
Now you can view any file in PyHex
:
./pyhex.py <file_name>
If you want to be able to use the file, also when not in the downloaded directory, you can add it to a directory that is in the path, such as /usr/bin
.
You need to install python 3.8 from the python website
Make sure to add python to the PATH (Little checkbox in the python installer)
After that install windows-curses
:
pip install windows-curses
Download the newest version of PyHex
and unzip the program
Now you can view any file in PyHex
:
pyhex.py <file_name>
If you want to be able to use the file, also when not in the downloaded directory, move the directory to your documents folder (or any other folder).
Then you can add PyHex
to the path with this simple command
set PATH=%PATH%;C:\path\to\the\pyhex\directory
Note: After you added this directory to the path, don't move it or otherwise it won't work