diff options
Diffstat (limited to 'res')
| -rw-r--r-- | res/windows_bats/service_install.bat | 27 | ||||
| -rw-r--r-- | res/windows_bats/service_remove.bat | 22 |
2 files changed, 49 insertions, 0 deletions
diff --git a/res/windows_bats/service_install.bat b/res/windows_bats/service_install.bat new file mode 100644 index 0000000..327f37e --- /dev/null +++ b/res/windows_bats/service_install.bat @@ -0,0 +1,27 @@ +@REM SPDX-FileCopyrightText: 2026 Dilluti0n <[email protected]> +@REM SPDX-License-Identifier: GPL-3.0-or-later + +@echo Please run this script with administrator privileges. +@echo Right click, select "Run as administrator". +@echo. +@echo Press any key if you are running this as administrator. +@pause + +@set "ARGS=-D --fake-ttl 8 --fake-autottl" +@set "EXE=%~dp0dpibreak.exe" +@set "SERVNAME=dpibreak" + +sc stop %SERVNAME% +sc delete %SERVNAME% +sc create %SERVNAME% binPath= "\"%EXE%\" %ARGS%" start= auto +sc description %SERVNAME% "Simple and efficient DPI circumvention tool in Rust." +sc start %SERVNAME% +@if %ERRORLEVEL% equ 0 ( + @echo. + @echo Installation complete. %SERVNAME% is running and will start automatically on boot. + @echo To stop and uninstall the service, run service_remove.bat. +) else ( + @echo. + @echo Installation failed. Make sure to run this script as administrator. +) +@pause diff --git a/res/windows_bats/service_remove.bat b/res/windows_bats/service_remove.bat new file mode 100644 index 0000000..1eb8183 --- /dev/null +++ b/res/windows_bats/service_remove.bat @@ -0,0 +1,22 @@ +@REM SPDX-FileCopyrightText: 2026 Dilluti0n <[email protected]> +@REM SPDX-License-Identifier: GPL-3.0-or-later + +@echo Please run this script with administrator privileges. +@echo Right click, select "Run as administrator". +@echo. +@echo Press any key if you are running this as administrator. +@pause + +@set "SERVNAME=dpibreak" + +sc stop %SERVNAME% +sc delete %SERVNAME% +@if %ERRORLEVEL% equ 0 ( + @echo. + @echo Service %SERVNAME% removed successfully. + @sc stop windivert >nul 2>&1 +) else ( + @echo. + @echo Service %SERVNAME% not found or already removed. +) +@pause |
