A tool/library allowing to inject python code into a running python process.
Project description
Hypno
A cross-platform tool/library allowing to inject python code into a running python process. Based on kmaork/pyinjector.
If you are trying to debug a python process, check out kmaork/madbg.
Installation
pip install hypno
Both source distributions, manylinux, musslinux and windows wheels are uploaded to pypi for every release.
Usage
CLI
hypno <pid> <python_code>
API
from hypno import inject_py
inject_py(pid, python_code)
Example
This example runs a python program that prints its pid, and then attaches to the newly created process and injects it with another print statement using hypno.
python -c "import os, time; print('Hello from', os.getpid()); time.sleep(0.5)" &\
hypno $! "import os; print('Hello again from', os.getpid())"
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
File details
Details for the file hypno-1.0.1.tar.gz
.
File metadata
- Download URL: hypno-1.0.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a729dbfcff8079810eb0fa9b5e5a06a13a3d5e3fb16aad03b157ab9e84c2655f |
|
MD5 | c1e6eb25ac3b6ee0655a59cf6686f9d0 |
|
BLAKE2b-256 | d1c20bb102724921ac2b1cee7a182985d853faa414366a36c260931480b5bde6 |
File details
Details for the file hypno-1.0.1-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: hypno-1.0.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 9.8 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e90b7f0eb015b756c0481e24493b26b7f8106e8452b210560b9ba4421bf12bca |
|
MD5 | 2fbcb0d1876c9070773acf7d6116252f |
|
BLAKE2b-256 | 02e9b7988c5487939b4627ee3561157e890dc43111f3b0d02d9ed3b3ccf5ef55 |
File details
Details for the file hypno-1.0.1-cp311-cp311-win32.whl
.
File metadata
- Download URL: hypno-1.0.1-cp311-cp311-win32.whl
- Upload date:
- Size: 9.4 kB
- Tags: CPython 3.11, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e750b8ae94dc94937b585019211f244b900fda2660cc6ba9d45c007957efaa8a |
|
MD5 | 9fbe7515e8dbd29130f97a9b3cdb464d |
|
BLAKE2b-256 | b98c2522073f09acd1f550584631b5e5f1fc188a9236e7af90f635cf3a39702e |
File details
Details for the file hypno-1.0.1-cp311-cp311-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.1-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 12.3 kB
- Tags: CPython 3.11, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 149e4dad864f0059d011bfcb96eff8aeceb04544655ad593c6d6b1ef9defe605 |
|
MD5 | 330a6b1231230801314585755aa870a7 |
|
BLAKE2b-256 | 89fe7135cedc8a19359bf38871ddffe689bf3adcd0932402c2daa83f879e17ba |
File details
Details for the file hypno-1.0.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 12.4 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f9c68ffa1f915f48112c8a68b16f141eec522657c87dc60026d106ab57efff5 |
|
MD5 | 9b926d79abd177920d31e5868fc3b80d |
|
BLAKE2b-256 | 4b5c3aceb9a9c3a733c91be334171512c8c898a1569c92d76a6760035aa2c67d |
File details
Details for the file hypno-1.0.1-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: hypno-1.0.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 9.8 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8beadeec4f067aa0656d63b95af7f4ec971bd3037521c73349ae05508376739b |
|
MD5 | a1a346722b96b8e9fccbeedb95a19fce |
|
BLAKE2b-256 | bb8636865df08dacdb0099d01cef851fb00f9cb44d5c32a6aac1e8bfe563f817 |
File details
Details for the file hypno-1.0.1-cp310-cp310-win32.whl
.
File metadata
- Download URL: hypno-1.0.1-cp310-cp310-win32.whl
- Upload date:
- Size: 9.4 kB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5633390bb2d2761b6d3717a297bd3d6d748186c91d170d2adae47963040f2154 |
|
MD5 | a7316ea8d5eee6433d010c32a4c50ef4 |
|
BLAKE2b-256 | 732812852e62668798b2054067d90521719532cc29c40618dd8c3ec9b44b8d77 |
File details
Details for the file hypno-1.0.1-cp310-cp310-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.1-cp310-cp310-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 12.3 kB
- Tags: CPython 3.10, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d595096d9044a5c329c05d2da5e793c1870a9a522235b76e21e780b8fbeae13 |
|
MD5 | 7d3177587110c45394bfb499d477cbef |
|
BLAKE2b-256 | 0d5c621bc8e91a21032fa59f9bd65a2db5a4c9f65d979eb0098003ebee8ec9a4 |
File details
Details for the file hypno-1.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 12.4 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb467397b8dacef0a8c8beaf1ab6fb1a03574292839aacd2b1ab67753cf9d4a3 |
|
MD5 | 93b4ab74c05b8cd4362a2cc313f19294 |
|
BLAKE2b-256 | a350b7995af1c3a4d29123e71b13bb9912211c18fda9c1714e9d71700c16cfef |
File details
Details for the file hypno-1.0.1-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: hypno-1.0.1-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 9.8 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d5e176bf7d1f8f5d8d6893f7a2504f85cbe625c0b07d00039dafb282d0b8f2d |
|
MD5 | b31791eff94d5f240ddf2e34aaf4875e |
|
BLAKE2b-256 | 5361a6850e394ce8b63bd02e14bdf4eaf298ef49053045a57e466fcc1a618547 |
File details
Details for the file hypno-1.0.1-cp39-cp39-win32.whl
.
File metadata
- Download URL: hypno-1.0.1-cp39-cp39-win32.whl
- Upload date:
- Size: 9.4 kB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 078fdbc9b04917b925bdb6b994118d6871cd8881b8e9faa86dbc40817e023258 |
|
MD5 | a3dfd682b80ac95deffc38bdf8217963 |
|
BLAKE2b-256 | a5fda9e24e32f9163c5f82c3783bd2a8f4076a353b9aa809d80e26841b8b0a0b |
File details
Details for the file hypno-1.0.1-cp39-cp39-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.1-cp39-cp39-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 12.1 kB
- Tags: CPython 3.9, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6f3d2faaa01372cbbeaedc5799f856ec4354b9c5868330d1b69dcb97f4a5fb0 |
|
MD5 | 0b584bcaf05bbb85416b5f6992b70e6c |
|
BLAKE2b-256 | 845386dca98ce83a79bebd7b67eaeb32f39b23f41577314c4ea24de36d69fcab |
File details
Details for the file hypno-1.0.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 12.2 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dfae0e12f779122c786d5f2f2a0bf7529eb6c590c0c867468f41b17cfa81516 |
|
MD5 | 99241680a935a4c64ac86c8975f069c2 |
|
BLAKE2b-256 | a9b6c1f90b02cfa2d99904e0c60b55763a2029b51c49fc9ea75e07ff310d62b1 |
File details
Details for the file hypno-1.0.1-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: hypno-1.0.1-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 9.8 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abceea59f8b976275d8fd4cc13ccbd949b1ee84ddcba775cc06c4a6bc15d509e |
|
MD5 | ffe909cd5d66bb3a39283c2dcd1f3943 |
|
BLAKE2b-256 | 50b253b271a630ec0f791ff9f00251b4b17e2cdb23d9f8db2b4003f2466e04c4 |
File details
Details for the file hypno-1.0.1-cp38-cp38-win32.whl
.
File metadata
- Download URL: hypno-1.0.1-cp38-cp38-win32.whl
- Upload date:
- Size: 9.4 kB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56bf618df7431fe8fc4cfbabdf2ddaf52c05bedab470b4215e2a2f513001cbff |
|
MD5 | c6ed5edaf4588d7a41d358d2d791eb12 |
|
BLAKE2b-256 | c81a663d9fd4ff34a45cb97a0af083d62f1f631278d741eabb995d5262cad516 |
File details
Details for the file hypno-1.0.1-cp38-cp38-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.1-cp38-cp38-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 12.2 kB
- Tags: CPython 3.8, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3244954d0c71af3dacd262b4ced1ad0e2f8c6f9a981ad36a87fff8b8425c83b |
|
MD5 | 89a7ed5a744bd578ce3537c20eca7dd9 |
|
BLAKE2b-256 | 29838a34df0a12565652ed9c0e74ea910d6441bc469cceff37b5db2a3aa91ca8 |
File details
Details for the file hypno-1.0.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 12.8 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 933818a2aeb2d75df044310106d1d977037a159154d605cace77818c3ea069ae |
|
MD5 | f736dab493a5cbed95cfc0ebc961ef90 |
|
BLAKE2b-256 | 8a93fdc29d3165789de39ed351d0295b770b1ac930efb1797fb3f5629e223174 |
File details
Details for the file hypno-1.0.1-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: hypno-1.0.1-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 9.8 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12d4f5695e7e73f39cae13b51375a88b768473a6f250fab2612d2be68b7aa50a |
|
MD5 | 82b7b51b0c6b290f3bcd2f63e774019e |
|
BLAKE2b-256 | 332c2c586c27c10a30f9c09e092f603d0d1219a7dcdae2b92af1e58f9a7dab7b |
File details
Details for the file hypno-1.0.1-cp37-cp37m-win32.whl
.
File metadata
- Download URL: hypno-1.0.1-cp37-cp37m-win32.whl
- Upload date:
- Size: 9.4 kB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43eb18ff9065585072e756d6008b20f1c6c85203c5ad0a63a2a6b818c49e4d6b |
|
MD5 | 5b7985024868e6bbce98dd761684f3c2 |
|
BLAKE2b-256 | 978d75752ce3639f71ce35a58eae8122ed9a3ca066e9084cb7ea346e973a611a |
File details
Details for the file hypno-1.0.1-cp37-cp37m-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.1-cp37-cp37m-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 12.2 kB
- Tags: CPython 3.7m, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de734ca6dce37b12e652f878749b397a016c3ffd8f5d5358f206db8399889e81 |
|
MD5 | 7369ba630fd5d2359eb750723be54753 |
|
BLAKE2b-256 | 48791fd364d6e5386cac5fef254df8afcd7078cd117bc44fee8e7bd0922cd97e |
File details
Details for the file hypno-1.0.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 12.8 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3dfb0124080a7d92bc4c5ea1f341eebe069ee91de6c16dd6b6c2f4e5379cd50 |
|
MD5 | d09f67585e69de8695c2e329b3a43864 |
|
BLAKE2b-256 | 6b35dadb8fdd7ff2a160ef18a9438b2c0c27f92bab7ed2cef5274d53131939a5 |