From c685049c17b6ae7a616fd61d280b71f805d2ec4d Mon Sep 17 00:00:00 2001 From: Anonymus Raccoon Date: Sat, 25 Apr 2020 12:35:50 +0200 Subject: [PATCH] Cleaning up --- main.py | 4 +--- term_utils.py | 5 ++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 2f12730..13e23f3 100755 --- a/main.py +++ b/main.py @@ -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() diff --git a/term_utils.py b/term_utils.py index 260b3cb..3a013dc 100644 --- a/term_utils.py +++ b/term_utils.py @@ -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):