zapret-discord-youtube/discord_youtube.bat
Shurik24 65670a4d71 Added checks for Cyrillic, spaces, and admin rights
Added some messages for users
2024-10-09 10:26:46 +02:00

39 lines
1.8 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@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
)
:: Cyrillic check
echo %scriptPath% | findstr /r "[А-Яа-яЁё]" >nul
if %errorLevel% equ 0 (
echo Путь содержит кирилицу. Пожалуйста, переместите скрипт в директорию без кириллических символов.
echo Кириллица - Русский алфавит.
pause
exit /b
)
:: Admin rights check
net session >nul 2>&1
if %errorLevel% neq 0 (
echo Запуск от имени администратора...
powershell start -verb runas '%0'
exit /b
)
start "zapret: discord" /min "%~dp0winws.exe" ^
--wf-tcp=80,443,50000-65535 --wf-udp=443,50000-65535 ^
--filter-udp=443 --hostlist="%~dp0list-general.txt" --dpi-desync=fake --dpi-desync-udplen-increment=10 --dpi-desync-repeats=6 --dpi-desync-udplen-pattern=0xDEADBEEF --dpi-desync-fake-quic="%~dp0quic_initial_www_google_com.bin" --new ^
--filter-udp=50000-65535 --dpi-desync=fake,tamper --dpi-desync-any-protocol --dpi-desync-fake-quic="%~dp0quic_initial_www_google_com.bin" --new ^
--filter-tcp=80 --dpi-desync=fake,split2 --dpi-desync-autottl=2 --dpi-desync-fooling=md5sig --new ^
--filter-tcp=443 --hostlist="%~dp0list-general.txt" --dpi-desync=fake,split2 --dpi-desync-autottl=2 --dpi-desync-fooling=md5sig --dpi-desync-fake-tls="%~dp0tls_clienthello_www_google_com.bin" --new ^
--dpi-desync=fake,disorder2 --dpi-desync-autottl=2 --dpi-desync-fooling=md5sig