【AVS0705092】Autorun类病毒抑制程序
@echo off
cls
title "AVS Autorun Virus Againster v1.00"
echo "AVS Autorun Virus Againster v1.00"
echo "Authors:glacier_lk&jnh10148 @ AVS Team"
echo "AVS Team''s Blog:http://hi.baidu.com/AVS_Team"
echo 本程序仅能抑制AUTORUN类病毒的自启动,无法清除病毒
echo.
echo "A-抑制"
echo.
echo "B-取消抑制"
echo.
echo "C-退出"
echo.
echo "输入您的选项:"
set choice=
set /p choice=
if /I "%choice%"=="A" goto against
if /I "%choice%"=="B" goto cancel
if /I "%choice%"=="C" goto quit
:cancel
for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do @(
if exist %%a:\nul (
if exist %%a:\autorun.inf (
attrib -h -s %%a:\autorun.inf>nul
rd %%a:\autorun.inf>nul
del %%a:\autorun.inf /f>nul
rd %%a:\autorun.inf>nul
echo 已取消%%a:的病毒抑制
)
echo %%a:不具有病毒抑制能力
)
)
pause
goto quit
:against
for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do @(
if exist %%a:\nul (
if exist %%a:\autorun.inf (
attrib -s -h %%a:\autorum.inf>nul
del %%a:\autorun.inf /f>nul
)
md %%a:\autorun.inf>nul&&attrib +h +s %%a:\autorun.inf>nul&&echo 成功抑制%%a:\AUTORUN病毒的的产生|| echo %%a:已经具备抑制病毒的能力,无须抑制
)
)
pause
:quit
exit
——glacier_lk&jnh10148 @ AVS Team