麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 編程 > BAT > 正文

批處理 Autorun 病毒清除工具

2020-07-26 20:28:16
字體:
供稿:網(wǎng)友
@Echo Off
color 2f
title Autorun 病毒清除工具-By Phexon
Rem 殺進(jìn)程
taskkill /F /IM SocksA.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 /IM tel.xls.exe>nul 2>nul


:clearauto
cls
Echo.
Echo                Autorun 病毒清除工具
Echo.
Echo.                
Echo.
Echo             制作:Phexon
Echo.
Echo        本程序運行后自動清除每個盤符下面的Autorun病毒
Echo        本程序原理是基于讀取每個盤符下的Autorun.inf相關(guān)字段
Echo.
Echo        [1] 僅僅刪除所有盤符下的 Autorun 病毒
Echo        [2] 刪除所有盤符下的 Autorun 病毒并且建立同名免疫目錄(推薦!)
Echo        [3] 禁用系統(tǒng)的 Autorun 機(jī)制以避免 Autorun 病毒的再次感染
Echo        [4] 取消所有盤符的 Autorun 病毒免疫
Echo        [5] 刪除并免疫指定盤符的 Autorun 病毒
Echo        [6] 取消免疫指定盤符
Echo        [7] 恢復(fù)相關(guān)注冊表項默認(rèn)值
Echo        [0] 退出
Echo.
Set /p clearslt=    請輸入您的選擇(1/2/3/4/5/6/7/0):
If "%clearslt%"=="" Goto clearauto
If "%clearslt%"=="1" Goto clearauto1
If "%clearslt%"=="2" Goto clearauto2
If "%clearslt%"=="3" Goto clearauto3
If "%clearslt%"=="4" Goto clearauto4
If "%clearslt%"=="5" Goto clearauto5
If "%clearslt%"=="6" Goto clearauto6
If "%clearslt%"=="7" Goto clearauto7
If "%clearslt%"=="0" Exit


:clearauto1
taskkill /F /IM SocksA.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 /IM tel.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 (
    fsutil fsinfo drivetype %%a: |find /i "固定驅(qū)動器" && (
        For /f "tokens=2 delims==" %%b In (%%a:/autorun.inf) Do Del /a /f /q "%%a:/%%b" >nul 2>nul
        Del /a /f /q %%a:/autorun.inf >nul 2>nul
        ) >nul 2>nul
    fsutil fsinfo drivetype %%a: |find /i "可移動驅(qū)動器" && (
        For /f "tokens=2 delims==" %%b In (%%a:/autorun.inf) Do Del /a /f /q "%%a:/%%b" >nul 2>nul
        Del /a /f /q %%a:/autorun.inf >nul 2>nul
        ) >nul 2>nul
    )
cls
Echo        Autorun 病毒清除完畢,任意鍵返回……
pause>nul
Goto clearauto


:clearauto2
taskkill /F /IM SocksA.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 /IM tel.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 (
    fsutil fsinfo drivetype %%a: |find /i "固定驅(qū)動器" && (
        For /f "tokens=2 delims==" %%b In (%%a:/autorun.inf) Do Del /a /f /q "%%a:/%%b" & md "%%a:/%%b/免疫目錄不要刪除!.../" & attrib +s +h +r "%%a:/%%b" & Echo Y|cacls "%%a:/%%b" /T /C /P everyone:N >nul 2>nul
        Del /a /f /q %%a:/autorun.inf & md "%%a:/autorun.inf/免疫目錄不要刪除!.../" & attrib +s +h +r %%a:/autorun.inf & Echo Y|cacls "%%a:/autorun.inf" /T /C /P everyone:N >nul 2>nul
        ) >nul 2>nul
    fsutil fsinfo drivetype %%a: |find /i "可移動驅(qū)動器" && (
        For /f "tokens=2 delims==" %%b In (%%a:/autorun.inf) Do Del /a /f /q "%%a:/%%b" & md "%%a:/%%b/免疫目錄不要刪除!.../" & attrib +s +h +r "%%a:/%%b" & Echo Y|cacls "%%a:/%%b" /T /C /P everyone:N >nul 2>nul
        Del /a /f /q %%a:/autorun.inf & md "%%a:/autorun.inf/免疫目錄不要刪除!.../" & attrib +s +h +r %%a:/autorun.inf & Echo Y|cacls "%%a:/autorun.inf" /T /C /P everyone:N >nul 2>nul
        ) >nul 2>nul
    )
