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 cd57927..2890d6e 100755 --- a/main.py +++ b/main.py @@ -1,4 +1,8 @@ #!/usr/bin/env python3 from term_utils import TermUtils +from detect_term import DetectTerm +import time -TermUtils.print("YOU HAVE BEEN HACKED.\n") +print(DetectTerm.find_terminal()) +time.sleep(1) +TermUtils.print("YOU HAVE BEEN HACKED.\n") \ No newline at end of file