strcmp()绕过

Challenge

error_reporting(0);

error_"xxxxxxxx";

$password = $_GET['password'];

if(strcmp($password,$pass) == 0)

{

echo "flag";

}else{

echo "try again";

}

?>

Solution

Php5.3之后版本使用strcmp比较一个字符串和数组的话,将不再返回-1而是返回0


strcmp()绕过_第1张图片

你可能感兴趣的:(strcmp()绕过)