mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2024-11-16 13:34:31 +01:00
better check for malware if sppsvc.exe is not found
This commit is contained in:
parent
b0d898973f
commit
117ba004f0
@ -1084,7 +1084,11 @@ reg query HKLM\SYSTEM\CurrentControlSet\Services\%%# /v %%G %nul% || (set _corru
|
|||||||
if %wucount% GEQ 1 set "results=%results%[WU registry is corrupt]"
|
if %wucount% GEQ 1 set "results=%results%[WU registry is corrupt]"
|
||||||
|
|
||||||
sc start sppsvc %nul%
|
sc start sppsvc %nul%
|
||||||
echo "%errorlevel%" | findstr "577 225" %nul% && set "results=%results%[Likely File Infector]"
|
echo "%errorlevel%" | findstr "577 225" %nul% && (
|
||||||
|
set "results=%results%[Likely File Infector]"
|
||||||
|
) || (
|
||||||
|
if not exist %SysPath%\sppsvc.exe if not exist %SysPath%\alg.exe (set "results=%results%[Likely File Infector]")
|
||||||
|
)
|
||||||
|
|
||||||
if not "%results%%pupfound%"=="" (
|
if not "%results%%pupfound%"=="" (
|
||||||
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
||||||
|
@ -1227,7 +1227,11 @@ reg query HKLM\SYSTEM\CurrentControlSet\Services\%%# /v %%G %nul% || (set _corru
|
|||||||
if %wucount% GEQ 1 set "results=%results%[WU registry is corrupt]"
|
if %wucount% GEQ 1 set "results=%results%[WU registry is corrupt]"
|
||||||
|
|
||||||
sc start sppsvc %nul%
|
sc start sppsvc %nul%
|
||||||
echo "%errorlevel%" | findstr "577 225" %nul% && set "results=%results%[Likely File Infector]"
|
echo "%errorlevel%" | findstr "577 225" %nul% && (
|
||||||
|
set "results=%results%[Likely File Infector]"
|
||||||
|
) || (
|
||||||
|
if not exist %SysPath%\sppsvc.exe if not exist %SysPath%\alg.exe (set "results=%results%[Likely File Infector]")
|
||||||
|
)
|
||||||
|
|
||||||
if not "%results%%pupfound%"=="" (
|
if not "%results%%pupfound%"=="" (
|
||||||
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
||||||
|
@ -1534,7 +1534,11 @@ reg query HKLM\SYSTEM\CurrentControlSet\Services\%%# /v %%G %nul% || (set _corru
|
|||||||
if %wucount% GEQ 1 set "results=%results%[WU registry is corrupt]"
|
if %wucount% GEQ 1 set "results=%results%[WU registry is corrupt]"
|
||||||
|
|
||||||
sc start sppsvc %nul%
|
sc start sppsvc %nul%
|
||||||
echo "%errorlevel%" | findstr "577 225" %nul% && set "results=%results%[Likely File Infector]"
|
echo "%errorlevel%" | findstr "577 225" %nul% && (
|
||||||
|
set "results=%results%[Likely File Infector]"
|
||||||
|
) || (
|
||||||
|
if not exist %SysPath%\sppsvc.exe if not exist %SysPath%\alg.exe (set "results=%results%[Likely File Infector]")
|
||||||
|
)
|
||||||
|
|
||||||
if not "%results%%pupfound%"=="" (
|
if not "%results%%pupfound%"=="" (
|
||||||
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
||||||
|
@ -2557,7 +2557,11 @@ reg query HKLM\SYSTEM\CurrentControlSet\Services\%%# /v %%G %nul% || (set _corru
|
|||||||
if %wucount% GEQ 1 set "results=%results%[WU registry is corrupt]"
|
if %wucount% GEQ 1 set "results=%results%[WU registry is corrupt]"
|
||||||
|
|
||||||
sc start sppsvc %nul%
|
sc start sppsvc %nul%
|
||||||
echo "%errorlevel%" | findstr "577 225" %nul% && set "results=%results%[Likely File Infector]"
|
echo "%errorlevel%" | findstr "577 225" %nul% && (
|
||||||
|
set "results=%results%[Likely File Infector]"
|
||||||
|
) || (
|
||||||
|
if not exist %SysPath%\sppsvc.exe if not exist %SysPath%\alg.exe (set "results=%results%[Likely File Infector]")
|
||||||
|
)
|
||||||
|
|
||||||
if not "%results%%pupfound%"=="" (
|
if not "%results%%pupfound%"=="" (
|
||||||
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
||||||
|
Loading…
Reference in New Issue
Block a user