A tool/library allowing dynamic library injection into running processes
Project description
Pyinjector
A 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.
Pyinjector has no external python dependencies. It is implemented as a python wrapper for kubo/injector.
Installation
pip install pyinjector
Both source distributions, manylinux2010
wheels and windows wheels are uploaded to Pypi for every release.
Usage
CLI
inject <pid> <path/to/shared/library>
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
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 Distributions
Hashes for pyinjector-1.0.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 176bdfed51b708e4f83ef085276e57bca2335403f6dd790bc0fd6d742ae862ec |
|
MD5 | 3e2217797607ccdb9ce747dcddba5536 |
|
BLAKE2b-256 | 3761a87b99b9a01edac8b96b021a4278356e4e67d924986d6b7b170b7028eb2e |
Hashes for pyinjector-1.0.0-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9133cb6f5249384384a8edead927d726972a537641754c65c7c23b2c8604ed85 |
|
MD5 | 83a54ee271bec272b3fcd56571aed716 |
|
BLAKE2b-256 | afca3e1efc971898c7e95eaaf0e8b7618985d67877549a5fc7efdcbc24c78dfb |
Hashes for pyinjector-1.0.0-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1912c567b4809084c356715fffc99e15201c73da440b116feb1471573d80c0b |
|
MD5 | effec0a4fd2c761eb4f5ce41f9cdfc98 |
|
BLAKE2b-256 | b56b83bc22fa0defaaae32f084ed9cc28036d22fb7c3f98ec40ec93bc96cb37e |
Hashes for pyinjector-1.0.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ac32c6faa230061f2af0c39f04b6d87d266a324580eab29e4d288ae37302bd8 |
|
MD5 | d3e8a696ab5a1c573fdf0458fc988e4f |
|
BLAKE2b-256 | e1a9a3e821183d24e50e471ffef5976f06ed4ba45d7ce5635ca5a4832843808b |
Hashes for pyinjector-1.0.0-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ee9eaf4ab7ce5f271a3dd91417fc827231ef308f95d1d947032602f136f3ab7 |
|
MD5 | d1f9a383f0fe2f14d481084fa3f8e3b7 |
|
BLAKE2b-256 | d70c8d0b975ee46a55454dfe497c4f5fe4202089aafaccc6ca17a76ffd15d644 |
Hashes for pyinjector-1.0.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12bfdbdb7c94e15bb90e2d523da3b302aaca821f9a524b7af388aa66095c8fac |
|
MD5 | 91e2fac43069027e566ba4a9611c2e64 |
|
BLAKE2b-256 | 86b4321b22b922929176bad23f2c3ff10adca6a27de16fd04cf3417ca197f410 |
Hashes for pyinjector-1.0.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b1ec437037dec200fad0b3445e5baded0478eb7d174d11392b5b0781181e659 |
|
MD5 | faa2fc283c1db6a35d8df66f904c217e |
|
BLAKE2b-256 | 846b4b014412669d64ce1e55503ba1ce88f75a21c0c4efe3328db9353570ab22 |
Hashes for pyinjector-1.0.0-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7df4b9f97f2ff0cb6c42fbbb5c793d051b2e37a0c9ff8f2f7c23854ac316a1ac |
|
MD5 | 60a1d69abbda25201a66711b23655cfb |
|
BLAKE2b-256 | 370fd0122a6b45100fe994f9492ade8cb354e78f5dd5f121c3ed1177a73d4c98 |
Hashes for pyinjector-1.0.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91afad3b29c875fa59ada2f930961ff1ed64164971c86f5c5f7b822f9f81601f |
|
MD5 | cff502f5fd29db5b4bc3b8e0b6e75f38 |
|
BLAKE2b-256 | 52ae56f9d9ee319830e0fb34364e5263e76396e8c68473f0c844760f48588178 |
Hashes for pyinjector-1.0.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6133653492d52be79c071374e586bc47659b94ba1b38a3aad60e19253fff0b7d |
|
MD5 | 62cd6f018eb5a1f51fec38f92e2f5298 |
|
BLAKE2b-256 | a1298d98b70b35435c34959f8d5c65245168aba60d5a920905b400ad29757937 |
Hashes for pyinjector-1.0.0-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9324b6c4da7ac9f4280c16af4f4b50b7e87e329646c664c9eadf2635a5ba247c |
|
MD5 | aefec9c2eff89419df2de214906c28f6 |
|
BLAKE2b-256 | c8b38641f242031ccdc8c839e2e537833962d9ed8351d3640742d06a2f8193fc |
Hashes for pyinjector-1.0.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0446e154be125a43f6d52cca9ce682b8036bef724982b36cfba3781c17e980aa |
|
MD5 | 3160585c2c742d9915de970700c5a40c |
|
BLAKE2b-256 | 25a39f5555411966d026d1a5e69ebb75d65ffe0a4ccb53b8484cbfe02e18f548 |