-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
run_modules.py
46 lines (39 loc) · 1.49 KB
/
run_modules.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
42
43
44
45
46
from modules.before_fuzzing.check_cms import check_cms
from modules.before_fuzzing.check_socketio import check_socketio
from modules.before_fuzzing.google_dorks import query_dork, query_cse
from modules.waf.detect_waf import detect_wafw00f
class check_modules:
"""
check_modules: To manage all module launches
"""
def run_all_modules(self, beforeStart, url, directory, dire, thread):
########## Native modules ##########
checkCms = check_cms()
checkSocketio = check_socketio()
"""
In Progress
#TODO
prescan = False
if prescan:
dw = detect_wafw00f(url, directory, thread)
pre_scan(dw, url) ## pre-check waf sensitivity
"""
beforeStart.get_header(url, directory)
beforeStart.get_dns(url, directory)
beforeStart.letsdebug(url)
result, v = checkCms.detect_cms(url, directory)
if result:
checkCms.cve_cms(result, v)
dw = detect_wafw00f(url, directory, thread)
beforeStart.wayback_check(dire, directory)
beforeStart.gitpast(url)
query_cse(url, directory)
query_dork(url, directory)
beforeStart.firebaseio(url)
beforeStart.check_localhost(url)
beforeStart.check_vhost(dire, url)
beforeStart.check_backup_domain(dire, url)
checkSocketio.main_socketio(url)
if dw:
return dw
########## Personal modules ##########