作者:abrewer251
一个用于测试 CVE-2024-38475(“SonicBoom”)Apache URL 遍历漏洞的概念验证工具。该脚本自动化 TLS 协商、目录扫描、遍历验证和载荷模糊测试,以识别未授权文件访问。
该仓库包含一个 Python 脚本(poc.py),其功能如下:
该 PoC 帮助安全研究人员和渗透测试人员快速验证 Apache 服务器中的 SonicBoom URL 遍历缺陷。
Python:3.6 或更高版本
依赖项:
requests通过 pip 安装依赖项:
pip install -r requirements.txt
注意:
requirements.txt应包含:requests
git clone https://github.com/abrewer251/CVE-2024-38475_SonicBoom_Apache_URL_Traversal_PoC.git
cd CVE-2024-38475_SonicBoom_Apache_URL_Traversal_PoC
chmod +x poc.py
python3 poc.py [选项]
--schema 要使用的协议(http 或 https)--host 目标主机或 IP--port 目标端口--directory-wordlist 目录字典文件路径--file-wordlist 文件字典文件路径--output 结果写入路径| 标志 | 描述 | 默认值 |
|---|---|---|
-p, --payloads <列表> | 要追加的 URL 编码载荷(空格分隔) | %3f %3Fany |
-h, |
python3 poc.py \
--schema https \
--host 192.0.2.10 \
--port 8443 \
--directory-wordlist dirs.txt \
--file-wordlist files.txt \
--payloads "%2e%2e/" "%2e%2e%5C" \
--output findings.log
输出文件包含每个测试阶段的逐行日志:
Done. Results saved to <output>每条日志条目的格式如下:
[阶段] 消息或状态
根据 MIT 许可证发布。详见 LICENSE。
--help| 显示帮助信息 |
| — |