望可以移动到原创板块\安全相关复制代码
- @echo off
- md 修复>nul 2>nul
- title Synaptics病毒专杀工具
- color a
- :: 事情是这样的,LJY4.0在网上冲浪时,
- :: 遇到了Synaptics蠕虫病毒,
- :: 差点殃及到他收藏的150个病毒文件,
- :: ^(因为他是up主,所以收藏病毒^)
- :: 幸好他看过很多病毒视频
- :: 删除病毒并修复了染毒文件
- :: 他一气之下,写出了这个修复
- :: 程序!
- :: 欢迎报告已知Bug 原创
- :: 仅在B站和BatHome发
- :主页
- cls
- echo.
- echo. 1.删除病毒
- echo. 2.删除病毒并修复文件
- echo. 3.找出染毒列表
- echo. 4.删除病毒,找出染毒列表并修复文件[推荐]
- echo 5.手动选择^(单选^)
- echo. 6.退出
- echo.
- echo. 注意:修复染毒文件过程需要运行.exe文件
- echo.
- set /p 选项=
- if "%选项%"=="1" goto 仅删除病毒
- if "%选项%"=="2" goto 删除病毒并修复文件
- if "%选项%"=="3" goto 找出染毒列表
- if "%选项%"=="4" goto all
- if "%选项%"=="5" goto 手动选择
- if "%选项%"=="6" exit
- goto 主页
- :仅删除病毒
- cls
- taskkill /f /im Synaptics.exe
- attrib -s -h -a %systemdrive%\ProgramData
- attrib -s -h -a %systemdrive%\ProgramData\Synaptics
- attrib -s -h -a %systemdrive%\ProgramData\Synaptics\Synaptics.exe
- del /f/s/q %systemdrive%\ProgramData\Synaptics\Synaptics.exe
- cd.>%systemdrive%\ProgramData\Synaptics\Synaptics.exe
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d System
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Administrator
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Admin
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Administratords
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Users
- cacls %systemdrive%\ProgramData\Synaptics /e /d System
- cacls %systemdrive%\ProgramData\Synaptics /e /d Administrator
- cacls %systemdrive%\ProgramData\Synaptics /e /d Admin
- cacls %systemdrive%\ProgramData\Synaptics /e /d Administratords
- cacls %systemdrive%\ProgramData\Synaptics /e /d Users
- cacls %systemdrive%\ProgramData\Synaptics /e /d everyone
- attrib +s +h +a %systemdrive%\ProgramData
- cls
- echo 完成!
- puase>nul
- goto 主页
- :删除病毒并修复文件
- taskkill /f /im Synaptics.exe
- attrib -s -h -a %systemdrive%\ProgramData
- attrib -s -h -a %systemdrive%\ProgramData\Synaptics
- attrib -s -h -a %systemdrive%\ProgramData\Synaptics\Synaptics.exe
- del /f/s/q %systemdrive%\ProgramData\Synaptics\Synaptics.exe
- cd.>%systemdrive%\ProgramData\Synaptics\Synaptics.exe
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d System
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Administrator
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Admin
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Administratords
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Users
- cacls %systemdrive%\ProgramData\Synaptics /e /d System
- cacls %systemdrive%\ProgramData\Synaptics /e /d Administrator
- cacls %systemdrive%\ProgramData\Synaptics /e /d Admin
- cacls %systemdrive%\ProgramData\Synaptics /e /d Administratords
- cacls %systemdrive%\ProgramData\Synaptics /e /d Users
- cacls %systemdrive%\ProgramData\Synaptics /e /d everyone
- attrib +s +h +a %systemdrive%\ProgramData
- cls
- set /p 盘符=请输入路径^&盘符(多个用空格分割)[格式:D:]:
- for %%a in (%盘符%) do (
- for /f "delims=" %%b in ('dir /b/s/a-d %%a\*.exe') do (
- for /f "delims=" %%c in ('powershell -c "[System.Diagnostics.FileVersionInfo]::GetVersionInfo('%%b').FileDescription"') do (
- if "%%c"=="Synaptics Pointing Device Driver" call :kill "%%b"
- echo %%a %%b %%c
- )))
- cls
- echo 完成!
- pause>nul
- goto 主页
- :找出染毒列表
- cls
- cd.>list.txt
- set /p 盘符=请输入路径^&盘符(多个用空格分割)[格式:D:]:
- for %%a in (%盘符%) do (
- for /f "delims=" %%b in ('dir /b/s/a-d %%a\*.exe') do (
- for /f "delims=" %%c in ('powershell -c "[System.Diagnostics.FileVersionInfo]::GetVersionInfo('%%b').FileDescription"') do (
- echo %%a %%b %%c
- if "%%c"=="Synaptics Pointing Device Driver" echo %%b>>list.txt
- )))
- cls
- echo 完成!
- pause>nul
- goto 主页
- :all
- cls
- taskkill /f /im Synaptics.exe
- cd.>list.txt
- attrib -s -h -a %systemdrive%\ProgramData
- attrib -s -h -a %systemdrive%\ProgramData\Synaptics
- attrib -s -h -a %systemdrive%\ProgramData\Synaptics\Synaptics.exe
- del /f/s/q %systemdrive%\ProgramData\Synaptics\Synaptics.exe
- cd.>%systemdrive%\ProgramData\Synaptics\Synaptics.exe
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d System
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Administrator
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Admin
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Administratords
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Users
- cacls %systemdrive%\ProgramData\Synaptics /e /d System
- cacls %systemdrive%\ProgramData\Synaptics /e /d Administrator
- cacls %systemdrive%\ProgramData\Synaptics /e /d Admin
- cacls %systemdrive%\ProgramData\Synaptics /e /d Administratords
- cacls %systemdrive%\ProgramData\Synaptics /e /d Users
- cacls %systemdrive%\ProgramData\Synaptics /e /d everyone
- attrib +s +h +a %systemdrive%\ProgramData
- cls
- set /p 盘符=请输入桌面和运行病毒的盘符(多个用空格分割):
- for %%a in (%盘符%) do (
- for /f "delims=" %%b in ('dir /b/s/a-d %%a\*.exe') do (
- for /f "delims=" %%c in ('powershell -c "[System.Diagnostics.FileVersionInfo]::GetVersionInfo('%%b').FileDescription"') do (
- if "%%c"=="Synaptics Pointing Device Driver" call :kill "%%b"&echo %%b>list.txt
- echo %%a %%b %%c
- )))
- cls
- echo 完成!
- pause>nul
- goto 主页
- :手动选择
- cls
- taskkill /f /im Synaptics.exe
- cd.>list.txt
- attrib -s -h -a %systemdrive%\ProgramData
- attrib -s -h -a %systemdrive%\ProgramData\Synaptics
- attrib -s -h -a %systemdrive%\ProgramData\Synaptics\Synaptics.exe
- del /f/s/q %systemdrive%\ProgramData\Synaptics\Synaptics.exe
- cd.>%systemdrive%\ProgramData\Synaptics\Synaptics.exe
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d System
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Administrator
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Admin
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Administratords
- cacls %systemdrive%\ProgramData\Synaptics\Synaptics.exe /e /d Users
- cacls %systemdrive%\ProgramData\Synaptics /e /d System
- cacls %systemdrive%\ProgramData\Synaptics /e /d Administrator
- cacls %systemdrive%\ProgramData\Synaptics /e /d Admin
- cacls %systemdrive%\ProgramData\Synaptics /e /d Administratords
- cacls %systemdrive%\ProgramData\Synaptics /e /d Users
- cacls %systemdrive%\ProgramData\Synaptics /e /d everyone
- attrib +s +h +a %systemdrive%\ProgramData
- cls
- set /p 手动选择=
- call :kill "%手动选择%"
- cls
- echo OK!
- pause>nul
- goto 主页
- :kill
- cls
- start "" "%~1"
- for %%a in ("%~1") do set "File=%%~nxa"
- for %%I in ("%~1") do set "Phat_File=%%~dpI"
- attrib -h -s -a ._cache_%File%
- :kill2
- if not exist ._cache_%File% goto kill2
- taskkill /t /f /im "%File%"
- taskkill /t /f /im "._cache_%File%"
- del /f /q "%~1"
- move "._cache_%File%" "%~dp0\修复"
- goto :eof
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |