Hack Tools

pylane: python vm injector with debug tools, based on gdb

pylane

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

Install

pip install pylane

Usage

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

pylane inject <PID> <YOUR_PYTHON_FILE>

use a 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 the source code of an object
    • print all threads’ stack and locals

Copyright (C) 2018 valensc

Source: https://github.com/NtesEyes/



The post pylane: python vm injector with debug tools, based on gdb appeared first on Penetration Testing.

Click to comment

You must be logged in to post a comment Login

Leave a Reply

To Top

Pin It on Pinterest

Share This