Simple example project for idalib and the IDA Domain API.
- uv
- IDA Pro 9.0 or newer
-
Create the virtual environment and install this project's dependencies:
uv sync
-
For IDA 9.3 or lower, activate
idalibonce globally:# windows uv run "C:\Program Files\IDA Professional 9.3\idalib\python\py-activate-idalib.py" # macos uv run "/Applications/IDA Professional 9.3.app/Contents/MacOS/idalib/python/py-activate-idalib.py"
NOTE: If you use
hclito manage your IDA installation this is not necessary.
This repository contains two small examples:
idalib_example.py— usesidapro+ standard IDAPython modulesdomain_example.py— uses the IDA Domain API
uv run idalib_example.py crackme03.elf
uv run domain_example.py crackme03.elfBoth scripts:
- open the input file with idalib
- run auto-analysis
- print the discovered functions
Coding agents are pretty good at using the IDA Domain API. You can look at ida-plugin-development/skills as a starting point.
idalib_example.pydomain_example.pycrackme03.elf— sample input file