mirror of
https://github.com/zoriya/AnonymousGoose.git
synced 2026-06-06 23:32:09 +00:00
Merging the detect term
This commit is contained in:
@@ -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,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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user