听说LPK.DLL 是勒索病毒。其实系统自带也有这个文件。下面的排除系统目录。- @echo off
- ::UAC
- >nul 2>&1 "%Windir%\system32\cacls.exe" "%Windir%\system32\config\system"
- if %errorlevel% NEQ 0 (echo UAC……& goto UACPrompt) else goto gotAdmin
- :UACPrompt
- echo Set UAC = CreateObject^("Shell.Application"^) > "%Temp%\getadmin.vbs"
- echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%Temp%\getadmin.vbs"
- "%Temp%\getadmin.vbs"
- exit /B
- :gotAdmin
- del /f /q "%Temp%\getadmin.vbs">nul 2>&1
-
- for %%a in (C D E) do (
- echo 检查 %%a 盘中...
- for /f "delims=" %%c in ('dir/a-d/b/s "%%a:\lpk.dll"') do (
- if exist "%%c" (
- echo %%c|findstr /iv "System32 SysWOW64 WinSxS" && (
- takeown /f "%%c"
- icacls "%%c" /grant administrators:F
- attrib -r -s -h "%%c"
- del /q /f "%%c"
- )
- )
- )
- )
- pause
复制代码
|