-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.py
41 lines (36 loc) · 996 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from plugins.History_check import History_check
from plugins.User_check import User_check
from plugins.Backdoor_check import Backdoor_check
from plugins.Config_check import Config_check
from plugins.Log_check import Log_check
from plugins.Proc_check import Proc_check
from pre_check import host_infomation
from plugins.common.common import allfile
from conf.conf import init
import threading,time
def begin():
print("""\033[1;36m
====================================
== Emergency Security Check ==
====================================
[+]Author :ChrisKaliX
[+]Version:Test
\033[0m""")
def check_all():
def check(method):
c = method()
c.run()
check(host_infomation)
check(History_check)
check(User_check)
check(Backdoor_check)
check(Config_check)
check(Log_check)
check(Proc_check)
start = time.time()
t=threading.Thread(target=init.getallfile)
t.start()
begin()
check_all()
end = time.time()
print(end-start)