Getting Started
idalib
Get up and running with idalib - the IDA headless automation interface.
Prerequisites
IDA Pro 9.0 or newer installed and running
Installation for C++
To use the ida library from the C++, please refer to the idalib.hpp header file shipped with C++ SDK where you will find the relevant information.
Installation for Python
To use the ida library Python module, you need to install and configure idapro package by following these steps:
Install ida library Python module
Navigate to the
idalib/pythonfolder within the IDA Pro installation directoryRun the command:
pip install .
When setting up idalib to work with IDA Feeds and your virtual environment (venv), make sure to run the above command from within your activated venv.
Setting up the ida library Python module
Run the Activation Script
You need to inform the
idaproPython module of your IDA Pro installation. To do this, run thepy-activate-idalib.pyscript located in your IDA Pro installation folder, or inside theidalib/pythonfolder (depends on the system version you use):If the
-doption is omitted, the script will automatically select the IDA installation folder from which it was executed.
Using the ida library Python module
Import idapro in your script
Make sure to import the
idapropackage as the first import in your Python scriptAfter importing, you can utilize the existing IDAPython APIs
Example script
For a reference on how to use the ida module, check the idalib/examples folder in your IDA Pro installation directory or look at the sample script provided below.
Last updated
Was this helpful?

