[NPUCTF2020]ReadlezPHP 1
打开源代码发现了个./time.php?source
于是打开点进去
<?php #error_reporting(0); class HelloPhp { public $a; public $b; public function __construct(){ $this->a = "Y-m-d h:i:s"; $this->b = "date"; } public function __destruct(){ $a = $this->a; $b = $this->b; echo $b($a); } } $c = new HelloPhp; if(isset($_GET["source"])) { highlight_file(__FILE__); die(0); } @$ppp = unserialize($_GET["data"]);