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
+2 -1
View File
@@ -1,2 +1,3 @@
venv/
.idea/
.idea/
__pycache__/
Regular → Executable
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env python3
from my_print import my_print
my_print("YOU HAVE BEEN HACKED.\n")
+8
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)