forked from Cl0udG0d/HXnineTails
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.py
35 lines (32 loc) · 1.01 KB
/
test.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
import hashlib
import base
import os
from scan import pppFoxScan
import config
def subGet(target):
filename = hashlib.md5(target.encode("utf-8")).hexdigest()
print("Start attsrc foxScan {}\nfilename : {}\n".format(target, filename))
base.subScan(target, filename)
return
PATH='C:\\Users\\Administrator\\Desktop\\heheSEC\\target\\'
def main():
try:
if not os.path.exists(config.Save_path):
os.makedirs(config.Save_path)
os.makedirs(config.Xray_report_path)
os.makedirs(config.Xray_temp_report_path)
os.makedirs(config.CScan_report_path)
os.makedirs(config.Sub_report_path)
os.makedirs(config.Temp_path)
os.makedirs(config.JS_report_path)
except Exception as e:
print(e)
exit(0)
print("目录初始化完成")
reportList=os.listdir(PATH)
print(reportList)
for report in reportList:
current_file=PATH+report
pppFoxScan(current_file)
if __name__ == '__main__':
main()