Code Monkey home page Code Monkey logo

ida_kern's Introduction

IDAKern

An IDAPython wrapper for IDA Pro's kernel dll.

Why?

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.

Usage

  • Install (You can also do import sys; sys.path.append(r'C:\ida_kern\src') if you don't want to install)

    pip install git+https://github.com/NyaMisty/ida_kern
    
  • Profit!

    import ida_kern
    k = ida_kern.IDAKern()
    print(k.idadir(None))
    

Loading takes 3-5 seconds currently, be patient ;)

Now only takes 0.5 seconds to load!

Examples can be found in examples/ folder:

  • hook_to_notification_point example usage (HT_UI hook as example)
  • qstring manipulation
  • tinfo_t manipulation
  • (more!)

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)

ida_kern's People

Contributors

nyamisty avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.