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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd131a50da7bda8a18404843098f361cac127c184d5896280b0be0d03096c591
|
|
| MD5 |
1dabc34797bcd65475837bed1edf3fbd
|
|
| BLAKE2b-256 |
3acd8eb59852800ae04ee302e15b25ab6f4fa22b7957af3e4b21462b2567d8fb
|
File details
Details for the file trainerbase_injector-1.0.0a0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: trainerbase_injector-1.0.0a0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 16.9 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04bb23c9e33441f5695a6d27b6a3da74497a507cfc0869f7280ea37cffbdea69
|
|
| MD5 |
9fd529c9fcaa4c78faf413b9a8a771e1
|
|
| BLAKE2b-256 |
c28598b2aa52cd41a5df8a71fa8841862123fcfc99e170cfd167958b1ef3fa24
|