"-----------------病毒专杀VBS模板源码开始----------------- on error resume next msgbox "本专杀有ycosxhack提供http://hi.baidu.com/ycosxhack!",64,"xxx病毒专杀" "本专杀模板有ycosxhack(余弦函数)制作,我的博客:http://hi.baidu.com/ycosxhack,欢迎讨论。
"-----------------病毒进程结束模块开始----------------- set w=getobject("winmgmts:") set p=w.execquery("select * from win32_process where name="rundll.exe"") for each i in p i.terminate next "-----------------病毒进程结束模块终止-----------------
"-----------------插入型dll病毒释放模块开始----------------- set WSHShell=wscript.createobject("wscript.shell") WSHShell.run("ps /e * hook.dll"),0,true "请将第三方程序ps.exe与本专杀放在同一目录下 "-----------------插入型dll病毒释放模块终止-----------------
"-----------------病毒文件删除模块开始----------------- set fso=createobject("scripting.filesystemobject") set del=wscript.createobject("wscript.shell") d1=del.ExpandEnvironmentStrings("%temp%
undll.exe") d2=del.ExpandEnvironmentStrings("%SystemRoot%
undll86.exe") d3=del.ExpandEnvironmentStrings("%SystemRoot%system32
undll86.exe") set v1=fso.getfile(d1) set v2=fso.getfile(d2) set v3=fso.getfile(d3) set v4=fso.getfile("d:virusvirus.exe") "没涉及到环境变量的可以直接这样写。 v1.attributes=0 v2.attributes=0 v3.attributes=0 v4.attributes=0 v1.delete v2.delete v3.delete v4.delete "-----------------病毒文件删除模块终止-----------------
"-----------------遍历删除各盘符根目录下病毒文件模块开始----------------- set fso=createobject("scripting.filesystemobject") set drvs=fso.drives for each drv in drvs if drv.drivetype=1 or drv.drivetype=2 or drv.drivetype=3 or drv.drivetype=4 then set w=fso.getfile(drv.driveletter&":
undll.exe") w.attributes=0 w.delete set u=fso.getfile(drv.driveletter&":autorun.inf") u.attributes=0 u.delete end if next "-----------------遍历删除各盘符根目录下病毒文件模块终止-----------------
"-----------------系统文件恢复模块开始----------------- set fso=createobject("scripting.filesystemobject") fso.getfile("rundll32.exe").copy("c:windowssystem32
undll32.exe") fso.getfile("rundll32.exe").copy("C:WINDOWSsystem32dllcache
undll32.exe") "-----------------系统文件修复模块终止-----------------
"-----------------HOST文件修复模块开始----------------- set fso=createobject("scripting.filesystemobject") set re=fso.OpenTextFile("C:WINDOWSsystem32driversetchosts",2,0) re.Writeline "127.0.0.1 localhost" re.Writeline "127.0.0.1 www.你要屏蔽的恶意网址或IP.com" re.Close set re=nothing "-----------------HOST文件修复模块终止-----------------
"-----------------Autorun免疫模块开始----------------- set fso=createobject("scripting.filesystemobject") set drvs=fso.drives for each drv in drvs if drv.drivetype=1 or drv.drivetype=2 or drv.drivetype=3 or drv.drivetype=4 then fso.createfolder(drv.driveletter&":autorun.inf") fso.createfolder(drv.driveletter&":autorun.inf免疫文件夹..") set fl=fso.getfolder(drv.driveletter&":autorun.inf") fl.attributes=3 end if next "-----------------Autorun免疫模块终止-----------------