Metadata-Version: 2.4
Name: pyshellcode
Version: 1.0.0
Summary: inject python shellcode into both python processes and other processes
Author-email: pyhacks <enginyildirim111@gmail.com>
Project-URL: Homepage, https://github.com/pyhacks/pyshellcode/
Keywords: inject,python,shellcode
Description-Content-Type: text/markdown
Requires-Dist: pymem
Requires-Dist: hypno

# pyshellcode
This library utilizes [pymem](https://github.com/srounet/Pymem) and [hypno](https://github.com/kmaork/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](https://github.com/srounet/Pymem/issues/118).

# 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.
