Skip to content

Commit 994b89d

Browse files
committed
checks for new service
1 parent 9e193a7 commit 994b89d

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

service_goodbye_discord.bat

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
@echo off
2+
chcp 65001 >nul
3+
:: 65001 - UTF-8
4+
5+
:: Path check
6+
set scriptPath=%~dp0
7+
set "path_no_spaces=%scriptPath: =%"
8+
if not "%scriptPath%"=="%path_no_spaces%" (
9+
echo Путь содержит пробелы.
10+
echo Пожалуйста, переместите скрипт в директорию без пробелов.
11+
pause
12+
exit /b
13+
)
14+
15+
:: Admin rights check
16+
net session >nul 2>&1
17+
if %errorLevel% neq 0 (
18+
echo Скрипт запущен без прав администратора.
19+
echo Запустите от имени администратора.
20+
pause
21+
exit /b
22+
)
23+
124
set BIN=%~dp0bin\
225
set ARGS=--wf-tcp=443 --wf-udp=443,50000-65535 ^
326
--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 ^
@@ -10,4 +33,6 @@ net stop "%SRVCNAME%"
1033
sc delete "%SRVCNAME%"
1134
sc create "%SRVCNAME%" binPath= "%BIN%winws.exe %ARGS%" DisplayName= "zapret DPI bypass : winws1" start= auto depend= "GoodbyeDPI"
1235
sc description "%SRVCNAME%" "zapret DPI bypass software"
13-
sc start "%SRVCNAME%"
36+
sc start "%SRVCNAME%"
37+
38+
pause

0 commit comments

Comments
 (0)