forked from jgeralnik/Pytroj
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 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' | ||
|
||
For help, questions, or comments, feel free to contact us: | ||
|
||
["Joey Geralnik"](https://github.com/jgeralnik "jgeralnik") | ||
["Leon Fedotov"](https://github.com/LeonFedotov "im0b") | ||
["Itzik Kotler"](https://github.com/ikotler "itzikkotler") |