| <?php |
| error_reporting(0); |
| highlight_file(__FILE__); |
| |
| class Start{ |
| public $name; |
| protected $func; |
| |
| public function __destruct() |
| { |
| echo "Welcome to NewStarCTF, ".$this->name; |
| } |
| |
| public function __isset($var) |
| { |
| ($this->func)(); |
| } |
| } |
| |
| class Sec{ |
| private $obj; |
| private $var; |
| |
| public function __toString() |
| { |
| $this->obj->check($this->var); |
| return "CTFers"; |
| } |
| |
| public function __invoke() |
| { |
| echo file_get_contents('/flag'); |
| } |
| } |
| |
| class Easy{ |
| public $cla; |
| |
| public function __call($fun, $var) |
| { |
| $this->cla = clone $var[0]; |
| } |
| } |
| |
| class eeee{ |
| public $obj; |
| |
| public function __clone() |
| { |
| if(isset($this->obj->cmd)){ |
| echo "success"; |
| } |
| } |
| } |
| |
| if(isset($_POST['pop'])){ |
| unserialize($_POST['pop']); |
| } |