06月22, 2018

Automated creat .BinExport file for BinDiff use

Automated BinDiff

Sometimes it can be useful to automate IDA by running it from the command line (reference). You can do the same with BinDiff but it is not as easy. You must use a custom IDC script that will call the BinExport plugin :

    #include <idc.idc>
    static main() {
      Batch(0);
      Wait();
      RunPlugin( "zynamics_binexport_9", 2 );
      Exit(0);
    }

You can then run it from the CLI :

idaq.exe -A "-OExporterModule:<OUTPATH>" "-SBinExport.idc" "XXX.idb"

Be careful : ALL paths MUST be full paths.

You can then use BinDiff command line tools to compare binaries. It is particularly useful to compare directory trees, for example after a firmware update :)

本文链接:https://harry.ren/post/automated-bindiff.html

-- EOF --

Comments