Merging the detect term

This commit is contained in:
Anonymus Raccoon
2020-04-24 22:47:28 +02:00
2 changed files with 38 additions and 0 deletions
+35
View File
@@ -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
+3
View File
@@ -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()