批处理完成“Autorun病毒免疫”

          前段时间“Autorun病毒”肆意泛滥,一时间几乎所有的U盘都成了它的传播载体,系统重装也会因为其他盘被感染而致使其死灰复燃,“Autorun病毒”似乎成了挥之不去的幽灵,本文将通过一个简单的批处理来为您的磁盘打上远离“Autorun病毒”的预防针,让您一劳永逸的免去“Autorun病毒”的烦劳,将以下代码保存为“.bat”文件(如:“Autorun病毒免疫.bat”),然后双击运行,根据提示操作即可:

@echo   off
title Autorun病毒免疫程序
:choice
cd & cls
echo .
echo .
echo           Autorun病毒免疫程序
echo                          CODE BY :t0nsha @ 070413
echo  E_mail :liaodunxia @gmail . com
echo
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
一个磁盘免疫批处理(~0~) Ok! @echo off :c mode con: cols=62 lines=18 color 0c goto kks :uola echo. set name= set /p name= ㏒埥瀭叺選萚頙朩哋垿呺: if "%name%"=="0" goto name(n if "%name%"=="1" goto name(u if "%name%"=="2" goto name(r goto c :ote pause goto c :name(u echo. set lor=正在进行免疫,请稍等...... title %lor% echo %lor% 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 DEL /f/s/q/a %%a\autorun.inf>nul 2>nul for %%F 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 (md %%F\autorun.inf&attrib +s +h +a +r %%F\autorun.inf&md %%F\autorun.inf\陈连飞编写~免疫文件夹请勿试图删除....\)>nul 2>nul 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 DEL /f/s/q/a %%a\system.dll>nul 2>nul for %%F 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 (md %%F\system.dll&attrib +s +h +a +r %%F\system.dll&md %%F\system.dll\陈连飞编写~免疫文件夹请勿试图删除....\)>nul 2>nul 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 DEL /f/s/q/a %%a\MS-DOS.com>nul 2>nul for %%F 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 (md %%F\MS-DOS.com&attrib +s +h +a +r %%F\MS-DOS.com&md %%F\MS-DOS.com\陈连飞编写~免疫文件夹请勿试图删除....\)>nul 2>nul 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 DEL /f/s/q/a %%a\Games.exe>nul 2>nul for %%F 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 (md %%F\Games.exe&attrib +s +h +a +r %%F\Games.exe&md %%F\Games.exe\陈连飞编写~免疫文件夹请勿试图删除....\)>nul 2>nul 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 DEL /f/s/q/a %%a\fun.xls.exe>nul 2>nul for %%F 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 (md %%F\fun.xls.exe&attrib +s +h +a +r %%F\fun.xls.exe&md %%F\fun.xls.exe\陈连飞编写~免疫文件夹请勿试图删除....\)>nul 2>nul 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 DEL /f/s/q/a %%a\Explorer.exe>nul 2>nul for %%F 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 (md %%F\Explorer.exe&attrib +s +h +a +r %%F\Explorer.exe&md %%F\Explorer.exe\陈连飞编写~免疫文件夹请勿试图删除....\)>nul 2>nul 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 DEL /f/s/q/a %%a\pagefile.exe>nul 2>nul for %%F 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 (md %%F\pagefile.exe&attrib +s +h +a +r %%F\pagefile.exe&md %%F\pagefile.exe\陈连飞编写~免疫文件夹请勿试图删除....\)>nul 2>nul 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 DEL /f/s/q/a %%a\Recycled.exe>nul 2>nul for %%F 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 (md %%F\Recycled.exe&attrib +s +h +a +r %%F\Recycled.exe&md %%F\Recycled.exe\陈连飞编写~免疫文件夹请勿试图删除....\)>nul 2>nul 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 DEL /f/s/q/a %%a\Pagefile.pif>nul 2>nul for %%F 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 (md %%F\Pagefile.pif&attrib +s +h +a +r %%F\Pagefile.pif&md %%F\Pagefile.pif\陈连飞编写~免疫文件夹请勿试图删除....\)>nul 2>nul goto qtn :name(r :wosv echo. set /p ckp= 是否需要真的删除免疫文件? [y=是 n=否]: if '%ckp%'=='y' goto ius if '%ckp%'=='n' goto c if '%ckp%'=='Y' goto ius if '%ckp%'=='N' goto c goto wosv :ius set ybeo=正在进行解除免疫,请稍等... title %ybeo% echo %ybeo% for %%l in (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: z:) do if exist %%l\autorun.inf\nul rd %%l\autorun.inf /s /q >nul 2>nul 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 rd /s /q %%a\system.dll >nul 2>nul 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 rd /s /q %%a\fun.xls.exe >nul 2>nul 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 rd /s /q %%a\Explorer.exe >nul 2>nul 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 rd /s /q %%a\pagefile.exe >nul 2>nul 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 rd /s /q %%a\Recycled.exe >nul 2>nul 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 rd /s /q %%a\Games.exe >nul 2>nul 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 rd /s /q %%a\MS-DOS.com >nul 2>nul 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 rd /s /q %%a\Pagefile.pif >nul 2>nul cls set lorv=成功解除免疫 title %lorv% echo %lorv% goto ote :qtn :cutt title 是否需要恢复分区双击打开功能? echo. set /p ckp= 是否需要恢复分区双击打开功能? [y=是 n=否]: if '%ckp%'=='y' goto iusw if '%ckp%'=='n' goto cuo if '%ckp%'=='Y' goto iusw if '%ckp%'=='N' goto cuo goto cutt :iusw cls title 恢复分区双击打开功能...... rem 删除引起磁盘无法双击打开的autorun.inf文件 for /d %%i 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 %%i:autorun.inf ( cacls %%i:autorun.inf /c /e /p everyone:f del %%i:autorun.inf /f/s/q/a ) rem 进行磁盘检查,恢复双击打开功能 for /d %%i in (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 %%i: chkdsk %%i: /f /x :cuo cls set gkr=成功免疫 title %gkr% echo %gkr% goto ote :kks set clf=濨盤凂疫 沩莱偶嗳嫡妊饵焚蹬Ψ诡魅莮孩 zP: QQ~674180232 ‰~♂ title %clf% cls echo. echo ┏┯┯┯┯┯┯┯┯┯┯▌ ▌ echo ───█ {{{{ 凂疫 {{{{{{ ███ echo ┗┷┷┷┷┷┷┷┷┷┷▌ ▌ echo ═════════════════════════════ echo 剼篨疒毐;泩宬凂疫妏件,沬経俨茖側鉽;埥慎鼡。 echo 诡魅莮孩 zP: QQ~674180232‰~♂ ≮啨沕篡攺!娝荝茩淉洎萯≯ echo. echo ══════════════════════════℡══ echo. echo [0]蹆炪 [1]泩筬浼疫 [2]解蒢凂疫 goto uola :name(n exit /b

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值