mirror of
https://github.com/bol-van/zapret-win-bundle.git
synced 2026-09-22 22:48:09 +03:00
bundle
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,47 @@
|
||||
@echo off
|
||||
|
||||
cd /d "%~dp0"
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
if [%1] == [install] goto :install
|
||||
|
||||
if %PROCESSOR_ARCHITECTURE%==ARM64 (
|
||||
FOR /F "tokens=3 skip=2 USEBACKQ" %%B IN (`reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentBuild`) do set BUILD=!BUILD!%%B
|
||||
if defined BUILD (
|
||||
goto :build
|
||||
) else (
|
||||
echo could not get OS build number
|
||||
)
|
||||
) else (
|
||||
echo this works only on ARM64
|
||||
)
|
||||
goto :ex
|
||||
|
||||
:build
|
||||
echo OS build number %BUILD%
|
||||
if !BUILD! GEQ 22000 (
|
||||
"%~dp0..\tools\elevator" "%~dpf0" install
|
||||
goto :eof
|
||||
) else (
|
||||
echo only windows 11 or higher is supported
|
||||
)
|
||||
goto :ex
|
||||
|
||||
:install
|
||||
echo stopping windivert driver
|
||||
net stop windivert 2>nul
|
||||
echo setting testsigning on
|
||||
bcdedit /set {current} testsigning on
|
||||
echo replacing WinDivert64.sys with unsigned ARM64 version
|
||||
copy WinDivert64.sys ..\zapret-winws
|
||||
copy WinDivert64.sys ..\blockcheck\zapret\nfq
|
||||
copy WinDivert64.sys ..\blockcheck\zapret2\nfq2
|
||||
echo copying ip2net and mdig
|
||||
copy ip2net.exe ..\blockcheck\zapret\ip2net
|
||||
copy ip2net.exe ..\blockcheck\zapret2\ip2net
|
||||
copy mdig.exe ..\blockcheck\zapret\mdig
|
||||
copy mdig.exe ..\blockcheck\zapret2\mdig
|
||||
echo DONE. now reboot if testsigning was not enabled earlier.
|
||||
|
||||
:ex
|
||||
pause
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user