这是一个检测脚本,用于判断 SSL 服务器是否要求客户端身份验证;若要求,则基于 OpenSSL 3.0.0 至 3.0.6 的服务器将同时存在 CVE-2022-3602 和 CVE-2022-3786 漏洞。
usage: openssl_cert_detector.py [-h] [-t TARGET] [-T TARGETS]
optional arguments:
-h, --help show this help message and exit
-t TARGET, --target TARGET
Single IP with port separate by colon. Example: -t 192.168.0.3:3000
-T TARGETS, --targets TARGETS
List of IP and port separate by colon and separated by new line in text file
检查单个 IP 和端口是否存在 openssl 漏洞
python openssl_cert_detector.py -t 192.168.0.3:3000
检查文本文件中按换行分隔的 IP 和端口列表中是否存在 openssl 漏洞
python openssl_cert_detector.py -T check.txt