pypatch includes:
-
PyPatch injection executor to run a pre-packed python program and inject code at any time (before startup/after startup)
-
Python injector library to run arbitrary code with any python3x.dll
-
Process injector library to inject dlls
- Write the payload you want to inject in
inject.py
- Compile a DLL with the payload with
make dll
- Compile an injector (in
cmd/injector
) with yourprogram
anddll
paths
import time
def main():
while True:
print("Working")
time.sleep(1)
if __name__ == "__main__":
main()
import os
print("Hello from inject.py!")
print = lambda *args, **kwargs: os.write(1, b"Boo!\n")
Contributions are welcome!
Distributed under the GNU GPL v3.0 License. See LICENSE
for more information.