-
Notifications
You must be signed in to change notification settings - Fork 1
/
faze
executable file
·87 lines (71 loc) · 2.23 KB
/
faze
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/env python3
"""
Main executable for module
"""
from datetime import datetime
from core.bootstrap.structure import CreateStructure
from core.helpers.term import ctinfo
from core.modules.dirbruter import DirBruter
from core.modules.fping import Fping
from core.modules.httpscreenshot import HttpScreenshot
from core.modules.nessus import Nessus
from core.modules.nikto import Nikto
from core.modules.nmap import NMap
from core.modules.subbruter import SubBruter
from core.modules.testports import TCPPorts
from core.parsers.targets import BaseTargetsFile, PortTargetsFile
from core.parsers.config import ParseConfig
if __name__ == "__main__":
parseconfig = ParseConfig()
# INITIAL TIME STUFF
start_time = datetime.now()
print("{i} START TIME: {t}".format(i=ctinfo, t=start_time))
# CREATE STRUCTURE
createstructure = CreateStructure()
createstructure.main()
# TARGETS
basetargetsfile = BaseTargetsFile()
basetargetsfile.main()
# SUBBRUTER
if parseconfig.subbruter_enabled:
subbruter = SubBruter()
subbruter.main()
# FPING
if parseconfig.fping_enabled:
fping = Fping()
fping.main()
# NMAP
if parseconfig.nmap_enabled:
nmap = NMap()
nmap.main()
# TODO: write uptargets from scan_targets_dic to file/db(?)
# PARSE HOSTS WITH OPEN PORTS
porttargetsfile = PortTargetsFile()
porttargetsfile.main()
# DOUBLE CHECK PORTS DETECTED BY NMAP (and soon other services)
tcpports = TCPPorts()
tcpports.main()
# HTTPSCREENSHOT
if parseconfig.httpscreenshot_enabled:
httpscreenshot = HttpScreenshot()
httpscreenshot.main()
# NIKTO
if parseconfig.nikto_enabled:
nikto = Nikto()
nikto.main()
# DIRBRUTER
if parseconfig.dirbruter_enabled:
dirbruter = DirBruter()
dirbruter.main()
# NMAP PHASE-2
if parseconfig.nmap_phase_2_enabled:
nmap = NMap()
nmap.phase2()
# NESSUS
if parseconfig.nessus_enabled:
nessus = Nessus()
nessus.main()
# FINISH UP TIME STUFF
end_time = datetime.now()
print("{i} END TIME: {t}".format(i=ctinfo, t=end_time))
print("{i} TOOK {t}".format(i=ctinfo, t=end_time - start_time))