时间:2021-07-01 10:21:17 帮助过:7人阅读
$a = array(
"or 1 = 1",
"Or 1 = 1",
"or 3 =3",
"or now() = now()",
"or 'a' = 'a'",
);
foreach($a as $s)
echo $s, " :\t\t", preg_match('/or\b.+(\b\w+\b)[^=]*=.*\1/i', $s), PHP_EOL;
or 1 = 1 : 1还有什么怪异的写法,你加进去自己试
Or 1 = 1 : 1
or 3 =3 : 1
or now() = now() : 1
or 'a' = 'a' : 1