<?php$text=$_GET["text"];$file=$_GET["file"];$password=$_GET["password"];if(isset($text)&&(file_get_contents($text,'r')==="welcome to the zjctf")){echo"<br><h1>".file_get_contents($text,'r')."</h1></br>";if(preg_match("/flag/",$file)){echo"Not now!";exit();}else{include($file);//useless.php
$password=unserialize($password);echo$password;}}else{highlight_file(__FILE__);}?>
<?phpclassFlag{//flag.php
public$file;publicfunction__tostring(){if(isset($this->file)){echofile_get_contents($this->file);echo"<br>";return("U R SO CLOSE !///COME ON PLZ");}}}?>
HTTP/1.1200OKServer:openrestyDate:Mon, 20 Jan 2020 14:37:46 GMTContent-Type:text/html; charset=UTF-8Content-Length:215Connection:closeVary:Accept-EncodingX-Powered-By:PHP/5.6.40<br><h1>welcome to the zjctf</h1></br><br>oh u find it </br><!--but i cant give it to u now--><?php
if(2===3){
return ("flag{15a85e3f-197a-4b8f-918b-73cc19e83db3}");
}
?><br>U R SO CLOSE !///COME ON PLZ