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:
Pluginsfolder alongside rehex.exe
Contents/PlugInsdirectory in the application bundle.
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.