日期:2014-05-17 浏览次数:20641 次
use master select * from dbo.sysobjects where id = object_id(N'[dbo].[xp_cmdshell]') name id xtype uid info status base_schema_ver replinfo parent_obj crdate ftcatid schema_ver stats_schema_ver type userstat sysstat indexdel refdate version deltrig instrig updtrig seltrig category cache -------------------------------------------------------- ----------- ----- ------ ------ ----------- --------------- ----------- ----------- ----------------------- ------- ----------- ---------------- ---- -------- ------- -------- ----------------------- ----------- ----------- ----------- ----------- ----------- ----------- ------ xp_cmdshell -1008137134 X 4 0 0 0 0 0 2005-10-14 01:40:57.297 0 0 0 X 0 4 0 2005-10-14 01:40:57.297 0 0 0 0 0 2 0
--开启xp_cmdshell --SQL Server blocked access to procedure 'xp_cmdshell' sp_configure 'show advanced options', 1 go reconfigure go sp_configure 'xp_cmdshell', 1 go reconfigure go --开启sp_OACreate --SQL Server blocked access to procedure 'sys.sp_OACreate' sp_configure 'show advanced options', 1; go reconfigure; go sp_configure 'ole automation procedures', 1; go reconfigure; go sp_configure 'Ad Hoc Distributed Queries',1; go reconfigure go