2 Star 2 Fork 1

Mstir/Penetration_Testing_POC

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README.md 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
mr-xn 提交于 6年前 . update README.md

dz-ml-rce.py :discuz ml RCE 漏洞检测工具


概述


漏洞在于cookie的language可控并且没有严格过滤,导致可以远程代码执行,详情参考

discuz ml RCE漏洞重现及分析


本工具支持单url和批量检测,有判断模式(只判断有无该漏洞)、cmdshell模式(返回简单的cmd shell)和getshell模式(写入一句话木马)。

需求


python2.7
pip -r requirements.txt

使用时加上漏洞PHP页面(如forum.php,portal.php),直接写域名可能会重定向导致误报!


快速开始


使用帮助
python dz-ml-rce.py -h


判断模式
python dz-ml-rce.py -u "http://www.xxx.cn/forum.php"


cmdshell模式
python dz-ml-rce.py -u "http://www.xxx.cn/forum.php" --cmdshell


getshell模式
python dz-ml-rce.py -u "http://www.xxx.cn/forum.php" --getshell


批量检测
python dz-ml-rce.py -f urls.txt


批量getshell
python dz-ml-rce.py -f urls.txt --getshell


TODO

有空会做各种优化。


反馈

issus
博客:http://www.lsablog.com/networksec/penetration/discuz-ml-rce-analysis/
gmail:lsasguge196@gmail.com
qq:2894400469@qq.com

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mstir/Penetration_Testing_POC.git
git@gitee.com:mstir/Penetration_Testing_POC.git
mstir
Penetration_Testing_POC
Penetration_Testing_POC
master

搜索帮助