页面提示找到源码
常见的源码(备份文件)泄露www.zip,www.tar.gz,index.php.swp,index.php.bak
这里就是index.php.bak,访问后得到
<?php
include_once "flag.php";
if(isset($_GET['key'])) {
$key = $_GET['key'];
if(!is_numeric($key)) {
exit("Just num!");
}
$key = intval($key);
$str = "123ffwsfwefwf24r2f32ir23jrw923rskfjwtsw54w3";
if($key == $str) {
echo $flag;
}
}
else {
echo "Try to find out source file!";
}
相关函数
发现这里是$key == $str,弱类型比较
直接get传参:?key=123,得到flag