Categories: Kali Linux

Pylane : An Python VM Injector With Debug Tools, Based On GDB

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

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

pylane inject <PID><YOUR_PYTHON_FILE>+

Also Read – Lazyrecon : Automate Your Reconnaissance Process In An Organized Fashion

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

Installation

pip install pylane

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

R K

Recent Posts

HikPwn : Simple Scanner For Hikvision Devices With Basic Vulnerability Scanning

HikPwn: Comprehensive Guide to Scanning Hikvision Devices for Vulnerabilities If you’re searching for an efficient…

11 hours ago

Comments in Bash Scripts

What Are Bash Comments? Comments in Bash scripts, are notes in your code that the…

6 days ago

Shebang (#!) in Bash Script

When you write a Bash script in Linux, you want it to run correctly every…

6 days ago

Bash String Concatenation – Bash Scripting

Introduction If you’re new to Bash scripting, one of the first skills you’ll need is…

7 days ago

Learn Bash Scripting: How to Create and Run Shell Scripts for Beginners

What is Bash Scripting? Bash scripting allows you to save multiple Linux commands in a file and…

1 week ago

Bash if…else Statement – Bash Scripting

When it comes to automating tasks on Linux, Bash scripting is an essential skill for both beginners…

1 week ago