标题: 天X防毒批处理
[打印本页]
作者: putao
时间: 2007-10-5 15:12
标题: 天X防毒批处理
将下面的代码用记事本写好,再别存为.bat的文件(批处理文件)
最好将系统盘用影子系统保护起来,在加上本批处理相信可以防%95的病毒.
本批处理是根据我个人的机子的分区来写的,你可以自己根据自己电脑改一下.
注:本批处理过后会生成部份文件夹,其正是为了防毒的请你放心!
请各位多多指教!
@echo off&setlocal enabledelayedexpansion
mode con cols=100 lines=10
for /l %%a in (1,1,8) do (
echo/
echo\
echo.
echo **********************************************************************
echo *************************天X防毒批处理*******************************
echo **********************************************************************
color cf
ping -n 1 127.1>nul
color fc
ping -n 1 127.1>nul
cls
)
color f1
cls
pause
attrib %windir%\Logo1_.exe -s -r -h
del %windir%\Logo1_.exe /y
md %windir%\Logo1_.exe
attrib %windir%\Logo1_.exe +s +r +h
md %windir%\Logo1_.exe\p..\
attrib %windir%\uninstall\rundl132.exe -s -r -h
del %windir%\uninstall\rundl132.exe /y
md %windir%\uninstall\rundl132.exe
attrib %windir%\uninstall\rundl132.exe +s +r +h
md %windir%\uninstall\rundl132.exe\p..\
attrib c:\autorun.inf -s -r -h
del c:\autorun.inf /y
md c:\autorun.inf
attrib c:\autorun.inf +s +r +h
md c:\autorun.inf\p..\
attrib c:\auto.exe -s -r -h
del c:\auto.exe /y
md c:\auto.exe
attrib c:\auto.exe +s +r +h
md c:\auto.exe\p..\
attrib c:\autorun.exe -s -r -h
del c:\autorun.exe /y
md c:\autorun.exe
attrib c:\autorun.exe +s +r +h
md c:\autorun.exe\p..\
attrib d:\autorun.inf -s -r -h
del d:\autorun.inf /y
md d:\autorun.inf
attrib d:\autorun.inf +s +r +h
md d:\autorun.inf\p..\
attrib d:\auto.exe -s -r -h
del d:\auto.exe /y
md d:\auto.exe
attrib d:\auto.exe +s +r +h
md d:\auto.exe\p..\
attrib d:\autorun.exe -s -r -h
del d:\autorun.exe /y
md d:\autorun.exe
attrib d:\autorun.exe +s +r +h
md d:\autorun.exe\p..\
attrib e:\autorun.inf -s -r -h
del e:\autorun.inf /y
md e:\autorun.inf
attrib e:\autorun.inf +s +r +h
md e:\autorun.inf\p..\
attrib e:\autorun.exe -s -r -h
del e:\autorun.exe /y
md e:\autorun.exe
attrib e:\autorun.exe +s +r +h
md e:\autorun.exe\p..\
attrib e:\auto.exe -s -r -h
del e:\auto.exe /y
md e:\auto.exe
attrib e:\auto.exe +s +r +h
md e:\auto.exe\p..\
attrib f:\autorun.inf -s -r -h
del f:\autorun.inf /y
md f:\autorun.inf
attrib f:\autorun.inf +s +r +h
md f:\autorun.inf\p..\
attrib f:\autorun.exe -s -r -h
del f:\autorun.exe /y
md f:\autorun.exe
attrib f:\autorun.exe +s +r +h
md f:\autorun.exe\p..\
attrib f:\auto.exe -s -r -h
del f:\auto.exe /y
md f:\auto.exe
attrib f:\auto.exe +s +r +h
md f:\auto.exe\p..\
echo/
echo\
echo.
echo **********************************************************************
echo ***************************OK OVER**********************************
echo **********************************************************************
color cf
ping -n 1 127.1>nul
color fc
ping -n 1 127.1>nul
cls
)
作者: waynebeat
时间: 2007-10-5 22:55
这劳动力,挺强
作者: luckboy45
时间: 2007-10-7 19:20
太傻的东西...不过辛苦楼主了.....其实可以用简单的代码实现的,....
作者: HAT
时间: 2007-10-8 17:55
建议用for循环来遍历盘符,比如:
@echo off
set AllDrive=c d e f g h i j k l m n o p q r s t u v w x y z
for %%a in (%AllDrive%) do (
attrib %%a:\autorun.inf -r -h -s -a
del %%a:\autorun.inf
md %%a:\autorun.inf
md %%a:\autorun.inf\lszf..\
del /f /s /q %%a:\RECYCLER\*.*
)
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoDriveTypeAutoRun /t reg_dword /d 255 /f
作者: fanqiang
时间: 2007-10-9 15:22
del %%a:\autorun.inf
最好换成
rd %%a:\autorun.inf
就好多了
作者: 67411666
时间: 2007-10-14 15:56
对啊
作者: putao
时间: 2007-10-18 23:07
标题: 大家想法都很对
你说的把del改为rd
首先是要删掉autorun.inf这个文件而不是文件夹呀~