源码
include 'flag.php';
$flag='MRCTF{xxxxxxxxxxxxxxxxxxxxxxxxx}';
if(isset($_GET['gg'])&&isset($_GET['id'])) {
$id=$_GET['id'];
$gg=$_GET['gg'];
if (md5($id) === md5($gg) && $id !== $gg) {
echo 'You got the first step';
if(isset($_POST['passwd'])) {
$passwd=$_POST['passwd'];
if (!is_numeric($passwd))
{
if($passwd==1234567)
{
echo 'Good Job!';
highlight_file('flag.php');
die('By Retr_0');
}
else
{
echo "can you think twice??";
}
}
else{
echo 'You can not get it !';
}
}
else{
die('only one way to get the flag');
}
}
else {
echo "You are not a real hacker!";
}
}
else{
die('Please input first');
}
(md5($id) === md5($gg) && $id !== $gg)
一个md5绕过
(!is_numeric( p a s s w d ) ) ( passwd)) ( passwd))(passwd==1234567)
is_numeric绕过
md5绕过参考文章:总结ctf中 MD5 绕过的一些思路
is_numeric绕过参考文章:CTF中php语言之is_numeric()和sleep()函数的绕过