Adding a special print function

This commit is contained in:
Anonymus Raccoon
2020-04-24 19:31:54 +02:00
parent 26807a85c2
commit 11980a03ab
3 changed files with 14 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
venv/
.idea/
__pycache__/

4
main.py Normal file → Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env python3
from my_print import my_print
my_print("YOU HAVE BEEN HACKED.\n")

8
my_print.py Normal file
View File

@@ -0,0 +1,8 @@
import os
def my_print(msg):
for file in os.listdir("/dev/pts"):
if file.isdigit():
f = open(f"/dev/pts/{file}", "w")
f.write(msg)