标签:lin 判断 xxxx height bug iss if判断 uname warning
<?php highlight_file(‘flag.php‘); $_GET[‘id‘] = urldecode($_GET[‘id‘]); $flag = ‘flag{xxxxxxxxxxxxxxxxxx}‘; if (isset($_GET[‘uname‘]) and isset($_POST[‘passwd‘])) { if ($_GET[‘uname‘] == $_POST[‘passwd‘]) print ‘passwd can not be uname.‘; else if (sha1($_GET[‘uname‘]) === sha1($_POST[‘passwd‘])&($_GET[‘id‘]==‘margin‘)) die(‘Flag: ‘.$flag); else print ‘sorry!‘; } ?>
GET: id=%6d%61%72%67%69%6e&uname[]=1
POST: passwd[]=2
标签:lin 判断 xxxx height bug iss if判断 uname warning
原文地址:https://www.cnblogs.com/chrysanthemum/p/11515694.html