File size: 4,860 Bytes
605b148 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
@ECHO OFF
::2021-11-02
set /a _Debug=0
::================================================================================================
:: Run Script as Administrator
set _Args=%*
if "%~1" NEQ "" (
set _Args=%_Args:"=%
)
fltmc 1>nul 2>nul || (
cd /d "%~dp0"
cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~dp0"" && ""%~dpnx0"" ""%_Args%""", "", "runas", 1 > "%temp%\GetAdmin.vbs"
"%temp%\GetAdmin.vbs"
del /f /q "%temp%\GetAdmin.vbs" 1>nul 2>nul
exit
)
::================================================================================================
@SHIFT /0
CLS
TITLE Piriform Blocker Key Verificator
color a
ECHO.
ECHO - Piriform Blocker Key Verificator...
ECHO.
ECHO - Editing the hosts file with string "127.0.0.1 license.piriform.com"
ECHO - Editing the hosts file with string "127.0.0.1 www.license.piriform.com"
ECHO - Editing the hosts file with string "127.0.0.1 speccy.piriform.com"
ECHO - Editing the hosts file with string "127.0.0.1 www.speccy.piriform.com"
ECHO - Editing the hosts file with string "127.0.0.1 recuva.piriform.com"
ECHO - Editing the hosts file with string "127.0.0.1 www.recuva.piriform.com"
ECHO - Editing the hosts file with string "127.0.0.1 defraggler.piriform.com"
ECHO - Editing the hosts file with string "127.0.0.1 www.defraggler.piriform.com"
ECHO - Editing the hosts file with string "127.0.0.1 ccleaner.piriform.com"
ECHO - Editing the hosts file with string "127.0.0.1 www.ccleaner.piriform.com"
ECHO - Editing the hosts file with string "127.0.0.1 license-api.ccleaner.com"
timeout -1
takeown /f "%SystemRoot%\System32\drivers\etc\hosts" /a
icacls "%SystemRoot%\System32\drivers\etc\hosts" /grant administrators:F
attrib -h -r -s "%SystemRoot%\System32\drivers\etc\hosts"
SET NEWLINE=^& echo.
FIND /C /I "# Piriform Blocker Key Verificator" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^# Piriform Blocker Key Verificator>>%WINDIR%\system32\drivers\etc\hosts
SET NEWLINE=^& echo.
FIND /C /I "license.piriform.com" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^127.0.0.1 license.piriform.com>>%WINDIR%\system32\drivers\etc\hosts
SET NEWLINE=^& echo.
FIND /C /I "www.license.piriform.com" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^127.0.0.1 www.license.piriform.com>>%WINDIR%\system32\drivers\etc\hosts
SET NEWLINE=^& echo.
FIND /C /I "speccy.piriform.com" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^127.0.0.1 speccy.piriform.com>>%WINDIR%\system32\drivers\etc\hosts
SET NEWLINE=^& echo.
FIND /C /I "www.speccy.piriform.com" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^127.0.0.1 www.speccy.piriform.com>>%WINDIR%\system32\drivers\etc\hosts
SET NEWLINE=^& echo.
FIND /C /I "recuva.piriform.com" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^127.0.0.1 recuva.piriform.com>>%WINDIR%\system32\drivers\etc\hosts
SET NEWLINE=^& echo.
FIND /C /I "www.recuva.piriform.com" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^127.0.0.1 www.recuva.piriform.com>>%WINDIR%\system32\drivers\etc\hosts
SET NEWLINE=^& echo.
FIND /C /I "defraggler.piriform.com" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^127.0.0.1 defraggler.piriform.com>>%WINDIR%\system32\drivers\etc\hosts
SET NEWLINE=^& echo.
FIND /C /I "www.defraggler.piriform.com" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^127.0.0.1 www.defraggler.piriform.com>>%WINDIR%\system32\drivers\etc\hosts
SET NEWLINE=^& echo.
FIND /C /I "ccleaner.piriform.com" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^127.0.0.1 ccleaner.piriform.com>>%WINDIR%\system32\drivers\etc\hosts
SET NEWLINE=^& echo.
FIND /C /I "www.ccleaner.piriform.com" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^127.0.0.1 www.ccleaner.piriform.com>>%WINDIR%\system32\drivers\etc\hosts
SET NEWLINE=^& echo.
FIND /C /I "license-api.ccleaner.com" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^127.0.0.1 license-api.ccleaner.com>>%WINDIR%\system32\drivers\etc\hosts
attrib +h +r +s "%SystemRoot%\system32\drivers\etc\hosts"
ECHO.
ECHO - Piriform Blocker Key Verificator...
ECHO.
ECHO - DONE
ECHO.
ECHO - Press Any Key To Exit ...
timeout -1
@EXIT
|