@ 2016-04-21T02:02:18Z <?php
$unserialize_str = 'a:2:{s:4:"user";b:1;s:4:"pass";b:"s878926199a";}';
$u=unserialize($unserialize_str);
echo $u;
$_POST='a:3:{s:8:"username";b:1;s:8:"password";b:s878926199a;s:5:"login";s:5:"Login";}';
//$USER="ADMIN";
//$PASS="PASS";
$P=unserialize($_POST);
echo $P;
if(isset($_POST['login']))
{
$user = addslashes($_POST['username']);
if(strlen($user)>50)
die("用户名长度不能超过50个字符");
$user=urldecode($user);
$user_arr=unserialize($user);
$pass = addslashes($_POST['password']);
$adminpass="!1793422703!";
if($pass==$adminpass){die("请勿攻击admin账户!");}
if(md5($pass)==md5($adminpass)){
if($user_arr['user']==$USER && $user_arr['pass']==$PASS)
echo "Well done, the key:".$KEY;//KEY隐藏了
else
die("用户名错误");
}else{
die("密码错误!");
}
}
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.3.0 - 8.3.11 Warning: unserialize(): Error at offset 31 of 48 bytes in /in/niafh on line 3
Warning: unserialize(): Error at offset 39 of 78 bytes in /in/niafh on line 9
Output for 5.5.0 - 5.5.38 , 5.6.0 - 5.6.40 , 7.0.0 - 7.0.33 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.31 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.29 , 8.2.0 - 8.2.23 Notice: unserialize(): Error at offset 31 of 48 bytes in /in/niafh on line 3
Notice: unserialize(): Error at offset 39 of 78 bytes in /in/niafh on line 9
Output for 7.3.32 - 7.3.33 preferences:dark mode live preview
78.69 ms | 408 KiB | 5 Q