删除SQL Server 2000的危险扩展

use master
exec sp_dropextendedproc xp_cmdshell
exec sp_dropextendedproc xp_dirtree
exec sp_dropextendedproc xp_enumgroups
exec sp_dropextendedproc xp_fixeddrives
exec sp_dropextendedproc xp_loginconfig
exec sp_dropextendedproc xp_enumerrorlogs
exec sp_dropextendedproc xp_getfiledetails

exec sp_dropextendedproc Sp_OACreate
exec sp_dropextendedproc Sp_OADestroy
exec sp_dropextendedproc Sp_OAGetErrorInfo
exec sp_dropextendedproc Sp_OAGetProperty
exec sp_dropextendedproc Sp_OAMethod
exec sp_dropextendedproc Sp_OASetProperty
exec sp_dropextendedproc Sp_OAStop

exec sp_dropextendedproc Xp_regaddmultistring
exec sp_dropextendedproc Xp_regdeletekey
exec sp_dropextendedproc Xp_regdeletevalue
exec sp_dropextendedproc Xp_regenumvalues
exec sp_dropextendedproc Xp_regread
exec sp_dropextendedproc Xp_regremovemultistring
exec sp_dropextendedproc Xp_regwrite
drop procedure sp_makewebtask
go

 

假如你需要恢复,可以使用下面的脚本:

use master
exec sp_addextendedproc xp_cmdshell,"xp_cmdshell.dll "
exec sp_addextendedproc xp_dirtree,"xpstar.dll "
exec sp_addextendedproc xp_enumgroups,"xplog70.dll "
exec sp_addextendedproc xp_fixeddrives,"xpstar.dll "
exec sp_addextendedproc xp_loginconfig,"xplog70.dll "
exec sp_addextendedproc xp_enumerrorlogs,"xpstar.dll "
exec sp_addextendedproc xp_getfiledetails,"xpstar.dll "
exec sp_addextendedproc sp_OACreate,"odsole70.dll "
exec sp_addextendedproc sp_OADestroy,"odsole70.dll "
exec sp_addextendedproc sp_OAGetErrorInfo,"odsole70.dll "
exec sp_addextendedproc sp_OAGetProperty,"odsole70.dll"

 exec sp_addextendedproc sp_OAMethod,"odsole70.dll "
exec sp_addextendedproc sp_OASetProperty,"odsole70.dll "
exec sp_addextendedproc sp_OAStop,"odsole70.dll "
exec sp_addextendedproc xp_regaddmultistring,"xpstar.dll "
exec sp_addextendedproc xp_regdeletekey,"xpstar.dll "
exec sp_addextendedproc xp_regdeletevalue,"xpstar.dll "
exec sp_addextendedproc xp_regenumvalues,"xpstar.dll "
exec sp_addextendedproc xp_regread,"xpstar.dll "
exec sp_addextendedproc xp_regremovemultistring,"xpstar.dll "
exec sp_addextendedproc xp_regwrite,"xpstar.dll "
go 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值