An IDAPython wrapper for IDA Pro’s kernel dll.


Many useful and low level API aren’t exposed by IDAPython’s SWIG wrapper.

Although those API are documented and exported in SDK, IDAPython still cannot easily use them due to lack of structure.


import sys

import ida_kern
k = ida_kern.IDAKern()

Loading takes 3~5 seconds currently, be patient ?

How does it work?

With these tools we can now generate raw ctypes API binding for IDA SDK:

  • IDAClang: can export all types & symbols in headers to til
  • Tilib (in SDK): export types in til to C header
  • My Tool: sanitize tilib’s output & generate compilable source code
  • ctypeslib: generate bindings from C/simple C++ source file (need to use my fork to fix some bugs)


View Github