mirror of
https://github.com/zoriya/AnonymousGoose.git
synced 2025-12-06 06:36:10 +00:00
Adding a special print function
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
venv/
|
||||
.idea/
|
||||
__pycache__/
|
||||
4
main.py
Normal file → Executable file
4
main.py
Normal file → Executable 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
8
my_print.py
Normal 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)
|
||||
Reference in New Issue
Block a user