Skip to content
An python vm injector with debug tools, based on gdb.
Branch: master
Clone or download
valensc Merge pull request #4 from cclauss/patch-1
Built-in 'file()' was removed in Python in favor of 'open()'
Latest commit 2e7fa1e Feb 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
misc
pylane
LICENSE
README.md
README.zh-cn.md
setup.cfg
setup.py

README.md

pylane

PyPI version

简体中文

Pylane is a python vm injector with debug tools, based on gdb and ptrace. Pylane uses gdb to trace python process, inject and run some code in its python vm.

Usage

pylane_show

use inject command to inject a python script in an process:

pylane inject <PID> <YOUR_PYTHON_FILE>

use shell command to inject an interactive shell:

pylane shell <PID>

Pylane shell features:

  • use IPython as its interactive interface, support magic functions like ? and %
  • support remote automatic completion
  • provide debug toolkit functions, such as:
    • lookup class or instance by name
    • get source code of an object
    • print all threads' stack and locals

Install

pip install pylane

pylane should be installed in virtualenv the target process uses or in os python lib.

Compatibility

Support Linux and BSD

You can’t perform that action at this time.