Skip to content

XiphosResearch/steelcon-python-injection

Repository files navigation

SteelCon 2014 - Python Process Injection Proof of Concept Code

Proof of Concept code written to demonstrate using python-ptrace to inject code into arbritary processes on Linux for my talk at SteelCon in July 2014.

Dependencies:

Licence:

See LICENCE.txt - uses the WTFPL licence.

What?

  • x86-inject.py - Simple x86 process injection tool for demonstration purposes.
  • x64-inject.py - Simple x86_64 process injection tool for demonstration purposes.
  • x64-inject-fork.py - Simple x86_64 process injection tool for demonstration purposes, which prepends the shellcode with a "fork" call in the hopes of not harming target process.
  • armv7l-inject.py - Simple ARMv7l process injection tool for demonstration purposes. (missing, somewhere on my Nexus 7...)
  • EnchantedMushroom.py - Multi Arch (ARMv7l, x86, x86_64) process injection tool which intelligently detects which architecture it is running on, and deploys the correct shellcode/technique as-needed
  • DiabolicalMouse-mass.py - Automatic stager for deploying python scripts in-memory across multiple hosts using SSH.

Author

Darren Martyn

Contact:

Best way is probably twitter - @info_dox

Thanks

Many thanks to the SteelCon crew for giving me a chance to present this, and also to my colleagues at Xiphos Research Labs who helped me out with presenting it and testing out the code.

Also thanks to jtripper, elfmaster, and the various authors of Phrack articles that helped me get the idea solid in my head and understand what I was trying to do with their sample code and articles and such

Notes

Lots of work to be done. Also, please, for the love of god, use your own shellcode...

About

Python Process Injection PoC Code from my SteelCon talk in 2014

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages