测⼀测: url输⼊index.php.bak即是flag

ezphp2:
题⽬:
a = $a;     }     public function __destruct()     {         foreach (explode("-",$this->a) as $value){             echo $value." ";         }     } } class B extends C {     public $c;     public function FileReader(){         if (file_exists($this->c)){             echo file_get_contents($this->c);         }else{             echo "file_not_found";         }     }     public function __toString()     {         $this->FileReader();         return "";     } } class C{     public $what;
    public $haha;     public function __wakeup()     {         $this->c = "no way";         $this->what = $this->haha;     } } $p = $_GET["p"]; if (isset($p)){     unserialize($p); }else{     new A("Welcome-hacker"); }
Welcome hacker

本人初学,想学习web安全方面,有哪位可以帮我解惑一下,怎么看flag的。不胜感激!

你的代码,难道就不能换行下么