镇江网站seo外包,wordpress 世界时间,局网站信息内容建设 自查报告,wordpress+直接连接数据库虽然有include函数但我们无法直接包含flag因为对file进行了过滤#xff0c;又看见有反序列化的入口#xff0c;只是并没有发现可利用的方法#xff0c;但题目有提示所以尝试将其调出来
php伪协议写入内容
看到file_get_contents函数想到使用data协议#xff0c;去封装一个…虽然有include函数但我们无法直接包含flag因为对file进行了过滤又看见有反序列化的入口只是并没有发现可利用的方法但题目有提示所以尝试将其调出来
php伪协议写入内容
看到file_get_contents函数想到使用data协议去封装一个流然后保险起见include使用了filterdata写入内容为welcome to the zjctf加入php伪协议来读取useless.php
payload如下
?textdata://text/plain,welcome to the zjctffilephp://filter/convert.base64-encode/resourceuseless.php 给file变量在赋值读取flag.php
O:4:Flag:1:{s:4:file;s:8:flag.php;}
将前面的伪协议去掉最终的poc是
/?textdata://text/plain,welcome to the zjctffileuseless.phppasswordO:4:Flag:1:{s:4:file;s:8:flag.php;}