Skip to main content

A tool/library allowing dynamic library injection into running processes

Project description

Pyinjector

PyPI version PyPI Supported Python Versions GitHub license Tests (GitHub Actions)

A tool/library allowing dynamic library injection into running processes. Has no external python dependencies. Implemented as a python wrapper for kubo/injector.

Installation

pip install pyinjector

Both source distributions and manylinux2010 wheels are upoloaded to pypi for every release.

Usage

CLI

inject <pid> <path to .so file>

API

from pyinjector import inject

inject(pid, path_to_so_file)

How it works

We build kubo/injector as a C-extension and use its interface using ctypes. kubo/injector is an awesome repo allowing to inject shared libraries into running processes both on windows (CreateRemoteThread+LoadLibrary) and on linux (ptrace).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyinjector, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size pyinjector-0.1.4-cp36-cp36m-manylinux2010_x86_64.whl (34.3 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pyinjector-0.1.4-cp36-cp36m-manylinux2014_x86_64.whl (34.3 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pyinjector-0.1.4-cp37-cp37m-manylinux2010_x86_64.whl (34.3 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyinjector-0.1.4-cp37-cp37m-manylinux2014_x86_64.whl (34.3 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyinjector-0.1.4-cp38-cp38-manylinux2010_x86_64.whl (34.3 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size pyinjector-0.1.4-cp38-cp38-manylinux2014_x86_64.whl (34.3 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size pyinjector-0.1.4-cp39-cp39-manylinux2010_x86_64.whl (34.3 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size pyinjector-0.1.4-cp39-cp39-manylinux2014_x86_64.whl (34.3 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size pyinjector-0.1.4.zip (23.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page