知识点
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!”; }
php的==在比较时字符串和数字进行比较时,会先将字符串转换成数字再进行比较<br />payload:
```http
?key=123
得到flag