公告:魔扣目录网为广大站长提供免费收录网站服务,提交前请做好本站友链:【 网站目录:https://www.morko.net 】, 免友链快审服务(50元/站),

点击这里在线咨询客服
新站提交
  • 网站:51998
  • 待审:31
  • 小程序:12
  • 文章:1030137
  • 会员:747

AutoRun本身是windows系统的一种自动运行机制作,用于方便移动介质的使用,主要的原始意图是使用光盘时,当插入光盘即可自动运行光盘里的内容。

教你写杀毒脚本,自己清除Autorun病毒

 

但这一机制却被病毒利用,形成了一种Autorun类型病毒。在使用U盘、移动硬盘时,很容易感染这种病毒。

病毒传播体的文件内容格式通常为:

OPEN=AutoRun.exe:指定设备启用时运行之命令行。
ICON=Autorun.ico:指定设备显示图标。

当把它保存为autorun.inf时,如果存在于U盘根目录,那么插U盘被插入电脑时,Autorun.exe就会运行。如果此处的Autorun.exe是病毒,那么相当于插入U盘,电脑自动就中病毒了。

下面是一段VBS脚本,把它保存行“杀Autorun病毒.vbs“(名称可以任意,后缀名需为.vbs),双击运行就可以杀灭这种病毒了。

这么有用的内容,快收藏起来吧!

option explicit
'copyleft by ShareWAF.com
'auther: WangLiwen
dim fso
dim drivers
dim driver
dim sfile
dim sline
dim svir
dim stemp
set fso=createobject("scripting.filesystemobject")
set drivers=createobject("scripting.filesystemobject").drives
for each driver in drivers
 if fso.fileexists(driver &"autorun.inf") then
 set sfile=fso.opentextfile(driver & "autorun.inf",1,true)
 do while sfile.atendofstream<>true
 sline=sfile.readline
 if instr(1,ucase(sline),ucase(".exe")) then
 svir=right(sline,len(sline)-instr(1,ucase(sline),"="))
 if msgbox("发现autorun病毒:" & driver & "" & svir & vbcrlf & vbcrlf & "是否要清除?",vbyesno,"请确认")=vbyes then
 if fso.fileexists(driver & "" & svir) then
 fso.deletefile(driver & "" & svir)
 end if
 end if
 end if
 loop
 sfile.close
 fso.deletefile(driver & "autorun.inf")
 end if
next
msgbox "检测完毕"

分享到:
标签:病毒 Autorun
用户无头像

网友整理

注册时间:

网站:5 个   小程序:0 个  文章:12 篇

  • 51998

    网站

  • 12

    小程序

  • 1030137

    文章

  • 747

    会员

赶快注册账号,推广您的网站吧!
最新入驻小程序

数独大挑战2018-06-03

数独一种数学游戏,玩家需要根据9

答题星2018-06-03

您可以通过答题星轻松地创建试卷

全阶人生考试2018-06-03

各种考试题,题库,初中,高中,大学四六

运动步数有氧达人2018-06-03

记录运动步数,积累氧气值。还可偷

每日养生app2018-06-03

每日养生,天天健康

体育训练成绩评定2018-06-03

通用课目体育训练成绩评定