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 | |
|---|---|---|---|
| pyshellcode-1.0.0.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyshellcode-1.0.0-cp313-cp313-win_amd64.whl | CPython 3.13 | CPython 3.13 | Windows x86-64 | Details |
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
|