# Rehex | Reverse Engineers’ Hex Editor

**URL:** <https://onehack.st/t/rehex-reverse-engineers-hex-editor/165596>\
**Category:** Tools & Scripts\
**Tags:** tools, hacking\
**Created:** [December 9, 2020, 11:49am UTC](https://onehack.st/t/rehex-reverse-engineers-hex-editor/165596 "2020-12-09T11:49:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NoBody](https://onehack.st/user_avatar/onehack.st/nobody/32/163880_2.png) [@NoBody](https://onehack.st/u/NoBody)\
**Post date:** [December 9, 2020, 11:49am UTC](https://onehack.st/t/rehex-reverse-engineers-hex-editor/165596/1 "2020-12-09T11:49:08Z")

</div>

[![](https://raw.githubusercontent.com/solemnwarning/rehex/master/doc/comments-types.gif) ](https://raw.githubusercontent.com/solemnwarning/rehex/master/doc/comments-types.gif)

A cross-platform (Windows, Linux, Mac) hex editor for reverse engineering, and everything else.

## Features

- Large (1TB+) file support
- Decoding of integer/floating point value types
- Disassembly of machine code
- Highlighting and annotation of ranges of bytes
- Side by side comparision of selections

[![inline comments + data types demo](https://github.com/solemnwarning/rehex/raw/master/doc/comments-types.gif)](https://github.com/solemnwarning/rehex/blob/master/doc/comments-types.gif)

[![file diff demo](https://github.com/solemnwarning/rehex/raw/master/doc/file-diff.gif)](https://github.com/solemnwarning/rehex/blob/master/doc/file-diff.gif)

## Installation

The [Releases](https://github.com/solemnwarning/rehex/releases) page has standalone packages for Windows and Mac, as well as installable packages for popular Linux distributions, or you can install them from a distribution package repository as described below.

The same packages are also produced for Git commits (look for the tick), if you want to try the development/unreleased versions.

### Debian

First, you will need to add my APT signing key to your system:

```auto
wget -qO - https://repos.solemnwarning.net/debian-key.gpg | sudo apt-key add -

```

Add the following lines to your `/etc/apt/sources.list` file:

```auto
deb http://repos.solemnwarning.net/debian/ CODENAME main
deb-src http://repos.solemnwarning.net/debian/ CODENAME main

```

Replace `CODENAME` with the version you’re running (e.g. `buster` or `stretch`).

Finally, you can install the package:

```auto
$ sudo apt-get update
$ sudo apt-get install rehex

```

### Ubuntu

First, you will need to add my APT signing key to your system:

```auto
wget -qO - https://repos.solemnwarning.net/ubuntu-key.gpg | sudo apt-key add -

```

Add the following lines to your `/etc/apt/sources.list` file:

```auto
deb http://repos.solemnwarning.net/ubuntu/ CODENAME main
deb-src http://repos.solemnwarning.net/ubuntu/ CODENAME main

```

Replace `CODENAME` with the version you’re running (e.g. `groovy` for 20.10 or `focal` for 20.04).

Finally, you can install the package:

```auto
$ sudo apt-get update
$ sudo apt-get install rehex

```

**NOTE:** Ubuntu users must have the “Universe” package repository enabled to install some of the dependencies.

### Fedora

```auto
$ sudo dnf copr enable solemnwarning/rehex
$ sudo dnf install rehex

```

### CentOS

```auto
$ sudo dnf install epel-release
$ sudo dnf copr enable solemnwarning/rehex
$ sudo dnf install rehex

```

### openSUSE

```auto
$ sudo zypper ar obs://editors editors
$ sudo zypper ref
$ sudo zypper in rehex

```

## Building

If you want to compile on Linux, just check out the source and run `make`. You will need Jansson, wxWidgets and capstone installed, along with their development packages (Install `build-essential`, `git`, `libwxgtk3.0-dev`, `libjansson-dev` and `libcapstone-dev` on Ubuntu).

The resulting build can be installed using `make install`, which accepts all the standard environment variables.

For Windows or Mac build instructions, see the relevant README: [README.Windows.md](https://github.com/solemnwarning/rehex/blob/master/README.Windows.md) [README.OSX.md](https://github.com/solemnwarning/rehex/blob/master/README.OSX.md)

## Feedback

If you find any bugs or have suggestions for improvements or new features, please open an issue on Github, or join the `#rehex` IRC channel on `irc.freenode.net`.

## GitHub:

[https://github.com/solemnwarning/rehex](https://github.com/solemnwarning/rehex)
