|   [半轉]編寫AutoRUN病毒免疫Tool 
 
 1. 使用記事本寫以下文字, 並Save為.bat, 再將之運行即可
 @echo off
 cls
 echo          按 S 鍵刪除Autorun.inf並進行免疫
 echo.
 echo          按 D 鍵刪除免疫程序
 echo.
 echo          按其他任意鍵退出
 echo.
 echo.
 SET Choice=
 SET /P Choice=        請選擇要進行的動作:
 IF /I '%Choice:~0,1%'=='s' GOTO setup
 IF /I '%Choice:~0,1%'=='d' GOTO Delset
 IF /I '%Choice:~0,1%'=='q' GOTO Exit
 exit
 :Setup
 taskkill /im explorer.exe /f
 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: (
 rd %%a:\autorun.inf /s /q
 del %%a:\autorun.inf /f /q
 mkdir %%a:\autorun.inf
 mkdir %%a:\autorun.inf\"病毒免疫請勿刪除../"
 attrib +h +r +s %%a:\autorun.inf
 
 )
 )
 start explorer.exe
 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 (
 >1.vbs echo msgbox^ "%%a:免疫成功",64,"提示:"
 1.vbs
 )
 )
 del 1.vbs
 echo.
 echo.
 echo                        操作完畢,按任意鍵退出, 同盟論壇_小軒製造...
 pause>nul
 exit
 
 :delset
 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: (
 rd %%a:\autorun.inf /s /q
 
 )
 )
 echo.
 echo.
 echo                        操作完畢,按任意鍵退出, 同盟論壇_小軒製造...
 pause>nul
 exit
 
 [ 本帖最後由 小軒 於 2007-11-25 20:05 編輯 ]
 
 
 
 |