-
Notifications
You must be signed in to change notification settings - Fork 17
/
vulcat.py
33 lines (30 loc) · 1.17 KB
/
vulcat.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
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
from lib.initial.banner import banner
from lib.initial.parse import parse
from lib.initial.list import list
from lib.initial.config import config_init
from lib.tool import color
import os
banner() # * 横幅
try:
args = parse()[0] # * 参数接收
list() if args.list else None # * 是否显示漏洞列表
if args.url or args.file:
config_init(args) # * 配置初始化, 加载全局变量
from lib.core.coreScan import corescan # * 导入核心扫描模块
corescan.start() # * 开始扫描
else:
print('''Please specify parameters, example:
python3 vulcat.py -h
python3 vulcat.py --list
python3 vulcat.py -u https://www.example.com/
python3 vulcat.py -f url.txt -o html
python3 vulcat.py -u https://www.example.com/ -v httpd --log 3
python3 vulcat.py -u https://www.example.com/ -v cnvd-2018-24942 --shell
''')
except KeyboardInterrupt:
print(color.reset('CTRL + C exit the scan'))
os._exit(0)
# except Exception as e:
# print(e)