pyshellcode
This library utilizes pymem and hypno in order to support injecting python shellcode to arbitrary processes. Difference of this library from these libraries is that pyshellcode fixes the bugs of both libraries so that you won't face crashes because of injecting to processes that are incompatible with one of those libraries. Pymem can only inject into non-python processes and hypno can only inject into python processes. Additionally pymem doesn't work on newer python versions as it is discussed here.
Installation
pip install pyshellcode
Usage
pyshellcode.inject_py(pid_or_name, shellcode)
pid_or_name can either be a str representing the name of the process or an int representing its pid. shellcode is the string that will be executed in the remote process.
Metadata
Release files for pyshellcode 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyshellcode-1.0.0.tar.gz | 3.5 kB | Without provenance | Details for pyshellcode-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyshellcode-1.0.0-cp313-cp313-win_amd64.whl | CPython 3.13 | CPython 3.13 | Windows x86-64 | Details for pyshellcode-1.0.0-cp313-cp313-win_amd64.whl |
Total release size: 12.6 kB
Release files / pyshellcode-1.0.0.tar.gz
| Download URL | pyshellcode-1.0.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29aa82f4beb6d5d129142b5fc9613c526bbafc55bc17663432b4c3c3ed54bfcc
|
|
BLAKE2b-256 checksum How to use checksums |
788ca0b019a56a349f39d1ce8b2c7988c70419e71e87abbf7735ba95c64f55c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Release files / pyshellcode-1.0.0-cp313-cp313-win_amd64.whl
| Download URL | pyshellcode-1.0.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 9.1 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b09e4e4b29c18f31cbfe796ba80b0f07be955f7818e8c6d8d3470ff5687060db
|
|
BLAKE2b-256 checksum How to use checksums |
000ec4c4436ce57515a82cd216232840b5c06d9c8b61c0c21833bc28cee94f60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Security for pyshellcode 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.