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.1.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.1-cp314-cp314-win_amd64.whl (17.2 kB view details)

Uploaded CPython 3.14Windows x86-64

File details

Details for the file trainerbase_injector-1.0.1.tar.gz.

File metadata

  • Download URL: trainerbase_injector-1.0.1.tar.gz
  • Upload date:
  • Size: 45.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for trainerbase_injector-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8abbe72b72622cb7cc4c1e4afa4f0c077fbb4b01814b349886aa3f56a1efbb12
MD5 82db8c5d46e9ed03f27b5a50d1797afa
BLAKE2b-256 c56ccd91e36a8c5a293c71be37bb9b3c06690038e0a8d7f20ecf8674de1f6816

See more details on using hashes here.

File details

Details for the file trainerbase_injector-1.0.1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for trainerbase_injector-1.0.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 c5a12f55734f2a38df9a6357de4115965da296bfd59bf257b3c9e9ed02e3607b
MD5 f325aa7b5c822a450b543da20023aadc
BLAKE2b-256 333810840c72e935ccb9f6e259d66aa72eca9728470723cd93e531d1633e61ce

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