CVE-2024-6387_Check 是一款轻量级、高效的工具,旨在识别运行存在漏洞的 OpenSSH 版本的服务器,专门针对最近发现的 regreSSHion 漏洞(CVE-2024-6387)。该脚本支持快速扫描多个 IP 地址、域名和 CIDR 网络范围,以检测潜在漏洞并确保基础设施安全。
python CVE-2024-6387_Check.py <targets> [--port PORT]
python CVE-2024-6387_Check.py 192.168.1.1
python CVE-2024-6387_Check.py -l ip_list.txt
python CVE-2024-6387_Check.py 192.168.1.1 example.com 192.168.1.2
python CVE-2024-6387_Check.py 192.168.1.0/24
python CVE-2024-6387_Check.py 192.168.1.1 example.com --port 2222
该脚本将提供扫描目标的摘要:
🛡️ 无漏洞服务器:1
[+] 服务器位于 157.90.125.31(运行 SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.11)
🚨 可能有漏洞服务器:2
[+] 服务器位于 4.231.170.121(运行 SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.10)
[+] 服务器位于 4.231.170.122(运行 SSH-2.0-OpenSSH_9.2p1 Debian-2+deb12u2)
🔒 端口 22 关闭的服务器:254
📊 已扫描目标总数:257