eval执行文件
直接蚁剑连接即可
文件包含
shell.txt内容所以采用文件包含shell.txt,发个POST请求包
得出flag
php://input
靶场环境
观察phpinfo得出需要用php://input
修改发送方法为post,目标修改为/?file=php://input
将body换成<?php system('ls /');?>查看上一级文件
修改body为
<直接蚁剑连接即可
shell.txt内容所以采用文件包含shell.txt,发个POST请求包
得出flag
靶场环境
观察phpinfo得出需要用php://input
修改发送方法为post,目标修改为/?file=php://input
将body换成<?php system('ls /');?>查看上一级文件
修改body为
<