1
1
import watchers .windowsdefender as WindowsDefender
2
2
import watchers .windowsfirewall as WindowsFirewall
3
3
import watchers .powershell as PowerShell
4
+ import watchers .openssh as OpenSSH
4
5
import os , sys , time
5
6
import threading
6
7
from term_image .image import from_file
@@ -14,7 +15,8 @@ def clear():
14
15
watching_config = {
15
16
"WindowsDefender" : False ,
16
17
"WindowsFirewall" : False ,
17
- "PowerShell" : False
18
+ "PowerShell" : False ,
19
+ "OpenSSH" : False
18
20
}
19
21
20
22
class colors :
@@ -67,6 +69,8 @@ def mon(key):
67
69
WindowsFirewall .Watch ()
68
70
elif key == "PowerShell" :
69
71
PowerShell .Watch ()
72
+ elif key == "OpenSSH" :
73
+ OpenSSH .Watch ()
70
74
else :
71
75
print (f"{ colors .red } Invalid watcher!{ colors .reset } " )
72
76
break
@@ -90,7 +94,8 @@ def main():
90
94
print (f"{ colors .blue } 1. Windows Defender: " + str (watching_config ["WindowsDefender" ]) + f"{ colors .reset } " )
91
95
print (f"{ colors .blue } 2. Windows Firewall: " + str (watching_config ["WindowsFirewall" ]) + f"{ colors .reset } " )
92
96
print (f"{ colors .blue } 3. PowerShell: " + str (watching_config ["PowerShell" ]) + f"{ colors .reset } " )
93
- print (f"{ colors .blue } 4. Start LogSentry{ colors .reset } " )
97
+ print (f"{ colors .blue } 4. Start OpenSSH: " + str (watching_config ["PowerShell" ]) + f"{ colors .reset } " )
98
+ print (f"{ colors .blue } 5. Start LogSentry{ colors .reset } " )
94
99
95
100
choice = input ("\n Enter your choice: " )
96
101
if choice == "1" :
@@ -100,6 +105,8 @@ def main():
100
105
elif choice == "3" :
101
106
watching_config ["PowerShell" ] = not watching_config ["PowerShell" ]
102
107
elif choice == "4" :
108
+ watching_config ["OpenSSH" ] = not watching_config ["OpenSSH" ]
109
+ elif choice == "5" :
103
110
threads = []
104
111
105
112
for key ,value in watching_config .items ():
0 commit comments