mirror of
https://github.com/bol-van/zapret.git
synced 2025-12-08 12:36:47 +03:00
blockcheck: test split fake
This commit is contained in:
@@ -1268,7 +1268,7 @@ pktws_curl_test_update_vary()
|
|||||||
# $5,$6,... - strategy
|
# $5,$6,... - strategy
|
||||||
|
|
||||||
local testf=$1 sec=$2 domain=$3 desync=$4 proto splits= pos fake ret=1
|
local testf=$1 sec=$2 domain=$3 desync=$4 proto splits= pos fake ret=1
|
||||||
local fake1=- fake2=- fake3=-
|
local fake1=- fake2=- fake3=- fake4=-
|
||||||
|
|
||||||
shift; shift; shift; shift
|
shift; shift; shift; shift
|
||||||
|
|
||||||
@@ -1277,8 +1277,10 @@ pktws_curl_test_update_vary()
|
|||||||
test_has_fake $desync && {
|
test_has_fake $desync && {
|
||||||
fake1="--dpi-desync-fake-$proto=0x00000000"
|
fake1="--dpi-desync-fake-$proto=0x00000000"
|
||||||
[ "$sec" = 0 ] || {
|
[ "$sec" = 0 ] || {
|
||||||
fake2="--dpi-desync-fake-tls=0x00000000 --dpi-desync-fake-tls=! --dpi-desync-fake-tls-mod=rnd,rndsni,dupsid"
|
fake2='--dpi-desync-fake-tls=0x00000000 --dpi-desync-fake-tls=! --dpi-desync-fake-tls-mod=rnd,rndsni,dupsid'
|
||||||
fake3="--dpi-desync-fake-tls-mod=rnd,dupsid,rndsni,padencap"
|
# this splits actual fake to '1603' and modified standard fake from offset 2
|
||||||
|
fake3='--dpi-desync-fake-tls=0x1603 --dpi-desync-fake-tls=!+2 --dpi-desync-fake-tls-mod=rnd,dupsid,rndsni --dpi-desync-fake-tcp-mod=seq'
|
||||||
|
fake4='--dpi-desync-fake-tls-mod=rnd,dupsid,rndsni,padencap'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if test_has_fakedsplit $desync ; then
|
if test_has_fakedsplit $desync ; then
|
||||||
@@ -1293,7 +1295,7 @@ pktws_curl_test_update_vary()
|
|||||||
fake2="--dpi-desync-hostfakesplit-midhost=midsld"
|
fake2="--dpi-desync-hostfakesplit-midhost=midsld"
|
||||||
fake3="--dpi-desync-hostfakesplit-mod=altorder=1 --dpi-desync-hostfakesplit-midhost=midsld"
|
fake3="--dpi-desync-hostfakesplit-mod=altorder=1 --dpi-desync-hostfakesplit-midhost=midsld"
|
||||||
}
|
}
|
||||||
for fake in '' "$fake1" "$fake2" "$fake3" ; do
|
for fake in '' "$fake1" "$fake2" "$fake3" "$fake4" ; do
|
||||||
[ "$fake" = "-" ] && continue
|
[ "$fake" = "-" ] && continue
|
||||||
if [ -n "$splits" ]; then
|
if [ -n "$splits" ]; then
|
||||||
for pos in $splits ; do
|
for pos in $splits ; do
|
||||||
|
|||||||
Reference in New Issue
Block a user