访问显示需要找到源文件,输入什么都响应200
image.png
访问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值,判断key值是否是数字,于str值进行比较,PHP弱类型,直接输入?key=123
网友评论