Skip to main content

A tool/library allowing dynamic library injection into running processes (fork)

Project description

Trainerbase Injector (forked Pyinjector)

Forked from kmaork's Pyinjector in order to support Python 3.13.

PyPI Supported Python Versions PyPI version Downloads

A cross-platform tool/library allowing dynamic library injection into running processes. If you are looking for a way to inject python code into a running process, try the hypno library.

Trainerbase Injector has no external python dependencies. It is implemented as a python wrapper for kubo/injector.

Installation

uv add trainerbase-injector

Usage

CLI

uv run inject <pid> <path/to/shared/library>

API

from trainerbase_injector 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), Linux (ptrace), and Mac (task_for_pid).

Project details


Download files

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

Source Distribution

trainerbase_injector-1.0.0a0.tar.gz (45.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trainerbase_injector-1.0.0a0-cp313-cp313-win_amd64.whl (16.9 kB view details)

Uploaded CPython 3.13Windows x86-64

File details

Details for the file trainerbase_injector-1.0.0a0.tar.gz.

File metadata

  • Download URL: trainerbase_injector-1.0.0a0.tar.gz
  • Upload date:
  • Size: 45.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for trainerbase_injector-1.0.0a0.tar.gz
Algorithm Hash digest
SHA256 cd131a50da7bda8a18404843098f361cac127c184d5896280b0be0d03096c591
MD5 1dabc34797bcd65475837bed1edf3fbd
BLAKE2b-256 3acd8eb59852800ae04ee302e15b25ab6f4fa22b7957af3e4b21462b2567d8fb

See more details on using hashes here.

File details

Details for the file trainerbase_injector-1.0.0a0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for trainerbase_injector-1.0.0a0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 04bb23c9e33441f5695a6d27b6a3da74497a507cfc0869f7280ea37cffbdea69
MD5 9fd529c9fcaa4c78faf413b9a8a771e1
BLAKE2b-256 c28598b2aa52cd41a5df8a71fa8841862123fcfc99e170cfd167958b1ef3fa24

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page