cls
Echo        Autorun 病毒清除并免疫完畢,任意鍵返回……
pause>nul
Goto clearauto


:clearauto3
cls
Echo.
Echo        正在停止相關(guān)服務(wù)……
Echo.
reg add "HKLM/SOFTWARE/Microsoft/Windows/CurrentVersion/policies/Explorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 0x000000ff /f >nul 2>nul
reg add "HKCU/SOFTWARE/Microsoft/Windows/CurrentVersion/policies/Explorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 0x000000ff /f >nul 2>nul
net stop ShellHWDetection >nul 2>nul
sc config ShellHWDetection start= disabled >nul 2>nul
Rem 添加防止從回收站或仿回收站的目錄中直接運行可執(zhí)行文件的策略
Set REGPATH=HKLM/SOFTWARE/Policies/Microsoft/Windows/Safer/CodeIdentifiers/0/Paths
Set SFLAG=/v SaferFlags /t REG_DWORD /d 0x00000000 /f
Set IDATA=/f /v ItemData /d "?:/Recyc?
reg add %REGPATH%/{00ffa5bf-abe7-4901-aacf-4f58aa31217a} %SFLAG%>nul
reg add %REGPATH%/{00ffa5bf-abe7-4901-aacf-4f58aa31217a} %IDATA%/*/*/*/*.*">nul

reg add %REGPATH%/{41fe7eed-c47a-46f6-840a-240796fd03cf} %SFLAG%>nul
reg add %REGPATH%/{41fe7eed-c47a-46f6-840a-240796fd03cf} %IDATA%/*/*/*.*">nul

reg add %REGPATH%/{4e93c91c-a40e-462e-9b89-3b0832d222d9} %SFLAG%>nul
reg add %REGPATH%/{4e93c91c-a40e-462e-9b89-3b0832d222d9} %IDATA%/*.*">nul

reg add %REGPATH%/{5bfc100b-d3fb-450e-88ec-6819ab56a9ff} %SFLAG%>nul
reg add %REGPATH%/{5bfc100b-d3fb-450e-88ec-6819ab56a9ff} %IDATA%/*/*/*/*.*">nul

reg add %REGPATH%/{5c5e2bcd-7057-43f4-830c-e4361d2afadd} %SFLAG%>nul
reg add %REGPATH%/{5c5e2bcd-7057-43f4-830c-e4361d2afadd} %IDATA%/*.*">nul

reg add %REGPATH%/{5f8ff865-0638-4c6e-98de-923e7bc6b330} %SFLAG%>nul
reg add %REGPATH%/{5f8ff865-0638-4c6e-98de-923e7bc6b330} %IDATA%/*/*/*.*">nul

reg add %REGPATH%/{649c1429-0e79-453c-abe9-b5682e035ae7} %SFLAG%>nul
reg add %REGPATH%/{649c1429-0e79-453c-abe9-b5682e035ae7} %IDATA%/*/*.*">nul

reg add %REGPATH%/{718f54b2-c669-4d7b-aeff-18d69f100034} %SFLAG%>nul
reg add %REGPATH%/{718f54b2-c669-4d7b-aeff-18d69f100034} %IDATA%/*/*.*">nul

reg add %REGPATH%/{8385d9d2-80c9-4ac1-a100-ed3e62863d97} %SFLAG%>nul
reg add %REGPATH%/{8385d9d2-80c9-4ac1-a100-ed3e62863d97} %IDATA%/*.*">nul

reg add %REGPATH%/{af2a4fcf-441c-421e-9663-52cd3502cfd7} %SFLAG%>nul
reg add %REGPATH%/{af2a4fcf-441c-421e-9663-52cd3502cfd7} %IDATA%/*/*/*.*">nul

reg add %REGPATH%/{b997f4b2-c037-4e97-b051-31f5d86df802} %SFLAG%>nul
reg add %REGPATH%/{b997f4b2-c037-4e97-b051-31f5d86df802} %IDATA%/*/*.*">nul

