English | 中文
An IDAPython script that exports analysis results from an IDA database into a reusable Python script. Migrate function names, comments, structures, enums, and other analysis data from one IDB file to another.
- Cross-version IDB migration: Migrate analysis data between different versions of IDA Pro's
.i64files. When IDA Pro updates its database format, you can open the old.i64file in the old version, export the analysis, and apply it to a fresh database in the new version. - Quick patched bytes extraction: Export only
export_patched_bytesto quickly extract all patched bytes from an IDB for local tool development, binary diffing, or patch documentation. - Merge patches from multiple sessions: When multiple analysts work on the same binary in separate
.i64files (each patching different regions), you can exportexport_patched_bytesfrom each and combine the generated scripts to merge all patches into a single binary. - Analysis backup and sharing: Save your reverse engineering progress as a portable script that can be shared with teammates or reapplied after database corruption.
- Batch analysis application: Apply the same analysis to multiple copies of the same binary without repeating manual work.
Supports exporting the following analysis content (configurable via config.json):
| Config Key | Description | Default |
|---|---|---|
export_rename_functions |
Export function renames | false |
export_comments |
Export regular and repeatable comments | false |
export_data_strings |
Export string names | false |
export_segments |
Export segment properties | false |
export_structures |
Export structure definitions | false |
export_enums |
Export enum definitions | false |
export_types |
Export local types | false |
export_flags |
Export data type flags | false |
export_patched_bytes |
Export patched bytes | true |
Create a config.json file in the same directory as the script or in the output directory to select which exports to enable:
{
"export_rename_functions": false,
"export_comments": false,
"export_data_strings": false,
"export_segments": false,
"export_structures": false,
"export_enums": false,
"export_types": false,
"export_flags": false,
"export_patched_bytes": true
}Set any value to false to disable the corresponding export feature.
- Open IDA Pro and load the
.i64file you want to export from - Click File → Script file... (shortcut
Shift + F2) - In the file selection dialog, find and select
IDBExporter.py - The script will run automatically and generate
<original_name>_exported.pyin the same directory as the input file
- Open the target file (same binary) in another IDA Pro instance
- Click File → Script file...
- Select the generated
<original_name>_exported.py - The analysis data will be automatically applied to the current database
- IDA Pro 9.2
- IDAPython (built into IDA)
- Python 3.9.6
MIT