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:

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.