reg add %REGPATH%/{d4e7b6ff-d76f-407f-b8bb-ea0835f5babc} %SFLAG%>nul
reg add %REGPATH%/{d4e7b6ff-d76f-407f-b8bb-ea0835f5babc} /f /v ItemData /d "RECYC*.*">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 (
    For %%b In (exe pif com) Do (
        Echo Y|cacls "%%a:/Recycler/*.%%b" /C /T /P everyone:F>nul 2>nul&Echo Y|cacls "%%a:/Recycled/*.%%b" /C /T /P everyone:F>nul 2>nul&Echo Y|cacls "%%a:/Recycled/Recycled/*.%%b" /C /T /P everyone:F>nul 2>nul
        Del /A /F /S /Q "%%a:/Recycler/*.%%b">nul 2>nul&Del /A /F /S /Q "%%a:/Recycled/*.%%b">nul 2>nul&Del /A /F /S /Q "%%a:/Recycled/Recycled/*.%%b">nul 2>nul
        )
    )>nul 2>nul
Echo.
Echo        相關(guān)服務(wù)已停止并禁用,任意鍵返回……
pause >nul
Goto clearauto


:clearauto4
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 (
    fsutil fsinfo drivetype %%a: |find /i "固定驅(qū)動器" && (
        cacls "%%a:/autorun.inf" /T /C /P everyone:F&Del /a /f /q "%%a:/autorun.inf" & rd /s /q "%%a:/autorun.inf">nul 2>nul
        )>nul 2>nul
    fsutil fsinfo drivetype %%a: |find /i "可移動驅(qū)動器" && (
        cacls "%%a:/autorun.inf" /T /C /P everyone:F&Del /a /f /q "%%a:/autorun.inf" & rd /s /q "%%a:/autorun.inf">nul 2>nul
        )>nul 2>nul
    )
cls
Echo.
Echo        已經(jīng)解除全部盤符的免疫,任意鍵返回……
pause>nul
Goto clearauto



:clearauto5
cls
Echo.
Set /p pf=        請輸入盤符,如"F:"(不包括引號)
Echo         即將免疫%pf%盤……|find /i ":"||Set pf=%pf%:&&Echo         即將免疫%pf%盤……
taskkill /F /IM SocksA.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 /IM tel.xls.exe>nul 2>nul
fsutil fsinfo drivetype %pf% |find /i "固定驅(qū)動器" && (
    For /f "tokens=2 delims==" %%a In (%pf%/autorun.inf) Do Del /a /f /q "%pf%/%%a" & md "%pf%/%%a/免疫目錄不要刪除!.../" & attrib +s +h +r "%pf%/%%a" & Echo Y|cacls "%pf%/%%a" /T /C /P everyone:N >nul 2>nul
    Del /a /f /q %pf%/autorun.inf & md "%pf%/autorun.inf/免疫目錄不要刪除!.../" & attrib +s +h +r %pf%/autorun.inf & Echo Y|cacls "%pf%/autorun.inf" /T /C /P everyone:N >nul 2>nul
    Goto DoneclearAuto
    ) >nul 2>nul
fsutil fsinfo drivetype %pf% |find /i "可移動驅(qū)動器" && (
    For /f "tokens=2 delims==" %%a In (%pf%/autorun.inf) Do Del /a /f /q "%pf%/%%a" & md "%pf%/%%a/免疫目錄不要刪除!.../" & attrib +s +h +r "%pf%/%%a" & Echo Y|cacls "%pf%/%%a" /T /C /P everyone:N >nul 2>nul
    Del /a /f /q %pf%/autorun.inf & md "%pf%/autorun.inf/免疫目錄不要刪除!.../" & attrib +s +h +r %pf%/autorun.inf & Echo Y|cacls "%pf%/autorun.inf" /T /C /P everyone:N >nul 2>nul
    Goto DoneclearAuto
    ) >nul 2>nul
Echo.
Echo        您所輸入的盤符不存在或者是只讀設(shè)備,
Echo        請重新輸入
Goto clearauto5

:DoneclearAuto
cls
Echo.
Echo        指定的磁盤 %pf% 已經(jīng)成功進(jìn)行了 Autorun 病毒的清除及免疫
Echo.
Echo        [1] 繼續(xù)免疫其他磁盤
Echo        [0] 返回主菜單
Set /p choice=        請輸入您的選擇(1/0):
If %choice%="" Goto DoneclearAuto
If %choice%="1" Goto clearauto5
If %choice%="0" Goto clearauto



