
This Python script checks for the presence of CVE-2024-40898, a critical vulnerability in Apache HTTP Server that may allow SSL/TLS certificate verification bypass under certain misconfigurations. It initiates an SSL connection to the target server and sends a HEAD request.
此 Python 脚本用于检测 CVE-2024-40898,这是 Apache HTTP Server 中的一个严重漏洞,在某些错误配置下可能允许绕过 SSL/TLS 证书验证。它会向目标服务器发起 SSL 连接并发送一个 HEAD 请求。
脚本向目标服务器发起 SSL 连接并发送 HEAD 请求。如果响应表明 SSL 证书验证未正确处理,则服务器可能存在漏洞。
🚀 特性 ✅ 支持完整 URL 或纯 IP,可附带端口
✅ 自动解析端口,未指定时默认使用 443
✅ 忽略 SSL 证书错误(用于测试目的)
✅ 极简且快速的检测逻辑
✅ 清晰的输出指示可能的漏洞
🛠 用法 python CVE-2024-40898.py -u https://192.168.1.1:443 你也可以只传递一个 IP:
python CVE-2024-40898.py -u 192.168.1.1 ⚠️ 免责声明 此脚本仅用于教育目的及授权的安全测试。请勿在您不拥有或未获得明确许可的系统上使用。