Skip to content

insecuritea/Python_Pin

 
 

Repository files navigation

Python_Pin

Python bindings for pin.

Build Instructions

Pre-requisite is python-dev sudo apt-get install python-dev on Ubuntu.

Copy the entire directory into ~/pin/source/tools

Type make and enjoy!

Using the Extension

Most of pin's functionality is exposed via the pin module, internal to the pintool. Its implementation is very similar to the way gdb handles python extensions.

To run a specific python script, for example the strace script: ../../../pin -t obj-intel64/Python_Pin.so -m examples/strace.py -- /bin/ls

Current Issues

  1. Some Python modules are compiled as shared objects without symbols. These modules can't be loaded from within the python pin tool. (solution is to either not use those modules, or have a custom build of python alongside the pintool)

  2. Need to work on compiling for Mac and Windows. Code should be portable but makefile may need to be updated.

About

Python Bindings for PIN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 61.3%
  • C 27.3%
  • Python 11.0%
  • Makefile 0.4%