日期:2014-05-16  浏览次数:20508 次

sql2K中的不能附加数据库,选不了路径

原因:存储过程被恶意篡改了,打开master数据库,点开扩展存储过程项,可以看到很多的存储过程路径已经被篡改,正常的都是.dll的路径,将不是该路径的存储过程先删除先执行,存储过程的路径可以参照其它机器好的sql数据库的存储过程
修复一下存储过程
先删除
drop procedure xp_cmdshell
drop procedure sp_OASetProperty
drop procedure sp_OAMethod
drop procedure sp_OACreate
drop procedure xp_regdeletekey
drop procedure xp_regwrite
drop procedure sp_password
drop procedure xp_dirtree
drop procedure sp_password
后执行
exec sp_addextendedproc xp_cmdshell,'xplog70.dll'?
exec sp_addextendedproc sp_OACreate,'odsole70.dll'?
exec sp_addextendedproc sp_OAMethod,'odsole70.dll'?
exec sp_addextendedproc xp_regdeletekey,'xpstar.dll'?
exec sp_addextendedproc xp_regwrite,'xpstar.dll'?
exec sp_addextendedproc xp_dirtree,'xpstar.dll'?
exec sp_addextendedproc sp_OAGetProperty,'odsole70.dll'