inject python shellcode into both python processes and other processes
Project description
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.
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyshellcode-1.0.0.tar.gz.
File metadata
- Download URL: pyshellcode-1.0.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29aa82f4beb6d5d129142b5fc9613c526bbafc55bc17663432b4c3c3ed54bfcc
|
|
| MD5 |
69ea4bd94a17662094ce1804a21452d0
|
|
| BLAKE2b-256 |
788ca0b019a56a349f39d1ce8b2c7988c70419e71e87abbf7735ba95c64f55c0
|
File details
Details for the file pyshellcode-1.0.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: pyshellcode-1.0.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 9.1 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b09e4e4b29c18f31cbfe796ba80b0f07be955f7818e8c6d8d3470ff5687060db
|
|
| MD5 |
a0d2c836f95ed809ef0dcb1c599182e8
|
|
| BLAKE2b-256 |
000ec4c4436ce57515a82cd216232840b5c06d9c8b61c0c21833bc28cee94f60
|