@echo off setlocal enabledelayedexpansion REM 提升为管理员权限(需保存为.bat运行) NET FILE >NUL2>&1 || (powershell -Command "Start-Process '%~f0' -Verb RunAs" & exit b) REM ██████ 终止进程并删除驱动文件 ██████ taskkill F IM spo0lsv.exe >nul2>&1 ifexist "C:\windows\System32\drivers\spo0lsv.exe" ( attrib -H -S "C:\windows\System32\drivers\spo0lsv.exe" >nul2>&1 del F Q "C:\windows\System32\drivers\spo0lsv.exe" >nul2>&1 echo 已删除 spo0lsv.exe ) REM ██████ 遍历所有盘符删除隐藏的病毒文件 ██████ for f "skip=1" %%din ('wmic logicaldisk where "DriveType=2 OR DriveType=3" get name') do ( set "drive=%%d" ifdefined drive ( echo 深度扫描盘符: !drive! REM ─── 处理根目录隐藏文件 ─── for%%fin ("!drive!\setup.exe" "!drive!\autorun.inf") do ( ifexist%%f ( attrib -H -S -A %%f >nul2>&1 del F Q %%f >nul2>&1 echo 已清除根目录隐藏文件: %%f ) ) REM ─── 递归处理子目录(含隐藏文件)─── for f "delims=" %%fin ('dir!drive!\* s b a:-d a:h 2^>nul ^| findstr i "\\setup.exe$ \\autorun.inf$"') do ( set "filepath=%%f" REM 排除系统关键路径 ifnot "!filepath:\Windows\=!"=="!filepath!" ( echo 跳过系统文件: %%f ) elseifnot "!filepath:\Program Files\=!"=="!filepath!" ( echo 跳过程序文件: %%f ) else ( attrib -H -S "%%f" >nul2>&1 del F Q "%%f" >nul2>&1 echo 已删除隐藏病毒文件: %%f ) ) ) )
:: 全盘遍历所有Desktop_.ini(严格匹配带下划线的文件名) set "drive=C:" REM 递归搜索并强制删除所有隐藏的Desktop_.ini文件 for f "delims=" %%fin ('dir a:h s b "%drive%\Desktop_.ini"') do ( del F Q A:H "%%f" >nul2>&1 ifexist "%%f" ( echo 删除失败(可能被占用或权限不足): %%f ) else ( echo 已删除: %%f ) ) REM ██████ 注册表修复 ██████ reg delete "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\svcshare" f >nul2>&1 reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL\CheckedValue" f >nul2>&1 echo 注册表修复完成