<?phperror_reporting(0);classpop{public$aaa;publicstatic$bbb=false;publicfunction__wakeup(){// PHP 5.4
thrownewException("You're banned to serialize pop!");}publicfunction__destruct(){for($i=0;$i<2;$i++){if(self::$bbb){$this->aaa[1]($this->aaa[2]);}else{self::$bbb=call_user_func($this->aaa["object"]);}}}}if(isset($_GET["code"])){unserialize(base64_decode($_GET["code"]));}elseif(isset($_GET["f"])){if(is_string($_GET["f"])===false){echo"The f param must be string";exit();}$user_f=$_GET["f"];$regex="/[ <>?!@#$%&*()+=|\\-\\\\}{:\";'~`,\\/]/";if(preg_match($regex,$user_f)){echo"The ".$user_f." has been detected by regular expression: ".$regex;exit();}echofile_get_contents($user_f);}else{echo"<a href='/index.php?f=secret'>show me secret!</a>";}