Ghidra batch plugin
This Ghidra plugin adds an analysis called "GREASE Analysis" which runs GREASE on all functions in a binary. The order the functions are analyzed in is given by a reverse topological sort of the callgraph. The goal is for the functionality in this plugin to eventually subsume the Ghidra script, but for now this analysis pass is better for use cases involving complete analysis of a large program where parallelism is required.
Prerequisites
You will need to build GREASE from source. See Installation for instructions.
Plugin installation
After building GREASE, you can use gradle to build the plugin zip file:
- Enter the ghidra plugin directory:
cd ghidra-plugin - Add the Ghidra install directory to
gradle.propertiesand uncomment the line - Run
./gradlew buildExtension - Optionally, the gradle file can install the extension directly with
./gradlew installExtension
After building the extension, a zip file will be in ./dist/ghidra_<VERSION>_<DATE>_ghidra-batch-plugin.zip which can be installed using the Ghidra Project menu:
- Open
File -> Install Extensions - Press the
+button and find the zip file in the file selector - Click the checkbox next to ghidra-plugin to enable the plugin
- Restart Ghidra
Plugin usage
Please see the GREASE topic in the Ghidra help menu for usage information.