Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.
/ PyHex Public archive

A command-line hex editor written in Python

License

Notifications You must be signed in to change notification settings

Builditluc/PyHex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyHex

PyHex is a simple python hex editor for the terminal

MIT Licence Open Source Love

Preview

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

Controls

KeyFunction
Arrow KeysMove the cursor
0-9 & A-FEdit the current byte (All of your changes to the file will be displayed in red)
DeleteRemove the edit at the position of the cursor and restore the original byte
Esc or qQuit the program

Installation

On GNU/LINUX

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

On Windows 10

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