Google
      
发新话题
打印

[转贴] 让电脑永远离auto病毒

让电脑永远离auto病毒

在这里就不用讲什么是auto病毒了,由于autorun.inf被病毒的广泛使用,相信很多人都认识了吧。     这里我们要做的是防患于未然,马上进入正题。
    首先确保硬盘各分区的格式为NTFS格式,不是就转换吧,别再用FAT32了,因为用NTFS格式,待会我们就可以给建立的免疫文件家上限权管理,以防以后auto病毒再次侵入。
    具体做法如下:
     打开 记事本  输入以下内容
convert c:/fs:ntfs
convert d:/fs:ntfs
convert e:/fs:ntfs
convert f:/fs:ntfs
保存为  con.bat    双击运行 并且所有选项全部选"Y"。
上面的c: d: e: f:分别对应四个分区,对应自己的分区相应更改代码便可。待命令运行完后重起电脑(注意不要跳过开机自检画面)。
接下来就是杀掉病毒与建立免疫了,打开记事本,输入以下内容:
attrib c:\autorun.inf -s -h -r
attrib c:\pagefile.pif -s -h -r
attrib c:\auto.exe -s -h -r
attrib d:\autorun.inf -s -h -r
attrib d:\pagefile.pif -s -h -r
attrib d:\auto.exe -s -h -r
attrib e:\autorun.inf -s -h -r
attrib e:\pagefile.pif -s -h -r
attrib e:\auto.exe -s -h -r
attrib f:\autorun.inf -s -h -r
attrib f:\pagefile.pif -s -h -r
attrib f:\auto.exe -s -h -r
del c:\autorun.inf
del c:\pagefile.pif
del c:\auto.exe
del d:\autorun.inf
del d:\pagefile.pif
del d:\auto.exe
del e:\autorun.inf
del e:\pagefile.pif
del e:\auto.exe
del f:\autorun.inf
del f:\pagefile.pif
del f:\auto.exe
md c:\autorun.inf
md c:\ pagefile.pif
md c:\auto.exe
md  d:\autorun.inf
md  d:\pagefile.pif
md d:\auto.exe
md e:\autorun.inf
md e:\pagefile.pif
md e:\auto.exe
md f:\autorun.inf
md f:\pagefile.pif
md f:\auto.exe
attrib c:\autorun.inf +h
attrib c:\pagefile.pif +h
attrib c:\auto.exe +h
attrib d:\autorun.inf +h
attrib d:\pagefile.pif +h
attrib d:\auto.exe +r
attrib e:\autorun.inf +h
attrib e:\pagefile.pif +h
attrib e:\auto.exe +r
attrib F:\autorun.inf +h
attrib F:\pagefile.pif +h
attrib F:\auto.exe +r
cacls c:\autorun.inf /e /p everyone:n
cacls c:\pagefile.pif /e /p everyone:n
cacls c:\auto.exe /e /p everyone:n
cacls d:\autorun.inf /e /p everyone:n
cacls d:\pagefile.pif /e /p everyone:n
cacls d:\auto.exe /e /p everyone:n
cacls e:\autorun.inf /e /p everyone:n
cacls e:\pagefile.pif /e /p everyone:n
cacls e:\auto.exe /e /p everyone:n
cacls f:\autorun.inf /e /p everyone:n
cacls f:\pagefile.pif /e /p everyone:n
cacls f:\auto.exe /e /p everyone:n
保为 cac.bat   双击行。
这里所使用的限权管理很重要,但它只能在微软所大力推崇的NTFS下使用,要注意的是,DOS下不能识别NTFS格式的磁盘分区,我们可以装DOS工具箱,在其环境下可以使用命令"NTFS" 或 "NTFSDOS"  加载NTFS驱动, 具体以所使用的DOS工具箱为准。

TOP

挺长,其实就是先把所有分区的autorun.inf、pagefile.pif、auto.exe 三个文件删掉,再建立同名目录,利用NTFS的权限功能做成不可改的。感觉还是装个杀毒软件比较放心。

TOP

发新话题