Developing a Ghidra plugin
In this section, we'll analyze how the ShowInfoPlugin
Ghidra plugin example is implemented in order to understand how to develop a more complex plugin.
The source code for ShowInfoPlugin
The source code for ShowInfoPlugin
is available here: https://github.com/NationalSecurityAgency/ghidra/blob/49c2010b63b56c8f20845f3970fedd95d003b1e9/Ghidra/Extensions/sample/src/main/java/ghidra/examples/ShowInfoPlugin.java. The component provider used by this plugin is available in a separate file: https://github.com/NationalSecurityAgency/ghidra/blob/49c2010b63b56c8f20845f3970fedd95d003b1e9/Ghidra/Extensions/sample/src/main/java/ghidra/examples/ShowInfoComponentProvider.java.
To implement a plugin, you need to master three key steps. Let's take a look at each!
Documenting the plugin
To document a plugin, you must describe it using the PluginInfo
structure:
00Â Â @PluginInfo( 01Â Â Â Â status = PluginStatus.RELEASED, 02...