Handy scripts used for cleaning up structures and reversing stuff with Ghidra SRE.
To use third-party Ghidra scripts you need to download this repository (by either git clone
or just grabbing it as a .zip
file) and then add the resulting folder to the script directory list where Ghidra looks them up.
-
While in your CodeBrowser, click on the Script Manager icon in the toolbar, or open it via Window > Script Manager:
-
Click on the Manage Script Directories button in the Script Manager toolbar:
-
Click on the Display file chooser to add bundles to list button, pick your folder and Accept:
-
Click on the Refresh state button, close the Bundle Manager.
-
Now you can search for the imported scripts by name; and use them in various ways:
- Toggle them on and assign them a keybind, in case you don't want the one it comes with.
- Make sure to select the Scripts tree root instead of searching in a category where it may not be.
- Scripts can also be tweaked directly with the built-in editor, if you want to make small changes.
- Alternatively, run them directly with the green play button, as a one-off thing.
Hope that helps, and have fun reversing! ¯\_(ツ)_/¯