sqli-labs之Error Based Exploitation小结
在本机虚拟机上安装Ubuntu16.04,并在其上搭建Apache+PHP+mysql环境,PHP版本要求不能高于5.6,否则会出现各种错误
Ubuntu16.04搭建教程:https://blog.csdn.net/qq_42280544/article/details/83904046
安装完成,在虚拟机Ubuntu16.04的浏览器中输入127.0.0.1/sqli-labs-master
点击Setup/reset Database for labs
建库成功!
Less-1:
首先,我们要寻找注入点:
注入地址:http://127.0.0.1/Less-1/
payload:?id=1
正常
payload:?id=1’
报错:== You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘‘1’’ LIMIT 0,1’ at line 1 ==
说明存在注入点,接下来,猜测其后端sql语句
payload:?id=1\