diff --git a/detect_term.py b/detect_term.py new file mode 100644 index 0000000..ff68e4c --- /dev/null +++ b/detect_term.py @@ -0,0 +1,35 @@ +import os + + +class DetectTerm: + terminal_list = [ + "konsole", + "terminator", + "tilda", + "guake", + "yakuake", + "roxterm", + "eterm", + "Rxvt", + "wterm", + "lxterminal", + "termKit", + "st", + "gnome-terminal", + "final_term", + "finalTerm", + "terminology", + "xfce4_terminal", + "xterm", + "lilyterm", + "sakura", + "rxvt-unicode" + ] + + + + @staticmethod + def find_terminal(): + for term in DetectTerm.terminal_list: + if not os.system(term + " &"): + return term diff --git a/main.py b/main.py index 53f4a5f..f397639 100755 --- a/main.py +++ b/main.py @@ -3,6 +3,7 @@ import time import pyxhook from term_utils import TermUtils +from detect_term import DetectTerm from command_helper import CommandHelper @@ -15,6 +16,8 @@ class AnonymousGoose: self.keyboard_listener.KeyUp = self.key_pressed self.keyboard_listener.HookKeyboard() self.keyboard_listener.start() + # print(DetectTerm.find_terminal()) + # time.sleep(1) TermUtils.print("YOU HAVE BEEN HACKED.\n") self.run()