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, mac 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())"
Security
Hypno briefly generates a temporary file containing the requested python code.
This file is given 644 permissions by default, which means all users can read it.
To use custom permissions, you can pass the permissions
argument to inject_py()
.
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.3.tar.gz
.
File metadata
- Download URL: hypno-1.0.3.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 553ec542a98c3c2675dc8f92ce63b7c5eafb65e66a6042368b7839e3d5822ef3 |
|
MD5 | 1a5bd47dd8cfd8cf2fe7b49da4d1875e |
|
BLAKE2b-256 | ea06cbb4d1bdcc130912bff18d669b8af9560892896c01cbe7b5d5a935dfe114 |
File details
Details for the file hypno-1.0.3-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: hypno-1.0.3-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 10.1 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 | d122bf50a835415d1e959ec525d98a2a9a1c210a71aa0428debee0560c6b743f |
|
MD5 | 31b6e724cbe7eac2446868f5d93b40e2 |
|
BLAKE2b-256 | 69be5d034447772102ad3b0a866d3c36ebabdae40610675b0f7f4073ed060083 |
File details
Details for the file hypno-1.0.3-cp311-cp311-win32.whl
.
File metadata
- Download URL: hypno-1.0.3-cp311-cp311-win32.whl
- Upload date:
- Size: 9.7 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 | b1e22918256ef7069dbcb70c72c62d62c0d3030f211764abf3741e83e74da1c5 |
|
MD5 | f76dea0cb776cb6173d83d6db8d82b14 |
|
BLAKE2b-256 | d9d74e19b965ff4cc6dee66558a1bebf16f953126a5f7553048c921e045861c3 |
File details
Details for the file hypno-1.0.3-cp311-cp311-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.3-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 12.6 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 | 5b4e47c4cb234a9c7f056a72547bb1ffa203e95b43de71840c23e984d3ac01c4 |
|
MD5 | 0375fdee2c43e71f69c5b48468126b9f |
|
BLAKE2b-256 | e1b4f0671d8ba05f5c24c5df5c8788328eb3b9618f52fa532c34f11ad41cf2e0 |
File details
Details for the file hypno-1.0.3-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.3-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 12.7 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 | 62791c11a0aa0a76a7913da509e936efc2b9a8245dd6ccee8fd0688a7dece68c |
|
MD5 | 9eeeae7d48ad451a98d05b0038976b93 |
|
BLAKE2b-256 | d686dcbce2a7a857610426f734ad5bcbacf65eea2aaad419b83255607113051a |
File details
Details for the file hypno-1.0.3-cp311-cp311-macosx_10_9_universal2.whl
.
File metadata
- Download URL: hypno-1.0.3-cp311-cp311-macosx_10_9_universal2.whl
- Upload date:
- Size: 8.2 kB
- Tags: CPython 3.11, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4de309e5367327a50cb2b8e97df9315b1b3773185e7092c7eeccf42b22aa4c5e |
|
MD5 | d84c44822fc0843f1bd920232ef9ad72 |
|
BLAKE2b-256 | 4f9357431754df49ffaf3f5576dc2f05e866546d559c1ee5282e8be24ceb2653 |
File details
Details for the file hypno-1.0.3-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: hypno-1.0.3-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 10.1 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 | 5b656e91dec21d15a3eced50c9829f27377b15cb4bac65b99df32c05b976f135 |
|
MD5 | 1d27b8daf2d35923b411d456cab7f3e2 |
|
BLAKE2b-256 | 1de2f08feb8e1beb6f8e88c1681c27a6bf034c070a8ff898bec196658ba7e216 |
File details
Details for the file hypno-1.0.3-cp310-cp310-win32.whl
.
File metadata
- Download URL: hypno-1.0.3-cp310-cp310-win32.whl
- Upload date:
- Size: 9.7 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 | df3e92d6d262b5f9f74d4be87f3327166ad8e6de9b4f3f0c33848b2fec96da37 |
|
MD5 | 8c8e1743621da3980e29f7a920d8de13 |
|
BLAKE2b-256 | c4e4ea10d2f6fb1d056e0a3c8cd353422a7e3273b4d1536348b4d542939d4f25 |
File details
Details for the file hypno-1.0.3-cp310-cp310-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.3-cp310-cp310-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 12.6 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 | 1cdff4af1956422005c9a7bd89fb6c9c1334db2c3bc5a315dd8cb173d5426263 |
|
MD5 | ce1eea4db43d89d5f10fdb6c4b8b5ccb |
|
BLAKE2b-256 | 893df2f09a8c18df0891f79c81374baf0019475157fcf46c352bfc2f9af342b7 |
File details
Details for the file hypno-1.0.3-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.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 12.7 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 | 42ed7a0d26b4ba48a32db7ca5169580ca5250aca34a38452acbf770acc5f0bfc |
|
MD5 | 6a892294a52034bfdd221c6b1591317b |
|
BLAKE2b-256 | e90b16eb502a900572a3e68cac4629cbbd672a507bc39287abbf2b358d04fbe0 |
File details
Details for the file hypno-1.0.3-cp310-cp310-macosx_11_0_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.3-cp310-cp310-macosx_11_0_x86_64.whl
- Upload date:
- Size: 6.6 kB
- Tags: CPython 3.10, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5affbbd100446e603190b4dc73b3c25e0251c7afb5fc793fcc188ff44baf5b0 |
|
MD5 | 62948abe6b4d7fddfb7f2d7db2a65c55 |
|
BLAKE2b-256 | 639076870445041b9c842750d79d84f9fb9a325996be4be45739137254b6591e |
File details
Details for the file hypno-1.0.3-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: hypno-1.0.3-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 10.1 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 | 7c62d415a82ff0c8f8e58e8de7b9635a0d02bc8d27d9600ed943ae9b053d4622 |
|
MD5 | 95bd78dd73a8babd564ea2bcc8b1c6a6 |
|
BLAKE2b-256 | ea478a4ed6c3b9890d033044c5e8cae792a6ce8b25b58eb5bf13e2c78fddf9dd |
File details
Details for the file hypno-1.0.3-cp39-cp39-win32.whl
.
File metadata
- Download URL: hypno-1.0.3-cp39-cp39-win32.whl
- Upload date:
- Size: 9.7 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 | 9b63fd38614eb1d3482ee4c713e151bb0a0dc30262655e8e2b8cb58d14dff9ec |
|
MD5 | ca3e3f1c0552590c88d80fbc5b769687 |
|
BLAKE2b-256 | 12a482db97357282053b0a760f1d5420899fdb4d410ad18cf22bea5dd1cd898c |
File details
Details for the file hypno-1.0.3-cp39-cp39-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.3-cp39-cp39-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 12.4 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 | 55ec64c95341eba6490d4b6334e2b4442277612be22ebf4c7464bea4c069d54d |
|
MD5 | a308985062fb9ad9aaffd7c5ac886464 |
|
BLAKE2b-256 | 7d58c25e0529bcf9e450ba01d3ed09fb219986b6635a64d30ab58596a4290fde |
File details
Details for the file hypno-1.0.3-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.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 12.6 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 | e6cd2c461438e6cffd94a1f35f23f39edd61ac423cc2d8ca166efb7b9b2c2a77 |
|
MD5 | af0f8f6f11b7c4e31bf83befe68af2b5 |
|
BLAKE2b-256 | 1a0a799491c73a71c64e2560dc2233efc9e6ac87ca6b013431692f05c9305898 |
File details
Details for the file hypno-1.0.3-cp39-cp39-macosx_11_0_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.3-cp39-cp39-macosx_11_0_x86_64.whl
- Upload date:
- Size: 6.6 kB
- Tags: CPython 3.9, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12ac6351316fbfa42f187fd89ef6bcbc45a76c0051158e643725d40a09a6a339 |
|
MD5 | 6978b6f3807b35fe2224015b96cd40f2 |
|
BLAKE2b-256 | 5ad75909c20db84ba4a6718b415153274795aae7ab2340d937c261459afdc961 |
File details
Details for the file hypno-1.0.3-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: hypno-1.0.3-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 10.1 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 | 87a90b70043b8dacb3b896dcb5f7e4d1109f5b6a20215d45c51e1da5bc58b412 |
|
MD5 | 2a9974208d17f1150c6a17dca6e33611 |
|
BLAKE2b-256 | bbcfcd07956158a7b07f67d3812b9f289a97e93938fb3c174d6d51ed133a1d4b |
File details
Details for the file hypno-1.0.3-cp38-cp38-win32.whl
.
File metadata
- Download URL: hypno-1.0.3-cp38-cp38-win32.whl
- Upload date:
- Size: 9.7 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 | 8aa7efdf74bf860a6ff8240817e306a73b859c4fd20db9043fcf517c434be555 |
|
MD5 | 1117dfd6e2684831893ed70cd47d6b29 |
|
BLAKE2b-256 | e561714512768f7f66cc07cdaff7d45b2ee4c854caea75b8c0e3268ddb6bd339 |
File details
Details for the file hypno-1.0.3-cp38-cp38-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.3-cp38-cp38-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 12.5 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 | 3bf575b9ab916e29fba7703191552f1c42fccf4b97cf563223b5da84f065e893 |
|
MD5 | e6b0033fb85d21d5c4d4b38e0132bb6a |
|
BLAKE2b-256 | c04d75ad87c670f382bf69d5c80d19ec75ce2cf93bbc6e2bf5f1cacc2f0723c0 |
File details
Details for the file hypno-1.0.3-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.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 13.1 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 | b09f00c8ca2681dc68806dcf6f77dc02fa3411a45378dbb8c51685b30cf81a98 |
|
MD5 | 0bdc27bc0663432e2a0e75dc4ce3394a |
|
BLAKE2b-256 | ca17349d64f1850aa76cab6ecc6c00a651741f735afc16681f2339f8a77adbde |
File details
Details for the file hypno-1.0.3-cp38-cp38-macosx_11_0_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.3-cp38-cp38-macosx_11_0_x86_64.whl
- Upload date:
- Size: 6.6 kB
- Tags: CPython 3.8, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a66b193d2f1f139ca9f8e06d466c5c0411306030f1b67891d04bea4e348ae0a8 |
|
MD5 | 2e27d8e0f0f1c004a4cc1d2314b432e4 |
|
BLAKE2b-256 | cff3e5b4c42c03910989659e3e0b5c819c54d02f100e75070ce138603bfdc2e1 |
File details
Details for the file hypno-1.0.3-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: hypno-1.0.3-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 10.1 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 | 0ee5d9f758b17396492cc01233c70215da683538bd01a65bd1d109fc494a9481 |
|
MD5 | 850258c6d5a7f348f026624cc32fa6ad |
|
BLAKE2b-256 | aaa5a810945abc2258d67e4b8061f2b01fb55aaa3238b820fd08a5119cad50ed |
File details
Details for the file hypno-1.0.3-cp37-cp37m-win32.whl
.
File metadata
- Download URL: hypno-1.0.3-cp37-cp37m-win32.whl
- Upload date:
- Size: 9.7 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 | 4e5fa733c76cce4885b92f67804e0e6e4e1d18620128491e2a8710164933dc2b |
|
MD5 | cd232eb4830912030f9aa633468f0b53 |
|
BLAKE2b-256 | 4f7d7d17120ee8786dcb3d05091cd6c9bfffceabd79ab85aedd03433ead6ecc5 |
File details
Details for the file hypno-1.0.3-cp37-cp37m-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.3-cp37-cp37m-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 12.5 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 | 3ecdc4062f89a2766e6822170304efca32353132476d716b529ad6b00c3336d5 |
|
MD5 | 97b56426ecb52218f2a4603d3074d491 |
|
BLAKE2b-256 | ba41e3efdb2aa10acee12a507a11f948bb7eb940c4e052a6b7ecf86518f55071 |
File details
Details for the file hypno-1.0.3-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.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 13.1 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 | f3923b23a05f7a4a5943938559e9d156af3aa5d3c24808b949fd2096a6039513 |
|
MD5 | ddab08bd6a1b93910d68b88c7345f9b3 |
|
BLAKE2b-256 | 434a2f9470dab4e54c67a6f993eabd41298cd1970bb1007f3afd0cffe7ea6a63 |
File details
Details for the file hypno-1.0.3-cp37-cp37m-macosx_11_0_x86_64.whl
.
File metadata
- Download URL: hypno-1.0.3-cp37-cp37m-macosx_11_0_x86_64.whl
- Upload date:
- Size: 6.6 kB
- Tags: CPython 3.7m, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 378405b4402a0127c2a018f2a3b135292cf1d61a402f9f6fa5fedb2789ac8b76 |
|
MD5 | d907be5b1cd9debbeff1d0ec7002fa1e |
|
BLAKE2b-256 | 5d5fc4a3d388a716aaa92a8c47f66a50006af1dea3f354e6e0021f441f129662 |