mirror of
https://github.com/bol-van/zapret.git
synced 2025-05-12 08:42:58 +03:00
blockcheck: tls multi fake test
This commit is contained in:
parent
c1046a20db
commit
b34bfda8b5
@ -1193,15 +1193,19 @@ pktws_curl_test_update_vary()
|
|||||||
# $4 - desync mode
|
# $4 - desync mode
|
||||||
# $5,$6,... - strategy
|
# $5,$6,... - strategy
|
||||||
|
|
||||||
local testf=$1 sec=$2 domain=$3 desync=$4 proto zerofake= tlsmod= splits= pos fake ret=1
|
local testf=$1 sec=$2 domain=$3 desync=$4 proto splits= pos fake ret=1
|
||||||
|
local fake1=- fake2=- fake3=-
|
||||||
|
|
||||||
shift; shift; shift; shift
|
shift; shift; shift; shift
|
||||||
|
|
||||||
proto=http
|
proto=http
|
||||||
[ "$sec" = 0 ] || proto=tls
|
[ "$sec" = 0 ] || proto=tls
|
||||||
test_has_fake $desync && {
|
test_has_fake $desync && {
|
||||||
zerofake="--dpi-desync-fake-$proto=0x00000000"
|
fake1="--dpi-desync-fake-$proto=0x00000000"
|
||||||
[ "$sec" = 0 ] || tlsmod="--dpi-desync-fake-tls-mod=rnd,dupsid,rndsni,padencap"
|
[ "$sec" = 0 ] || {
|
||||||
|
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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if test_has_fakedsplit $desync ; then
|
if test_has_fakedsplit $desync ; then
|
||||||
splits="method+2 midsld"
|
splits="method+2 midsld"
|
||||||
@ -1210,7 +1214,8 @@ pktws_curl_test_update_vary()
|
|||||||
splits="method+2 midsld"
|
splits="method+2 midsld"
|
||||||
[ "$sec" = 0 ] || splits="1 midsld 1,midsld"
|
[ "$sec" = 0 ] || splits="1 midsld 1,midsld"
|
||||||
fi
|
fi
|
||||||
for fake in '' $zerofake $tlsmod ; do
|
for fake in '' "$fake1" "$fake2" "$fake3" ; do
|
||||||
|
[ "$fake" = "-" ] && continue
|
||||||
if [ -n "$splits" ]; then
|
if [ -n "$splits" ]; then
|
||||||
for pos in $splits ; do
|
for pos in $splits ; do
|
||||||
pktws_curl_test_update $testf $domain --dpi-desync=$desync "$@" --dpi-desync-split-pos=$pos $fake && {
|
pktws_curl_test_update $testf $domain --dpi-desync=$desync "$@" --dpi-desync-split-pos=$pos $fake && {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user