1 20 50 150 500
欢迎来到存起来软件站,找素材,搜软件,就上存起来软件站!
当前位置 >Home >脚本 >脚本下载 >批处理 >清理删除
移动介质病毒免疫工具(U盘,移动硬盘等)
跳转至下载链接

脚本介绍

移动磁盘容易受到利用移动设备的自动运行特性而感染和发作的病毒的侵袭,而我们无法保证其他的机器中没有这类病毒。

本工具可对移动磁盘进行特别的免疫处理,使得它的自动运行特性完失效,从而避免带毒的移动磁盘插入本机后病毒立即自动执行。
当然,您也完全可以对硬盘分区进行免疫处理。


复制代码代码如下:
@Echo Off
color 9f
REM title 移动介质病毒免疫工具
:reg
Rem 无条件禁止自动运行特性防范病毒
reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer" /v NoDriveAutoRun /t REG_BINARY /d ffffff03 /f>nul 2>nul
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionpoliciesExplorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 0x000000df /f>nul 2>nul
reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 0x000000df /f>nul 2>nul
reg add "HKEY_USERS.DEFAULTSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 0x000000df /f>nul 2>nul
reg add "HKEY_USERSS-1-5-18SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 0x000000df /f>nul 2>nul
reg add "HKEY_USERSS-1-5-19SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 0x000000df /f>nul 2>nul
reg add "HKEY_USERSS-1-5-20SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 0x000000df /f>nul 2>nul
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvancedFolderHiddenSHOWALL" /v CheckedValue /t REG_DWORD /d 0x00000001 /f>nul 2>nul
rem 修复磁盘打开关联
reg delete "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints2" /f>nul 2>nul
rem 杀除U盘病毒进程
taskkill /F /IM ctfmon.exe /IM ctfmon.exe /IM SVOHOST.exe /IM AdobeR.exe /IM ravmone.exe /IM wincfgs.exe /IM doc.exe /IM rose.exe /IM sxs.exe /IM autorun.exe /IM KB20060111.exe>nul 2>nul
rem 免疫自动运行
echo Y|cacls "%USERPROFILE%「开始」菜单程序启动" /C /P everyone:F>nul 2>nul
echo Y|cacls "%ALLUSERSPROFILE%「开始」菜单程序启动" /C /P everyone:F>nul 2>nul
attrib -s -h -r "%USERPROFILE%「开始」菜单程序启动\*.exe">nul 2>nul
attrib -s -h -r "%ALLUSERSPROFILE%「开始」菜单程序启动\*.exe">nul 2>nul
del /A /F /S /Q "%USERPROFILE%「开始」菜单程序启动\*.exe">nul 2>nul
del /A /F /S /Q "%ALLUSERSPROFILE%「开始」菜单程序启动\*.exe">nul 2>nul
rem echo Y|cacls "%USERPROFILE%「开始」菜单程序启动" /C /P everyone:N>nul 2>nul
rem echo Y|cacls "%ALLUSERSPROFILE%「开始」菜单程序启动" /C /P everyone:N>nul 2>nul
:menu1
cls
Echo.
Echo.
Echo 磁盘 Autorun 病毒清除/免疫工具 By 陈毅
Echo.
Echo 移动磁盘容易受到利用移动设备的自动运行特性而感染和发作的病毒
Echo 的侵袭,而我们无法保证其他的机器中没有这类病毒。
Echo.
Echo 本工具可对移动磁盘进行特别的免疫处理,使得它的自动运行特性完
Echo 失效,从而避免带毒的移动磁盘插入本机后病毒立即自动执行。
Echo 当然,您也完全可以对硬盘分区进行免疫处理。
Echo.
Echo.
Echo [1] 免疫当前系统中所有磁盘
Echo [2] 只免疫指定磁盘或移动磁盘
Echo [3] 退出
Set Choice=
Echo.
Set /P Choice= 请输入要执行的操作,然后按回车:
Echo.
If '%Choice%'=='' goto other
If /I '%Choice%'=='1' GOTO alldisk
If /I '%Choice%'=='2' GOTO setlet
If /I '%Choice%'=='3' GOTO end
Goto menu1
:alldisk
Echo.
Echo 正在免疫!可能需要一小会时间,请稍候……
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 echo Y|cacls %%a:autorun.inf /C /P everyone:F>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 attrib -s -h -r %%a: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 /A /F /S /Q %%a: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 md %%a: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 md %%a: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 attrib +s +h +r %%a: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 echo Y|cacls %%a:autorun.inf /C /P everyone:R>nul 2>nul
rem 杀除U盘病毒进程
taskkill /F /IM ctfmon.exe /IM ctfmon.exe /IM SVOHOST.exe /IM AdobeR.exe /IM ravmone.exe /IM wincfgs.exe /IM doc.exe /IM rose.exe /IM sxs.exe /IM autorun.exe /IM KB20060111.exe>nul 2>nul
rem 免疫自动运行
echo Y|cacls "%USERPROFILE%「开始」菜单程序启动" /C /P everyone:F>nul 2>nul
echo Y|cacls "%ALLUSERSPROFILE%「开始」菜单程序启动" /C /P everyone:F>nul 2>nul
attrib -s -h -r "%USERPROFILE%「开始」菜单程序启动\*.exe">nul 2>nul
attrib -s -h -r "%ALLUSERSPROFILE%「开始」菜单程序启动\*.exe">nul 2>nul
del /A /F /S /Q "%USERPROFILE%「开始」菜单程序启动\*.exe">nul 2>nul
del /A /F /S /Q "%ALLUSERSPROFILE%「开始」菜单程序启动\*.exe">nul 2>nul
rem echo Y|cacls "%USERPROFILE%「开始」菜单程序启动" /C /P everyone:N>nul 2>nul
rem echo Y|cacls "%ALLUSERSPROFILE%「开始」菜单程序启动" /C /P everyone:N>nul 2>nul
rem 清除自动加载键值
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v SoundMam /f>nul 2>nul
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v wincfgs /f>nul 2>nul
reg delete "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWindows" /v Load /f>nul 2>nul
reg delete "HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows" /v Load /f>nul 2>nul
rem 清除喜欢利用回收站的移动磁盘自动运行病毒
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 echo Y|cacls "%%a:Recycler*.exe" /C /P everyone:F>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 echo Y|cacls "%%a:Recycler*.pif" /C /P everyone:F>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 echo Y|cacls "%%a:Recycler*.com" /C /P everyone:F>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 echo Y|cacls "%%a:Recycled*.exe" /C /P everyone:F>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 echo Y|cacls "%%a:Recycled*.pif" /C /P everyone:F>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 echo Y|cacls "%%a:Recycled*.com" /C /P everyone:F>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 echo Y|cacls "%%a:RecycledRecycled*.exe" /C /P everyone:F>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 echo Y|cacls "%%a:RecycledRecycled*.pif" /C /P everyone:F>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 echo Y|cacls "%%a:RecycledRecycled*.com" /C /P everyone:F>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 /A /F /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 del /A /F /S /Q "%%a:Recycled*.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 /A /F /S /Q "%%a:Recycled*.pif">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 /A /F /S /Q "%%a:Recycler*.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 /A /F /S /Q "%%a:Recycler*.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 /A /F /S /Q "%%a:Recycler*.pif">nul 2>nul
cls
Echo.
Echo 当前系统的所有磁盘已经成功地进行了自动运行病毒免疫!
Echo 任意键退出……
pause>nul
goto end
:setlet
echo.
Echo.
Set Choice=
Set /P Choice= 请输入要免疫的移动磁盘的盘符,如 F: 然后按回车:
If '%Choice%'=='' goto setlet
echo Y|cacls %Choice%autorun.inf /C /P everyone:F>nul 2>nul
If Exist %Choice%Autorun.inf Del /A /F /S /Q %Choice%Autorun.inf>nul 2>nul
md %Choice%Autorun.inf>nul 2>nul
md %Choice%Autorun.inf病毒免疫目录不要删除!..>nul 2>nul
attrib +s +h +r %Choice%Autorun.inf>nul 2>nul
echo Y|cacls %Choice%Autorun.inf /P everyone:N>nul
rem 清除回收站可能的病毒
cacls "%Choice%Recycler*.exe" /C /P everyone:F>nul 2>nul
cacls "%Choice%Recycler*.pif" /C /P everyone:F>nul 2>nul
cacls "%Choice%Recycler*.com" /C /P everyone:F>nul 2>nul
cacls "%Choice%Recycled*.exe" /C /P everyone:F>nul 2>nul
cacls "%Choice%Recycled*.pif" /C /P everyone:F>nul 2>nul
cacls "%Choice%Recycled*.com" /C /P everyone:F>nul 2>nul
cacls "%Choice%RecycledRecycled*.exe" /C /P everyone:F>nul 2>nul
cacls "%Choice%RecycledRecycled*.pif" /C /P everyone:F>nul 2>nul
cacls "%Choice%RecycledRecycled*.com" /C /P everyone:F>nul 2>nul
del /A /F /S /Q "%Choice%Recycled*.exe">nul 2>nul
del /A /F /S /Q "%Choice%Recycled*.com">nul 2>nulcls
del /A /F /S /Q "%Choice%Recycled*.pif">nul 2>nul
Echo.
Echo 指定的磁盘 %Choice% 已经成功地进行了病毒免疫!
:other
Echo.
Echo [1] 继续免疫其他的磁盘 [2] 退出
Set Choice=
Echo.
Set /P Choice= 请输入要执行的操作,然后按回车:
Echo.
If '%Choice%'=='' goto other
If /I '%Choice%'=='1' GOTO setlet
If /I '%Choice%'=='2' GOTO end
Goto other
:End
cls
Echo.
Echo 友情提示:
Echo 如果系统中已经感染了打开磁盘分区即自动运行的病毒,请用本工具
Echo 对所有磁盘进行免疫处理后,立即重启计算机,然后这类病毒就不会
Echo 在打开磁盘时自动运行了。此时只需直接删除病毒文件即可!
Echo.
Echo 任意键退出……
pause>nul
Exit

警告:运行BAT源码是一种危险的动作,如果你不熟悉,请不要尝试!

下载地址

特别说明:

本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!

本站为非营利性站点,所有资源均是网上搜集或私下交流学习之用,任何涉及

商业盈利目的均不得使用,否则产生的一切后果将由您自己承担!本站仅仅提供

一个观摩学习的环境,将不对任何资源负法律责任。所有资源请在下载后24小时内删除。若无意中侵犯到您的版权利益,敬请来信联系我们。我们会在收到信息三天内给予处理!

本站提供的普通下载点可能造成多线程类的软件无法下载,建议直接点击或另存为下载!

如有侵犯您的版权,请及时联系513175919#qq.com(#换@),我们将尽快处理。

Top