mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2025-12-12 14:29:54 +05:00
Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
977561fde8 | ||
|
|
e04dba7d79 | ||
|
|
99ff02c2c2 | ||
|
|
a62c3d661c | ||
|
|
60d73d68ae | ||
|
|
5c35c8810c | ||
|
|
75df64bfe5 | ||
|
|
5fd74d3546 | ||
|
|
0c0e6cf9bb | ||
|
|
06e825c1b2 | ||
|
|
078cec8c2e | ||
|
|
b50d13ba5b | ||
|
|
d39d1050d9 |
12
README.md
12
README.md
@@ -11,9 +11,9 @@
|
||||
Запустите **от имени администратора** то, что вам нужно:
|
||||
- **`discord.bat`** - запустить обход дискорда.
|
||||
- **`general.bat`** - запустить обход дискорда и ютуба.
|
||||
* Если обход не работает, пробуйте по порядку **`general (ALT ..).bat`** (также можете проверить стратегию на **МГТС**)
|
||||
###
|
||||
- **`service_discord.bat`** - запустить обход дискорда и поставить на автозапуск (в сервисах).
|
||||
- **`service_general.bat`** - запустить обход дискорда и ютуба и поставить на автозапуск (в сервисах).
|
||||
- **`service_install.bat`** - установить на автозапуск (в сервисы) любую стратегию из этого репозитория (стратегия **НЕ** должна начинаться со слова `service`)
|
||||
###
|
||||
- **`service_goodbye_discord.bat`** - запустить, если вы используете **СЕРВИС goodbyedpi**, и хотите, чтобы zapret обходил **только discord**.
|
||||
* **ВНИМАНИЕ**: Запускать ПОСЛЕ создания сервиса goodbyedpi. Первый раз goodbyedpi может вылететь - просто перезапустите устройство!
|
||||
@@ -66,7 +66,13 @@ sc delete WinDivert
|
||||
|
||||
If you like the project, leave a :star: (top right) and become a [stargazer](https://github.com/Flowseal/zapret-discord-youtube/stargazers)!
|
||||
|
||||
[](https://github.com/Flowseal/zapret-discord-youtube/stargazers)
|
||||
<a href="https://star-history.com/#Flowseal/zapret-discord-youtube&Date">
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Flowseal/zapret-discord-youtube&type=Date&theme=dark" />
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Flowseal/zapret-discord-youtube&type=Date" />
|
||||
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=Flowseal/zapret-discord-youtube&type=Date" />
|
||||
</picture>
|
||||
</a>
|
||||
|
||||
## Credits & Contributors
|
||||
<p align="left">
|
||||
|
||||
@@ -6,7 +6,7 @@ cd /d "%~dp0"
|
||||
|
||||
set BIN=%~dp0bin\
|
||||
|
||||
start "zapret: discord" /min "%BIN%winws.exe" --wf-tcp=443 --wf-udp=443,50000-65535 ^
|
||||
--filter-udp=443 --hostlist="list-discord.txt" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-udplen-increment=10 --dpi-desync-udplen-pattern=0xDEADBEEF --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
start "zapret: discord" /min "%BIN%winws.exe" --wf-raw="@rules.txt" ^
|
||||
--filter-udp=443 --hostlist="list-discord.txt" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-udp=50000-65535 --dpi-desync=fake --dpi-desync-any-protocol --dpi-desync-cutoff=d3 --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-tcp=443 --hostlist="list-discord.txt" --dpi-desync=fake,split --dpi-desync-autottl=2 --dpi-desync-repeats=6 --dpi-desync-fooling=badseq --dpi-desync-fake-tls="%BIN%tls_clienthello_www_google_com.bin"
|
||||
|
||||
13
general (ALT).bat
Normal file
13
general (ALT).bat
Normal file
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
:: 65001 - UTF-8
|
||||
|
||||
cd /d "%~dp0"
|
||||
|
||||
set BIN=%~dp0bin\
|
||||
|
||||
start "zapret: general" /min "%BIN%winws.exe" --wf-tcp=80,443 --wf-udp=443,50000-50100 ^
|
||||
--filter-udp=443 --hostlist="list-general.txt" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-udp=50000-50100 --dpi-desync=fake --dpi-desync-any-protocol --dpi-desync-cutoff=d3 --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-tcp=80 --hostlist="list-general.txt" --dpi-desync=fake,split2 --dpi-desync-autottl=2 --dpi-desync-fooling=md5sig --new ^
|
||||
--filter-tcp=443 --hostlist="list-general.txt" --dpi-desync=fake,split --dpi-desync-autottl=5 --dpi-desync-repeats=6 --dpi-desync-fooling=badseq --dpi-desync-fake-tls="%BIN%tls_clienthello_www_google_com.bin"
|
||||
13
general (ALT2).bat
Normal file
13
general (ALT2).bat
Normal file
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
:: 65001 - UTF-8
|
||||
|
||||
cd /d "%~dp0"
|
||||
|
||||
set BIN=%~dp0bin\
|
||||
|
||||
start "zapret: general" /min "%BIN%winws.exe" --wf-tcp=80,443 --wf-udp=443,50000-50100 ^
|
||||
--filter-udp=443 --hostlist="list-general.txt" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-udp=50000-50100 --dpi-desync=fake --dpi-desync-any-protocol --dpi-desync-cutoff=d3 --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-tcp=80 --hostlist="list-general.txt" --dpi-desync=fake,split2 --dpi-desync-autottl=2 --dpi-desync-fooling=md5sig --new ^
|
||||
--filter-tcp=443 --hostlist="list-general.txt" --dpi-desync=split2 --dpi-desync-split-seqovl=652 --dpi-desync-split-pos=2 --dpi-desync-split-seqovl-pattern="%BIN%tls_clienthello_www_google_com.bin"
|
||||
13
general (ALT3).bat
Normal file
13
general (ALT3).bat
Normal file
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
:: 65001 - UTF-8
|
||||
|
||||
cd /d "%~dp0"
|
||||
|
||||
set BIN=%~dp0bin\
|
||||
|
||||
start "zapret: general" /min "%BIN%winws.exe" --wf-tcp=80,443 --wf-udp=443,50000-50100 ^
|
||||
--filter-udp=443 --hostlist="list-general.txt" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-udp=50000-50100 --dpi-desync=fake --dpi-desync-any-protocol --dpi-desync-cutoff=d3 --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-tcp=80 --hostlist="list-general.txt" --dpi-desync=fake,split2 --dpi-desync-autottl=2 --dpi-desync-fooling=md5sig --new ^
|
||||
--filter-tcp=443 --hostlist="list-general.txt" --dpi-desync=split --dpi-desync-split-pos=1 --dpi-desync-autottl --dpi-desync-fooling=badseq --dpi-desync-repeats=8
|
||||
13
general (ALT4).bat
Normal file
13
general (ALT4).bat
Normal file
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
:: 65001 - UTF-8
|
||||
|
||||
cd /d "%~dp0"
|
||||
|
||||
set BIN=%~dp0bin\
|
||||
|
||||
start "zapret: general" /min "%BIN%winws.exe" --wf-tcp=80,443 --wf-udp=443,50000-50100 ^
|
||||
--filter-udp=443 --hostlist="list-general.txt" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-udp=50000-50100 --dpi-desync=fake --dpi-desync-any-protocol --dpi-desync-cutoff=d3 --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-tcp=80 --hostlist="list-general.txt" --dpi-desync=fake,split2 --dpi-desync-autottl=2 --dpi-desync-fooling=md5sig --new ^
|
||||
--filter-tcp=443 --hostlist="list-general.txt" --dpi-desync=fake,split2 --dpi-desync-repeats=6 --dpi-desync-fooling=md5sig --dpi-desync-fake-tls="%BIN%tls_clienthello_www_google_com.bin"
|
||||
14
general (ALT5).bat
Normal file
14
general (ALT5).bat
Normal file
@@ -0,0 +1,14 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
:: 65001 - UTF-8
|
||||
:: NOT RECOMMENDED
|
||||
|
||||
cd /d "%~dp0"
|
||||
|
||||
set BIN=%~dp0bin\
|
||||
|
||||
start "zapret: general" /min "%BIN%winws.exe" --wf-tcp=80,443 --wf-udp=443,50000-50100 ^
|
||||
--filter-udp=443 --hostlist="list-general.txt" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-udp=50000-50100 --dpi-desync=fake --dpi-desync-any-protocol --dpi-desync-cutoff=d3 --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-tcp=80 --hostlist="list-general.txt" --dpi-desync=fake,split2 --dpi-desync-autottl=2 --dpi-desync-fooling=md5sig --new ^
|
||||
--filter-l3=ipv4 --filter-tcp=443 --dpi-desync=syndata
|
||||
13
general (МГТС).bat
Normal file
13
general (МГТС).bat
Normal file
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
:: 65001 - UTF-8
|
||||
|
||||
cd /d "%~dp0"
|
||||
|
||||
set BIN=%~dp0bin\
|
||||
|
||||
start "zapret: general" /min "%BIN%winws.exe" --wf-raw="@rules.txt" ^
|
||||
--filter-udp=443 --hostlist="list-general.txt" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-udp=50000-65535 --dpi-desync=fake --dpi-desync-any-protocol --dpi-desync-cutoff=d3 --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-tcp=80 --hostlist="list-general.txt" --dpi-desync=fake,split2 --dpi-desync-autottl=2 --dpi-desync-fooling=md5sig --new ^
|
||||
--filter-tcp=443 --hostlist="list-general.txt" --dpi-desync=fake --dpi-desync-autottl=2 --dpi-desync-repeats=6 --dpi-desync-fooling=badseq --dpi-desync-fake-tls="%BIN%tls_clienthello_www_google_com.bin"
|
||||
13
general (МГТС2).bat
Normal file
13
general (МГТС2).bat
Normal file
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
:: 65001 - UTF-8
|
||||
|
||||
cd /d "%~dp0"
|
||||
|
||||
set BIN=%~dp0bin\
|
||||
|
||||
start "zapret: general" /min "%BIN%winws.exe" --wf-tcp=80,443 --wf-udp=443,50000-50100 ^
|
||||
--filter-udp=443 --hostlist="list-general.txt" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-udp=50000-50100 --dpi-desync=fake --dpi-desync-any-protocol --dpi-desync-cutoff=d3 --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-tcp=80 --hostlist="list-general.txt" --dpi-desync=fake,split2 --dpi-desync-autottl=2 --dpi-desync-fooling=md5sig --new ^
|
||||
--filter-tcp=443 --hostlist="list-general.txt" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-fooling=md5sig --dpi-desync-fake-tls="%BIN%tls_clienthello_www_google_com.bin"
|
||||
@@ -6,8 +6,8 @@ cd /d "%~dp0"
|
||||
|
||||
set BIN=%~dp0bin\
|
||||
|
||||
start "zapret: general" /min "%BIN%winws.exe" --wf-tcp=80,443 --wf-udp=443,50000-65535 ^
|
||||
--filter-udp=443 --hostlist="list-general.txt" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-udplen-increment=10 --dpi-desync-udplen-pattern=0xDEADBEEF --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
start "zapret: general" /min "%BIN%winws.exe" --wf-raw="@rules.txt" ^
|
||||
--filter-udp=443 --hostlist="list-general.txt" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-udp=50000-65535 --dpi-desync=fake --dpi-desync-any-protocol --dpi-desync-cutoff=d3 --dpi-desync-repeats=6 --dpi-desync-fake-quic="%BIN%quic_initial_www_google_com.bin" --new ^
|
||||
--filter-tcp=80 --hostlist="list-general.txt" --dpi-desync=fake,split2 --dpi-desync-autottl=2 --dpi-desync-fooling=md5sig --new ^
|
||||
--filter-tcp=443 --hostlist="list-general.txt" --dpi-desync=fake,split --dpi-desync-autottl=2 --dpi-desync-repeats=6 --dpi-desync-fooling=badseq --dpi-desync-fake-tls="%BIN%tls_clienthello_www_google_com.bin"
|
||||
|
||||
7
rules.txt
Normal file
7
rules.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
!impostor and !loopback and
|
||||
((outbound and (((tcp.DstPort == 80) or (tcp.DstPort == 443)) or ((udp.DstPort == 443) or
|
||||
(udp.DstPort >= 50000 and udp.DstPort <= 65535 and udp.PayloadLength == 74 and udp.Payload32[0] == 0x00010046
|
||||
))) and
|
||||
(((ip.DstAddr < 127.0.0.1 or ip.DstAddr > 127.255.255.255) and (ip.DstAddr < 10.0.0.0 or ip.DstAddr > 10.255.255.255) and (ip.DstAddr < 192.168.0.0 or ip.DstAddr > 192.168.255.255) and (ip.DstAddr < 172.16.0.0 or ip.DstAddr > 172.31.255.255) and (ip.DstAddr < 169.254.0.0 or ip.DstAddr > 169.254.255.255)) or ((ipv6.DstAddr > ::1) and (ipv6.DstAddr < 2001::0 or ipv6.DstAddr >= 2001:1::0) and (ipv6.DstAddr < fc00::0 or ipv6.DstAddr >= fe00::0) and (ipv6.DstAddr < fe80::0 or ipv6.DstAddr >= fec0::0) and (ipv6.DstAddr < ff00::0 or ipv6.DstAddr >= ffff::0))))
|
||||
or
|
||||
(inbound and tcp and (tcp.Ack and tcp.Syn or tcp.Rst or tcp.Fin) and ((tcp.SrcPort == 80) or (tcp.SrcPort == 443)) and (((ip.SrcAddr < 127.0.0.1 or ip.SrcAddr > 127.255.255.255) and (ip.SrcAddr < 10.0.0.0 or ip.SrcAddr > 10.255.255.255) and (ip.SrcAddr < 192.168.0.0 or ip.SrcAddr > 192.168.255.255) and (ip.SrcAddr < 172.16.0.0 or ip.SrcAddr > 172.31.255.255) and (ip.SrcAddr < 169.254.0.0 or ip.SrcAddr > 169.254.255.255)) or ((ipv6.SrcAddr > ::1) and (ipv6.SrcAddr < 2001::0 or ipv6.SrcAddr >= 2001:1::0) and (ipv6.SrcAddr < fc00::0 or ipv6.SrcAddr >= fe00::0) and (ipv6.SrcAddr < fe80::0 or ipv6.SrcAddr >= fec0::0) and (ipv6.SrcAddr < ff00::0 or ipv6.SrcAddr >= ffff::0)))))
|
||||
@@ -1,24 +0,0 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
:: 65001 - UTF-8
|
||||
|
||||
:: Admin rights check
|
||||
echo Данный файл должен быть запущен с правами администратора (ПКМ - Запустить от имени администратора).
|
||||
echo Нажмите любую клавишу, чтобы продолжить создание сервиса.
|
||||
pause
|
||||
|
||||
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-repeats=6 --dpi-desync-udplen-increment=10 --dpi-desync-udplen-pattern=0xDEADBEEF --dpi-desync-fake-quic=\"%BIN%quic_initial_www_google_com.bin\" --new ^
|
||||
--filter-udp=50000-65535 --dpi-desync=fake --dpi-desync-any-protocol --dpi-desync-cutoff=d3 --dpi-desync-repeats=6 --dpi-desync-fake-quic=\"%BIN%quic_initial_www_google_com.bin\" --new ^
|
||||
--filter-tcp=443 --hostlist=\"%~dp0list-discord.txt\" --dpi-desync=fake,split --dpi-desync-autottl=2 --dpi-desync-repeats=6 --dpi-desync-fooling=badseq --dpi-desync-fake-tls=\"%BIN%tls_clienthello_www_google_com.bin\"
|
||||
|
||||
set SRVCNAME=zapret
|
||||
|
||||
net stop %SRVCNAME%
|
||||
sc delete %SRVCNAME%
|
||||
sc create %SRVCNAME% binPath= "\"%BIN%winws.exe\" %ARGS%" DisplayName= "zapret DPI bypass : %SRVCNAME%" start= auto
|
||||
sc description %SRVCNAME% "zapret DPI bypass software"
|
||||
sc start %SRVCNAME%
|
||||
|
||||
pause
|
||||
@@ -1,25 +0,0 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
:: 65001 - UTF-8
|
||||
|
||||
:: Admin rights check
|
||||
echo Данный файл должен быть запущен с правами администратора (ПКМ - Запустить от имени администратора).
|
||||
echo Нажмите любую клавишу, чтобы продолжить создание сервиса.
|
||||
pause
|
||||
|
||||
set BIN=%~dp0bin\
|
||||
set ARGS=--wf-tcp=80,443 --wf-udp=443,50000-65535 ^
|
||||
--filter-udp=443 --hostlist=\"%~dp0list-general.txt\" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-udplen-increment=10 --dpi-desync-udplen-pattern=0xDEADBEEF --dpi-desync-fake-quic=\"%BIN%quic_initial_www_google_com.bin\" --new ^
|
||||
--filter-udp=50000-65535 --dpi-desync=fake --dpi-desync-any-protocol --dpi-desync-cutoff=d3 --dpi-desync-repeats=6 --dpi-desync-fake-quic=\"%BIN%quic_initial_www_google_com.bin\" --new ^
|
||||
--filter-tcp=80 --hostlist=\"%~dp0list-general.txt\" --dpi-desync=fake,split2 --dpi-desync-autottl=2 --dpi-desync-fooling=md5sig --new ^
|
||||
--filter-tcp=443 --hostlist=\"%~dp0list-general.txt\" --dpi-desync=fake,split --dpi-desync-autottl=2 --dpi-desync-repeats=6 --dpi-desync-fooling=badseq --dpi-desync-fake-tls=\"%BIN%tls_clienthello_www_google_com.bin\"
|
||||
|
||||
set SRVCNAME=zapret
|
||||
|
||||
net stop %SRVCNAME%
|
||||
sc delete %SRVCNAME%
|
||||
sc create %SRVCNAME% binPath= "\"%BIN%winws.exe\" %ARGS%" DisplayName= "zapret DPI bypass : %SRVCNAME%" start= auto
|
||||
sc description %SRVCNAME% "zapret DPI bypass software"
|
||||
sc start %SRVCNAME%
|
||||
|
||||
pause
|
||||
@@ -2,14 +2,19 @@
|
||||
chcp 65001 >nul
|
||||
:: 65001 - UTF-8
|
||||
|
||||
:: Admin rights check
|
||||
echo Данный сервис работает ТОЛЬКО ВМЕСТЕ С СЕРВИСОМ GoodbyeDPI
|
||||
echo Нажмите любую клавишу, чтобы продолжить создание сервиса.
|
||||
pause
|
||||
|
||||
:: Admin rights check
|
||||
echo Данный файл должен быть запущен с правами администратора (ПКМ - Запустить от имени администратора).
|
||||
echo Нажмите любую клавишу, чтобы продолжить создание сервиса.
|
||||
pause
|
||||
|
||||
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-repeats=6 --dpi-desync-udplen-increment=10 --dpi-desync-udplen-pattern=0xDEADBEEF --dpi-desync-fake-quic=\"%BIN%quic_initial_www_google_com.bin\" --new ^
|
||||
set ARGS=--wf-raw=\"@%~dp0rules.txt\" ^
|
||||
--filter-udp=443 --hostlist=\"%~dp0list-discord.txt\" --dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-fake-quic=\"%BIN%quic_initial_www_google_com.bin\" --new ^
|
||||
--filter-udp=50000-65535 --dpi-desync=fake --dpi-desync-any-protocol --dpi-desync-cutoff=d3 --dpi-desync-repeats=6 --dpi-desync-fake-quic=\"%BIN%quic_initial_www_google_com.bin\" --new ^
|
||||
--filter-tcp=443 --hostlist=\"%~dp0list-discord.txt\" --dpi-desync=fake,split --dpi-desync-autottl=2 --dpi-desync-repeats=6 --dpi-desync-fooling=badseq --dpi-desync-fake-tls=\"%BIN%tls_clienthello_www_google_com.bin\"
|
||||
|
||||
|
||||
115
service_install.bat
Normal file
115
service_install.bat
Normal file
@@ -0,0 +1,115 @@
|
||||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
chcp 65001 >nul
|
||||
:: 65001 - UTF-8
|
||||
|
||||
:: Admin rights check
|
||||
echo Данный файл должен быть запущен с правами администратора (ПКМ - Запустить от имени администратора).
|
||||
echo Нажмите любую клавишу, чтобы продолжить создание сервиса.
|
||||
pause
|
||||
cls
|
||||
|
||||
cd /d "%~dp0"
|
||||
|
||||
set BIN_PATH=%~dp0bin\
|
||||
|
||||
:: Поиск .bat файлов в текущей категории, исключая файлы, которые начинаются с "service"
|
||||
set "count=0"
|
||||
for %%f in (*.bat) do (
|
||||
set "filename=%%~nxf"
|
||||
if /i not "!filename:~0,7!"=="service" (
|
||||
set /a count+=1
|
||||
echo !count!. %%f
|
||||
set "file!count!=%%f"
|
||||
)
|
||||
)
|
||||
|
||||
:: Выбираем файл
|
||||
set "choice="
|
||||
set /p "choice=Введите номер файла: "
|
||||
|
||||
if "!choice!"=="" goto :eof
|
||||
|
||||
set "selectedFile=!file%choice%!"
|
||||
if not defined selectedFile (
|
||||
echo Неверный выбор, завершение.
|
||||
pause
|
||||
goto :eof
|
||||
)
|
||||
|
||||
:: Парсим аргументы (mergeargs: 2=start wf|1=wf argument|0=default)
|
||||
set "args="
|
||||
set "capture=0"
|
||||
set "mergeargs=0"
|
||||
set QUOTE="
|
||||
|
||||
for /f "tokens=*" %%a in ('type "!selectedFile!"') do (
|
||||
set "line=%%a"
|
||||
|
||||
echo !line! | findstr /i "%BIN%winws.exe" >nul
|
||||
if not errorlevel 1 (
|
||||
set "capture=1"
|
||||
)
|
||||
|
||||
if !capture!==1 (
|
||||
if not defined args (
|
||||
set "line=!line:*%BIN%winws.exe"=!"
|
||||
)
|
||||
|
||||
set "temp_args="
|
||||
for %%i in (!line!) do (
|
||||
set "arg=%%i"
|
||||
|
||||
if not "!arg!"=="^" (
|
||||
if "!arg:~0,2!" EQU "--" if not !mergeargs!==0 (
|
||||
set "mergeargs=0"
|
||||
)
|
||||
|
||||
if "!arg:~0,1!" EQU "!QUOTE!" (
|
||||
set "arg=!arg:~1,-1!"
|
||||
|
||||
echo !arg! | findstr ":" >nul
|
||||
if !errorlevel!==0 (
|
||||
set "arg=\!QUOTE!!arg!\!QUOTE!"
|
||||
) else if "!arg:~0,1!"=="@" (
|
||||
set "arg=\!QUOTE!@%~dp0!arg:~1!\!QUOTE!"
|
||||
) else if "!arg:~0,5!"=="%%BIN%%" (
|
||||
set "arg=\!QUOTE!!BIN_PATH!!arg:~5!\!QUOTE!"
|
||||
) else (
|
||||
set "arg=\!QUOTE!%~dp0!arg!\!QUOTE!"
|
||||
)
|
||||
)
|
||||
|
||||
if !mergeargs!==1 (
|
||||
set "temp_args=!temp_args!,!arg!"
|
||||
) else (
|
||||
set "temp_args=!temp_args! !arg!"
|
||||
)
|
||||
|
||||
if "!arg:~0,4!" EQU "--wf" (
|
||||
set "mergeargs=2"
|
||||
) else if !mergeargs!==2 (
|
||||
set "mergeargs=1"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
if not "!temp_args!"=="" (
|
||||
set "args=!args! !temp_args!"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
:: Экзекьютим сервис со спаршенными аргументами
|
||||
set ARGS=%args%
|
||||
echo Final args: !ARGS!
|
||||
|
||||
set SRVCNAME=zapret
|
||||
|
||||
net stop %SRVCNAME%
|
||||
sc delete %SRVCNAME%
|
||||
sc create %SRVCNAME% binPath= "\"%BIN_PATH%winws.exe\" %ARGS%" DisplayName= "zpret" start= auto
|
||||
sc description %SRVCNAME% "zapret DPI bypass software"
|
||||
sc start %SRVCNAME%
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user