Pytroj
A tool for infected .pyc files with arbitrary code that spreads out to infect all other .pyc files
Install / Use
/learn @jgeralnik/PytrojREADME
Pytroj
Pytroj is a proof of concept attack against .pyc files. It searches for other .pyc files and injects itself into them. The injected code can be any python code (in this case it prints "You have been exploited").
This proof of concept only searches for .pyc files in its own directory. To use it:
python -c 'import exploit, b, c'
python exploit.pyc
The files b.pyc and c.pyc will now be infected. If you create another .pyc file (for example, python -c 'import byteplay') and run either b.pyc or c.pyc, the new file will also get infected.
Another way to run an infected file is to import it once the .pyc file exists:
python -c 'import b'
The infected files print out a list of files that they have newly infected, followed by the phrase "You have been exploited"
After that, infected programs will continue to execute as normal.
On the web
- [Symantec - python has venom.] (http://www.symantec.com/connect/blogs/python-has-venom)
- [Hackernews] (http://news.ycombinator.com/item?id=3039439)
- [Jacob's Tips for Virus Removal] (http://jacoblol75.blog.com/2011/10/09/simple-ways-to-get-rid-of-python-pytroj/)
- [Packet strom] (http://packetstormsecurity.org/files/105385/Pytroj-Tool-Python-Injector.html)
For help, questions, or comments, feel free to contact us:
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
