Skip to content

Commit

Permalink
checks for new service
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowseal committed Oct 9, 2024
1 parent 9e193a7 commit 994b89d
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion service_goodbye_discord.bat
Original file line number Diff line number Diff line change
@@ -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 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 ^
Expand All @@ -10,4 +33,6 @@ net stop "%SRVCNAME%"
sc delete "%SRVCNAME%"
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 start "%SRVCNAME%"
sc start "%SRVCNAME%"

pause

0 comments on commit 994b89d

Please sign in to comment.