强烈向大家推荐一个好网站,【我要自学网】,教程由在校老师录制,有办公会计、平面设计、室内设计、机械设计、网页编程、影视动画等教程.....让你足不出门,都可以体验学校的专业教育!
检测sql2000存储过程是否被篡改
select object_name(id), * from master..syscomments where object_name(id) in ('xp_getfiledetails','xp_availablemedia','xp_dirtree','xp_fixeddrives','xp_s ubdirs', 'xp_fileexist','xp_get_tape_devices','sp_MSgetversion','xp_enumdsn','xp_regr ead','xp_regwrite','xp_regdeletevalue', 'xp_regaddmultistring','xp_regremovemultistring','xp_regenumkeys','xp_regenu mvalues','xp_regdeletekey','xp_instance_regread', 'xp_instance_regwrite','xp_instance_regdeletevalue','xp_instance_regaddmulti string','xp_instance_regremovemultistring', 'xp_instance_regenumkeys','xp_instance_regenumvalues') and text <>N'xpstar.dll' go
如果是xp_cmdshell被黑,执行以下恢复
drop procedure xp_cmdshell go exec sp_addextendedproc N'xp_cmdshell', N'xplog70.dll' go
如果是其他存储过程被黑,执行以下恢复
drop procedure xp_存储过程名 go exec sp_addextendedproc N'xp_存储过程名', N'xpstar.dll' go