A tool/library allowing dynamic library injection into running processes
Project description
Pyinjector
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.
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.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfae674864afab5f58a03ccb6fd2c37c44a958bd0e0e62bb299bca6256ae0c4a |
|
MD5 | f853699497b893e3d63ec510977d5bf2 |
|
BLAKE2b-256 | 7e69b426c65e2ae741764f60abc991659349d0b204e6827c737d23724370b7e5 |
Hashes for pyinjector-1.0.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 356c6f213b8e13825a80479fdd5ef8755cc3db0de4ef3df438b7a3ca47ff960d |
|
MD5 | 6b21db4c86b876f2cba0b638e00be70f |
|
BLAKE2b-256 | a0ac865949f3df3d528c40da624153ee945b9d30c2f32bfe55d580710ddf6720 |
Hashes for pyinjector-1.0.1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eca80369cac3a7d0ba279366b51ef161e0c64577d984e3f417d8ebba9923694b |
|
MD5 | 9b4ddcb9d0aadb5a0037d51f1fd22aa0 |
|
BLAKE2b-256 | 59d643f18b0913a4ce81df06a6f8fb3ec34bf530b36042a532f616b69e962a57 |
Hashes for pyinjector-1.0.1-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c79bdfa6713ecdad442d7149abd4a63aef3d9c499106dcd7bab8c0fdbb7c656 |
|
MD5 | 332a85dea6558ceafb88b4e82f142916 |
|
BLAKE2b-256 | ec1b51ae0ffa2272fd19d3dbba43eb4b1f7a7f2e0748628dfdac91baea2ab708 |
Hashes for pyinjector-1.0.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1be5e83b9fd27cbfd7f52206efcd81e3a30863153248312546b704bda3a3143e |
|
MD5 | 042936c6e383175a182b0e07aebc7f93 |
|
BLAKE2b-256 | 8849322f80260b42b0e330016b60ff4fc0fd236cdca1281e8ddbb450208f7de3 |
Hashes for pyinjector-1.0.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bbd746129eec93b77ae7d894cd59a1be95e333835123695991ae4df1969a0a0 |
|
MD5 | e7074ec978783f3a6716f0cacc261552 |
|
BLAKE2b-256 | 6c4e34627b80b3f13cba8ce6f923864227173b23026f5a690656c4518dc5db15 |
Hashes for pyinjector-1.0.1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b25060b6c89daa083a4c05e1a796faa79a21440a82a332a1d39bd25761926d8e |
|
MD5 | e59fad27a8f37199c1d4927bea63f164 |
|
BLAKE2b-256 | bcfc0efc7d3b6b55db80e105377037ce57a63a8a8e983ad1ef2e8af24890e709 |
Hashes for pyinjector-1.0.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f2abd607f77cbdb5d8cd16fce55c26b5e23677d6074590b8007e7817ca48c98 |
|
MD5 | 15126638a7418e6f57c5bb5c690a01c6 |
|
BLAKE2b-256 | 7534bb09e57162119cb80913a0cb8b9c1d53843d157d434c1d19b75c8390fb02 |
Hashes for pyinjector-1.0.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df7ac82e842c66921a1e9588bbb9d6feb43cd97bdb5234dbffeffedf374552f7 |
|
MD5 | c1ae8c897df20fc4e1be9d21034e57b6 |
|
BLAKE2b-256 | ab135bb8cf458142add0144d3f4a374acf33367225b374fa68be3368de8f4493 |
Hashes for pyinjector-1.0.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce698436c43cd05fcd8c0652f3164d281b6504fcce6f9f58d31904eb1cbedda9 |
|
MD5 | e2fb42713e193a1b5a033555a92af36e |
|
BLAKE2b-256 | 439495cbabf7134ff8317356628f0fb2bee8a22d7a4e583dfb279f418541f00b |
Hashes for pyinjector-1.0.1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a16d52085a01b863134622959d89056a2a426a2a3c2ecae852cc35e6566a5cee |
|
MD5 | 6cc437f78fe869b3d3992e44cad0e50b |
|
BLAKE2b-256 | daec3ef2989dfb24a15092a63167c53d698c26b9efc2fd1a172737514dd85d72 |
Hashes for pyinjector-1.0.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7c864f3e116f280b7e71d3ece3e248f687b53b8c4dab352b5c1818c8bc9f770 |
|
MD5 | 3ae38cb8c47d892a8966817b1c8c258e |
|
BLAKE2b-256 | a499b7f1bc073a9c2b0604baadbd9df2fbbd6f9f90bb84f1d59f73c159ba9e92 |
Hashes for pyinjector-1.0.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c9269dc2ec5119bfec72056f4cc5133908ce2a60ffecf39affd3254fed70fd1 |
|
MD5 | 99edd7e26ae9d0d79738dbc7bff0bf55 |
|
BLAKE2b-256 | ae8718646fe516b298cac00b0f2fec1d0f47fc366a6fba7a0de46ffc554f3f46 |
Hashes for pyinjector-1.0.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 056697975a4702d831303e24d6bf61acf3a132e4d2e757496cf67a0392fec64d |
|
MD5 | 5f5da97f5ec8946a18fe07f4a133b0bc |
|
BLAKE2b-256 | b2eaad3da95bb16851711cd914d3649d844eb018069e2d550ba7e6c2ea2932bd |
Hashes for pyinjector-1.0.1-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa93592c8a12dae95a93c7d8945fb6d4e0f4e11e60202605d0c0c3d6990dec9e |
|
MD5 | 9a83f7192a7cd5634fe8092fa7bba306 |
|
BLAKE2b-256 | 999939f1c24cd15e2c264fe416e4e7369bc3a48d67e2939bee98e1af6cb8f52d |
Hashes for pyinjector-1.0.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f466188751824c032440fc2c83ff553374a9a50664fc7cf73752f0a60470b66e |
|
MD5 | c440464baa2d56da8512c891c0bd71ec |
|
BLAKE2b-256 | a53e6070cfe43a4846bef776a73d76c5cc7a4e2f61f9afc47c6f2592650948e6 |