@echo off

chcp 65001 >nul

:: 65001 - UTF-8



cd /d "%~dp0..\"

set BIN=%~dp0..\bin\



set LIST_TITLE=ZAPRET: Ultimate Fix ALT MGTS

set LIST_PATH=%~dp0..\lists\list-ultimate.txt

set GMODE_FLAG_FILE=%BIN%gmode.flag

set DISCORD_IPSET_PATH=%~dp0..\lists\ipset-discord.txt

set CLOUDFLARE_IPSET_PATH=%~dp0..\lists\ipset-cloudflare.txt



if exist "%GMODE_FLAG_FILE%" (

    set "GModeStatus=enabled"

    set "GModeRange=1024-65535"

) else (

    set "GModeStatus=disabled"

    set "GModeRange=0"

)





start "%LIST_TITLE%" /min "%BIN%winws.exe" ^

--wf-tcp=80,443 --wf-udp=443,1400,596-599,50000-65535 ^

--filter-udp=443 --hostlist="%LIST_PATH%" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^

--filter-udp=1400,596-599,50000-65535 --ipset="%DISCORD_IPSET_PATH%" --dpi-desync=fake --dpi-desync-any-protocol --dpi-desync-cutoff=d3 --dpi-desync-repeats=6 --new ^

--filter-tcp=80 --hostlist="%LIST_PATH%" --dpi-desync=fake,split2 --dpi-desync-autottl=2 --dpi-desync-fooling=md5sig --new ^

--filter-tcp=443 --hostlist="%LIST_PATH%" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-repeats=6 --dpi-desync-fooling=md5sig --dpi-desync-fake-tls="%BIN%tls_clienthello_www_google_com.bin" ^

--filter-udp=443 --ipset="%CLOUDFLARE_IPSET_PATH%" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^

--filter-tcp=80 --ipset="%CLOUDFLARE_IPSET_PATH%" --dpi-desync=fake,split2 --dpi-desync-autottl=2 --dpi-desync-fooling=md5sig --new ^

--filter-tcp=443 --ipset="%CLOUDFLARE_IPSET_PATH%" --dpi-desync=fake,multidisorder --dpi-desync-split-pos=midsld --dpi-desync-repeats=6 --dpi-desync-fooling=md5sig,badseq
