Writing Plugins
REHex's functionality can be extended by writing plugins in Lua - for example the included exe
plugin which can annotate the sections of a PE EXE/DLL file.
Plugins are loaded from the following places on different platforms:
- Windows
- The
Plugins
folder alongside rehex.exe
- The
- Linux
${XDG_DATA_HOME}/rehex/plugins/
(usually~/.local/share/rehex/plugins/
)${LIBDIR}/rehex/
(usually/usr/lib/rehex/
- macOS
- The
Contents/PlugIns
directory in the application bundle.
- The
Additionally, the environment variable REHEX_PLUGIN_DIR
can be set to a plugin directory.
Each plugin should either be a single .lua
file in the top-level plugins directory, or a subdirectory containing a plugin.lua
file and any resources/assets needed by the plugin.
For more information see the example plugins and the plugin API reference.