The Ghidra distribution includes a plugin for use with IDA Pro (a commercially available disassembler). The XML plugin is used with IDA Pro to export IDA Pro databases as XML files so that they can be imported into Ghidra. This allows IDA Pro users to migrate their data to Ghidra.To add the XML exporter plugin to your IDA installation locate the folders in the <ghidra installation director>/Extensions/IDAPro folder. The plugin is available for IDA Pro versions 6 and 7.



The content are:

xml_exporter.py is a plugin to export an IDA database as an XML file. It must be placed in the IDA plugins folder.

xml_loader.py is an IDA loader to build a new database using an XML file. It loads the bytes file and builds the IDA database using the contents of the XML file. It must be placed in the IDA loaders folder.



xml_importer.py is a plugin to add data from an XML file to an existing database. It will NOT load any binary data from the bytes file. It will add symbols, comments, code, data, functions, etc. for addresses that currently exist in the database. It must be placed in the IDA plugins folder.

The idaxml.py module is a require import for the xml_exporter, xml_importer, and xml_loader. It must be placed in the IDA python folder.



After placing the files open up IDA and you will see two new icons in the plugins menu

Export IDA pro database using the XML Exporter and just drag and drop it into your Ghidra project as if it was a normal executable



You can import Ghidra database into IDA pro using XML importer too.