自动扫描SSL漏洞。
HeartBleed、CCS注入、SSLv3 POODLE、FREAK……等。
A. 支持的漏洞
- CVE-2007-1858] 匿名密码
- CVE-2012-4929] CRIME(SPDY)
- CVE-2014-0160] CCS注入
- CVE-2014-0224] HeartBleed
- CVE-2014-3566] SSLv3 POODLE
- CVE-2015-0204] FREAK攻击
- CVE-2015-4000] LOGJAM攻击
- CVE-2016-0800] SSLv2 DROWN
B. 开发计划
- 计划] SSL ACCF
- 计划] SSL信息分析
A. 下载(克隆)和解压A2SV
$ git clone https://github.com/hahwul/a2sv.git
$ cd a2sv
B. 安装Python包/OpenSSL
$ pip install argparse
$ pip install netaddr
$ apt-get install openssl
C. 运行A2SV
$ python a2sv.py -h
usage: a2sv [-h] [-t TARGET] [-tf TARGETFILE] [-p PORT] [-m MODULE]
[-d DISPLAY] [-u] [-v]
optional arguments:
-h, --help 显示此帮助信息并退出
-t TARGET, --target TARGET
目标URL或IP地址
$ e.g -t 127.0.0.1
-tf TARGETFILE, --targetfile TARGETFILE
目标文件(列表)URL或IP地址
$ e.g -tf ./target.list
-p PORT, --port PORT 自定义端口/默认:443
$ e.g -p 8080
-m MODULE, --module MODULE
使用单个模块检查SSL漏洞
[anonymous]: https://raw.githubusercontent.com/hahwul/a2sv/master/%E5%8C%BF%E5%90%8D%E5%AF%86%E7%A0%81
[crime]: https://raw.githubusercontent.com/hahwul/a2sv/master/CRIME%EF%BC%88SPDY%EF%BC%89
[heart]: https://raw.githubusercontent.com/hahwul/a2sv/master/HeartBleed
[ccs]: https://raw.githubusercontent.com/hahwul/a2sv/master/CCS%E6%B3%A8%E5%85%A5
[poodle]: SSLv3 POODLE
[freak]: OpenSSL FREAK
[logjam]: OpenSSL LOGJAM
[drown]: SSLv2 DROWN
-d DISPLAY, --display DISPLAY
显示输出
[Y,y] 显示输出
[N,n] 隐藏输出
-o OUT, --out OUT 将结果写入文件
$ e.g -o /home/yourdir/result.txt
-u, --update 更新A2SV(GIT)
-v, --version 显示版本
[扫描SSL漏洞]
$ python a2sv.py -t 127.0.0.1
$ python a2sv.py -t 127.0.0.1 -m heartbleed
$ python a2sv.py -t 127.0.0.1 -d n
$ python a2sv.py -t 127.0.0.1 -p 8111
$ python a2sv.py -tf target_list.txt
[更新A2SV]
$ python a2sv.py -u
$ python a2sv.py --update
由于这是一个我没有太多精力关注的项目,回复速度非常慢。
- poodle : https://github.com/supersam654/Poodle-Checker
- heartbleed : https://github.com/sensepost/heartbleed-poc
- ccs injection : https://github.com/Tripwire/OpenSSL-CCS-Inject-Test
- freak : https://gist.github.com/martinseener/d50473228719a9554e6a