mirror of
https://github.com/zoriya/AnonymousGoose.git
synced 2026-05-06 20:31:32 +00:00
Cleaning up
This commit is contained in:
4
main.py
4
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()
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user