:clearauto6
cls
Echo.
Set /p pf=        請輸入盤符,如"F:"(不包括引號)
Echo         即將取消免疫%pf%盤……|find /i ":"||Set pf=%pf%:&&Echo         即將取消免疫%pf%盤……
fsutil fsinfo drivetype %pf% |find /i "固定驅(qū)動器" && (
    cacls "%pf%/autorun.inf" /T /C /P everyone:F&Del /a /f /q "%pf%/autorun.inf" & rd /s /q "%pf%/autorun.inf">nul 2>nul
    Goto DoneUnauto
    )>nul 2>nul
fsutil fsinfo drivetype %pf% |find /i "可移動驅(qū)動器" && (
    cacls "%pf%/autorun.inf" /T /C /P everyone:F&Del /a /f /q "%pf%/autorun.inf" & rd /s /q "%pf%/autorun.inf">nul 2>nul
    Goto DoneUnauto
    )>nul 2>nul
Echo.
Echo        您所輸入的盤符不存在或者是只讀設(shè)備,
Echo        請重新輸入
Goto clearauto6

:DoneUnauto
cls
Echo.
Echo        指定的磁盤 %pf% 已經(jīng)成功解除了 Autorun 病毒免疫
Echo.
Echo        [1] 繼續(xù)解除免疫其他磁盤
Echo        [0] 返回主菜單
Set choice=
Set /p choice=        請輸入您的選擇(1/0):
If %choice%="" Goto DoneUnauto
If %choice%="1" Goto clearauto6
If %choice%="0" Goto clearauto



:clearauto7
cls
Rem 防止在資源管理器中徹底隱藏文件、禁止文件等
reg add "HKLM/SOFTWARE/Microsoft/Windows/CurrentVersion/Explorer/Advanced/Folder/Hidden/SHOWALL" /v CheckedValue /t REG_DWORD /d 0x00000001 /f>nul 2>nul
reg delete "HKCU/Software/Microsoft/Windows/CurrentVersion/Explorer/MountPoints2" /f>nul 2>nul
reg delete "HKCU/Software/Microsoft/Windows/CurrentVersion/Policies/Explorer/DisallowRun" /f>nul 2>nul
reg delete "HKCU/Software/Microsoft/Windows/CurrentVersion/Policies/Explorer" /v DisallowRun /f>nul 2>nul
Rem 防止轉(zhuǎn)移啟動組位置
reg add "HKCU/Software/Microsoft/Windows/CurrentVersion/Explorer/Shell Folders" /v Startup /d "%USERPROFILE%/「開始」菜單/程序/啟動" /f>nul 2>nul
reg add "HKCU/Software/Microsoft/Windows/CurrentVersion/Explorer/Shell Folders" /v "Common Startup" /d "%ALLUSERSPROFILE%/「開始」菜單/程序/啟動" /f>nul 2>nul
Echo.
Echo        相關(guān)注冊表恢復(fù)完畢,任意鍵返回……
pause>nul
Goto clearauto
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 欧美 国产 综合 | 成年人黄色免费电影 | 国产美女视频免费 | 午夜精品影院 | 麻豆19禁国产青草精品 | 黄色片网站免费在线观看 | 操碰网 | 成人在线观看免费视频 | av黄色片网站 | 久久久国产精品免费观看 | 国产亚洲精彩视频 | 精品爱爱 | 国产免费高清在线视频 | 毛片在线免费视频 | 国产精品成人一区 | 国产亚洲黑人性受xxxx精品 | 亚洲aⅴ免费在线观看 | 一级黄色性感片 | 亚洲天堂字幕 | 国产精品高潮视频 | 免费观看视频91 | 末成年女av片一区二区 | 国产精品一区二区三区在线 | 综合网天天色 | 国产va在线观看免费 | 国产成人小视频在线观看 | 国产亚洲精品久久久久久久 | 羞羞视频一区 | 欧洲伊人网 | 亚洲第五色综合网 | 欧美a视频| 叉逼视频| 欧美一级做一级爱a做片性 91在线视频观看 | 中文字幕涩涩久久乱小说 | 污黄视频在线观看 | 狠狠操天天射 | 欧美日日操 | 国产又粗又爽又深的免费视频 | 看片一区 | 欧美日韩亚洲一区二区三区 | 国产成人精品午夜视频' |