Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

marklove5102/python-ext

Open more actions menu
 
 

Repository files navigation

python_ext

This example shows how to extend Python/IDAPython from your plugin using pybind11. It also illustrates how to interface with Python from C++.

Please watch the explanation video here.

Some important caveats:

  • IDA will always initialize IDAPython first on start but it won't fully be initialized yet

  • We wait for the HT_UI/ui_initing_database event and then we extend Python

  • When we register our extensions, we pin this plugin DLL so that it won't be unloaded before Python

    • This prevents a crash if someone was holding a reference to our extension methods, classes or objects
  • This plugin has only been tested on Windows, with Python 3.11

    • Please feel free to test and make a PR for other platforms

About

IDASDK + Python integration template project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 71.4%
  • CMake 14.9%
  • C 8.8%
  • Python 4.9%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.