Ghidra extension that uses BinDiff on your Ghidra project to find matching functions and rename them automatically (BinDiff 6, 7, 8 supported). Check out the BinDiff manual to see how it works and how it matches functions / basic blocks. However, with this extension, BinDiff is automated from within Ghidra, so you don't have to diff your binaries yourself.
Please report bugs via the issue feature on github
- Support BinDiff 8
- Release for Ghidra 11.1
- Release for Ghidra 11.0
- Add function to import all functions (not just the ones checked in the table)
- Add function to toggle the checkbox for multiple elements in the table
- Update to support Ghidra 10.3
- Update to support Gradle 7.5 and Ghidra 10.1
- Support BinDiff 7 and Ghidra 10
- Fixed a bug where diffing with a different file from same project didn't work
- Fixed a bug where files with short names (< 3 characters>) could not be diffed
- Fixed a crash when opening a file via the "from project" option
- Coloring matched functions in the listing
- Add comments to matched functions in the listing linking to the other binary
- Fixed a bug where protobuf library was missing in some builds
- New file load menu
- Fix a bug where the file to import to needed to be checked out.
- Increase size of project file selection dialog
- BinDiff the binary opened in Ghidra with another binary from the same Ghidra project, show results and import function names
- Open a BinDiff file, created with BinDiff 6, from two .BinExport files and import the matching function names in Ghidra
- Import function names and function parameters (type and name)
- Compare the binary opened in Ghidra with an external .BinExport (from IDA for example)
- Communication with the BinDiff 6 GUI to show graphs for the different functions
Either download the .zip-File from the release, if it's compatible to your Ghidra version, otherwise see How to build below.
- Open Ghidra
- In the Main Window: Go to File->Install Extensions...
- Click the +-Button in the top right and select the BinDiffHelper zip file
- Close the plugin manager. Restart Ghidra to load the new plugin
- See Usage below
- BinExport plugin binaries or compiled from source for your specific Ghidra version
- BinDiff (https://zynamics.com/software.html)
Without these, you will only be able to import .BinDiff files and not automatically export and diff from your Ghidra project
Make sure the plugin is loaded in the Code Explorer by opening a file in Ghidra and in the Code Explorer go to File->Configure
Click the small plug-icon in the top right:
and make sure the checkbox next to BinDiffHelperPlugin is checked.
The corresponding .BinExport-Files need to be in the same Folder.
Open the file you want to import names into in the code Browser, then go to Window->BinDiffHelper
Use the Open from BinDiff button or menu item and select your .BinDiff file.
Select all the function names you want to import and click the Import function names button in the top right or the menu item.
Go to Window->BinDiffHelper, make sure there are no warnings concerning BinExport or BinDiff, then click the Open from project button.
Select the other file from the tree and click OK.
Requirements:
- Ghidra installation (https://ghidra-sre.org) or compiled from source
- some jdk (if you built Ghidra yourself, it needs to be the same jdk)
- gradle (tested with 7.5)
You need to set the GHIDRA_INSTALL_DIR
environment variable to the Ghidra installation dir.
If you have different JDKs installed, make sure the environment variable JAVA_HOME
points to the one your Ghidra installation uses.
The extension will be built for that Ghidra version specifically.
And then go the BinDiffHelper folder in your shell and do
gradle
There should have been a .zip-File created in the dist directory.
Use that .zip File to install according to the instructions above.
Sometimes it's useful to be able to debug the extension together with Ghidra, here are some notes on that:
- Clone and build Ghidra and let gradle create eclipse projects according to the DevGuide
- Import the projects into eclipse (make sure it has relevant plugins for extension development)
- Build and install GhidraDev
- Unpack the Ghidra build and link GhidraDev to it. Maybe have to set
GHIDRA_INSTALL_DIR
environment variable - Run Ghidra from eclipse and install BinExport extension
- Create BinDiffHelper eclipse project with
gradle build eclipse
- Import it into eclipse and use GhidraDev to link it to the Ghidra build
- Debug As->Ghidra
When debugging Ghidra with the extension out of eclipse, the extension is loaded into Ghidra automatically (don't go through the usual extension install). However, the plugin has to be enabled in the Code Explorer.
- https://github.com/google/bindiff/releases
- https://www.zynamics.com/bindiff/manual/
- https://github.com/google/binexport/
Icons from: Fatcow free icons