Git Product home page Git Product logo

bindiffhelper's Introduction

BinDiffHelper

Ghidra extension that uses BinDiff on your Ghidra project to find matching functions and rename them automatically (BinDiff 6 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.

What it does / Changelog

v0.1

  • 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

v0.2

  • Fix a bug where the file to import to needed to be checked out.
  • Increase size of project file selection dialog

Next releases

  • 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

How to Install

Either download the .zip-File from the release, if it's compatible to your Ghidra version, otherwise see How to build below.

Open Ghidra, go to File->Install Extensions... in the Main Window. Click the +-Button in the top right and select the BinDiffHelper zip file.

Close the plugin manager. Restart Ghidra to load the new plugin.

Recommended other tools

Without these, you will only be able to import .BinDiff files and not automatically export and diff from your Ghidra project

Usage

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:

Configure tool

and make sure the checkbox next to BinDiffHelperPlugin is checked.

Configure plugins

Import external .BinDiff

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 Open BinDiffHelper

Use the Open from BinDiff button or menu item and select your .BinDiff file.

Example import

Select all the function names you want to import and click the Import function names button in the top right or the menu item.

Compare between files in Ghidra project

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.

Example project import

How to build

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 5.0 and 6.2.2)

Build it

You need to set the GHIDRA_INSTALLATION_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.

References

Icons from: Fatcow free icons

bindiffhelper's People

Contributors

ubfx avatar thebitshifter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.