mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2025-04-22 10:31:25 -07:00
checks for new service
This commit is contained in:
parent
9e193a7489
commit
994b89dc2d
@ -1,3 +1,26 @@
|
|||||||
|
@echo off
|
||||||
|
chcp 65001 >nul
|
||||||
|
:: 65001 - UTF-8
|
||||||
|
|
||||||
|
:: Path check
|
||||||
|
set scriptPath=%~dp0
|
||||||
|
set "path_no_spaces=%scriptPath: =%"
|
||||||
|
if not "%scriptPath%"=="%path_no_spaces%" (
|
||||||
|
echo Путь содержит пробелы.
|
||||||
|
echo Пожалуйста, переместите скрипт в директорию без пробелов.
|
||||||
|
pause
|
||||||
|
exit /b
|
||||||
|
)
|
||||||
|
|
||||||
|
:: Admin rights check
|
||||||
|
net session >nul 2>&1
|
||||||
|
if %errorLevel% neq 0 (
|
||||||
|
echo Скрипт запущен без прав администратора.
|
||||||
|
echo Запустите от имени администратора.
|
||||||
|
pause
|
||||||
|
exit /b
|
||||||
|
)
|
||||||
|
|
||||||
set BIN=%~dp0bin\
|
set BIN=%~dp0bin\
|
||||||
set ARGS=--wf-tcp=443 --wf-udp=443,50000-65535 ^
|
set ARGS=--wf-tcp=443 --wf-udp=443,50000-65535 ^
|
||||||
--filter-udp=443 --hostlist=\"%~dp0list-discord.txt\" --dpi-desync=fake --dpi-desync-udplen-increment=10 --dpi-desync-repeats=6 --dpi-desync-udplen-pattern=0xDEADBEEF --dpi-desync-fake-quic=\"%BIN%quic_initial_www_google_com.bin\" --new ^
|
--filter-udp=443 --hostlist=\"%~dp0list-discord.txt\" --dpi-desync=fake --dpi-desync-udplen-increment=10 --dpi-desync-repeats=6 --dpi-desync-udplen-pattern=0xDEADBEEF --dpi-desync-fake-quic=\"%BIN%quic_initial_www_google_com.bin\" --new ^
|
||||||
@ -11,3 +34,5 @@ sc delete "%SRVCNAME%"
|
|||||||
sc create "%SRVCNAME%" binPath= "%BIN%winws.exe %ARGS%" DisplayName= "zapret DPI bypass : winws1" start= auto depend= "GoodbyeDPI"
|
sc create "%SRVCNAME%" binPath= "%BIN%winws.exe %ARGS%" DisplayName= "zapret DPI bypass : winws1" start= auto depend= "GoodbyeDPI"
|
||||||
sc description "%SRVCNAME%" "zapret DPI bypass software"
|
sc description "%SRVCNAME%" "zapret DPI bypass software"
|
||||||
sc start "%SRVCNAME%"
|
sc start "%SRVCNAME%"
|
||||||
|
|
||||||
|
pause
|
Loading…
Reference in New Issue
Block a user