From c7ccce37fea01f4273a5604561c24db38fbab283 Mon Sep 17 00:00:00 2001 From: bol-van Date: Mon, 8 Apr 2024 19:27:23 +0300 Subject: [PATCH] blockcheck: test syndata with wssize --- blockcheck.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/blockcheck.sh b/blockcheck.sh index 893c4f5..9799cb9 100755 --- a/blockcheck.sh +++ b/blockcheck.sh @@ -906,16 +906,17 @@ pktws_check_domain_http_bypass_() [ "$SCANLEVEL" = quick ] && return } done + + s="http_iana_org.bin" + [ "$sec" = 1 ] && s="tls_clienthello_iana_org.bin" + for desync in syndata syndata,split2 syndata,disorder2 syndata,split2 syndata,disorder2 ; do + pktws_curl_test_update_vary $1 $2 $3 $desync $e && [ "$SCANLEVEL" = quick ] && return + pktws_curl_test_update_vary $1 $2 $3 $desync --dpi-desync-fake-syndata="$ZAPRET_BASE/files/fake/$s" $e && [ "$SCANLEVEL" = quick ] && return + done + # do not do wssize test for http. it's useless [ "$sec" = 1 ] || break done - - s="http_iana_org.bin" - [ "$sec" = 1 ] && s="tls_clienthello_iana_org.bin" - for desync in syndata syndata,split2 syndata,disorder2 syndata,split2 syndata,disorder2 ; do - pktws_curl_test_update_vary $1 $2 $3 $desync && [ "$SCANLEVEL" = quick ] && return - pktws_curl_test_update_vary $1 $2 $3 $desync --dpi-desync-fake-syndata="$ZAPRET_BASE/files/fake/$s" && [ "$SCANLEVEL" = quick ] && return - done } pktws_check_domain_http_bypass() {