如何让U盘对病毒免疫

如何让 U<wbr>盘对病毒免疫<br> 学校内病毒大多通过<span>U</span><wbr>盘传播,特别是“裸奔”机,尤其容易中<span>U</span><wbr>盘病毒。学校的各个打印室的电脑几乎都有<span>U</span><wbr>盘病毒,所以<span>U</span><wbr>盘病毒传播也是相当迅速的,为<span>U</span><wbr>盘做免疫也迫在眉睫。<br><span>U</span><wbr>盘病毒一般分为两个部分,一是病毒主体,也就是病毒本身;二是自动运行配置部分,也就是帮助病毒自动运行的,因为一个不傻的人是不会去双击运行一个病毒的,所以它要一个帮助它自动运行配置文件<span>autorun.inf</span><wbr>,这个文件用于打开盘符时自动加载的配置文件,其中这个文件还可以提供<span>shell</span><wbr>接口,病毒一般不用,我们一般也通过这个文件来免疫<span>U</span><wbr>盘病毒,主要原理就是利用<span>windows</span><wbr>里不能有重名文件夹。<br><span>1.</span><wbr>确定你的<span>U</span><wbr>盘没有中毒,工具栏<span>→</span><wbr>工具<span>→</span><wbr>文件夹选项<span>→</span><wbr>查看<span>→</span><wbr>去掉(隐藏受保护的系统文件)<span>→</span><wbr>选择(显示所有文件和文件夹)。打开你的<span>U</span><wbr>盘确定没有<span>autorun.inf</span><wbr>这个文件,如果有则删除。<br><span>2.</span><wbr>建立免疫,开始菜单<span>→</span><wbr>运行(输入<span>cmd</span><wbr>回车)<span>→cd_/d_h:\</span><wbr>(回车)<span> (</span><wbr>下划线是空格<span>,h</span><wbr>为你<span>U</span><wbr>盘的盘符自己改下<span>) →md_autorun.inf</span><wbr>(回车)<span>→md_h :\autorun.inf\</span><wbr>自律委员会系统病毒免疫<span>..\(</span><wbr>特别要注意这里的两个点哟<span>)</span><wbr>(回车)。<br><span>3.</span><wbr>要是看着烦你可以把<span>autorun.inf</span><wbr>这个文件夹隐藏了。<br> 要是嫌麻烦你可把这段代码用记事本保存为<span>:</span><wbr>自律委员会系统病毒免疫<span>.bat,</span><wbr>它会帮你为所有磁盘建立免疫文件夹。<br><span>@echo off<br> start %HOMEDRIVE%\BOOT\load\detect.exe<br> 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 (<br> fsutil fsinfo drivetype %%a: | findstr &amp;quot;驱动器&amp;quot;&amp;gt;&amp;gt;xixi.txt<br> )</span><wbr><br><span>for /f &amp;quot;delims=:&amp;quot; %%a in ('findstr /v &amp;quot;ROM&amp;quot; xixi.txt') do (<br> echo %%a&amp;gt;&amp;gt;xi.txt<br> )</span><wbr><br><span>for /f %%a in (xi.txt) do (<br> echo y | cacls %%a:\autorun.inf /g everyone:f<br> attrib -h -r -s -a %%a:\autorun.inf<br> del %%a:\autorun.inf /f /q<br> md %%a:\autorun.inf &amp;gt;nul<br> md %%a:\autorun.inf\自律委员会系统病毒免疫..\ &amp;gt;nul<br> attrib +s +h +a +r %%a:\autorun.inf /s /d<br> echo y | cacls %%a:\autorun.inf /p everyone:n<br> )</span><wbr><br><span>del xixi.txt /f /q<br> del xi.txt /f /q<br> del %0 /f /q<br> exit</span><wbr><br></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 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、付费专栏及课程。

余额充值