From 93d81ca4b2d344bba6af1c6cfb8ed37d02ef2636 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 15 Jan 2026 15:08:30 +0300 Subject: [PATCH] blockcheck: multiple NOTEST fixes --- blockcheck2.d/standard/20-multi.sh | 8 ++++++-- blockcheck2.d/standard/24-syndata.sh | 6 ++++-- blockcheck2.d/standard/25-fake.sh | 8 ++++++-- blockcheck2.d/standard/30-faked.sh | 7 ++++++- blockcheck2.d/standard/35-hostfake.sh | 8 ++++++-- blockcheck2.d/standard/50-fake-multi.sh | 8 ++++++-- blockcheck2.d/standard/55-fake-faked.sh | 8 ++++++-- blockcheck2.d/standard/60-fake-hostfake.sh | 8 ++++++-- 8 files changed, 46 insertions(+), 15 deletions(-) diff --git a/blockcheck2.d/standard/20-multi.sh b/blockcheck2.d/standard/20-multi.sh index 64992ae..91f2e74 100644 --- a/blockcheck2.d/standard/20-multi.sh +++ b/blockcheck2.d/standard/20-multi.sh @@ -41,8 +41,6 @@ pktws_check_https_tls() local splits_tls='2 1 sniext+1 sniext+4 host+1 midsld 1,midsld 1,midsld,1220 1,sniext+1,host+1,midsld-2,midsld,midsld+2,endhost-1' local PAYLOAD="--payload=tls_client_hello" - [ "$NOTEST_MULTI_HTTPS" = 1 ] && { echo "SKIPPED"; return; } - pktws_simple_split_tests "$1" "$2" "$splits_tls" "$3" } @@ -50,6 +48,9 @@ pktws_check_https_tls12() { # $1 - test function # $2 - domain + + [ "$NOTEST_MULTI_HTTPS" = 1 ] && { echo "SKIPPED"; return; } + pktws_check_https_tls "$1" "$2" && [ "$SCANLEVEL" != force ] && return # do not use 'need' values obtained with wssize @@ -62,5 +63,8 @@ pktws_check_https_tls13() { # $1 - test function # $2 - domain + + [ "$NOTEST_MULTI_HTTPS" = 1 ] && { echo "SKIPPED"; return; } + pktws_check_https_tls "$1" "$2" } diff --git a/blockcheck2.d/standard/24-syndata.sh b/blockcheck2.d/standard/24-syndata.sh index 8df08c0..210d57b 100644 --- a/blockcheck2.d/standard/24-syndata.sh +++ b/blockcheck2.d/standard/24-syndata.sh @@ -23,8 +23,6 @@ pktws_check_https_tls() local PAYLOAD="--payload=tls_client_hello" ok=0 pre="$3" split - [ "$NOTEST_SYNDATA_HTTPS" = 1 ] && { echo "SKIPPED"; return; } - for split in '' multisplit $MULTIDISORDER; do pktws_curl_test_update "$1" "$2" $pre --lua-desync=syndata ${split:+$PAYLOAD --lua-desync=$split} && ok=1 pktws_curl_test_update "$1" "$2" $pre --lua-desync=syndata:blob=0x1603 ${split:+$PAYLOAD --lua-desync=$split} && ok=1 @@ -40,6 +38,8 @@ pktws_check_https_tls12() # $1 - test function # $2 - domain + [ "$NOTEST_SYNDATA_HTTPS" = 1 ] && { echo "SKIPPED"; return; } + pktws_check_https_tls "$1" "$2" && [ "$SCANLEVEL" != force ] && return pktws_check_https_tls "$1" "$2" --lua-desync=wssize:wsize=1:scale=6 } @@ -49,5 +49,7 @@ pktws_check_https_tls13() # $1 - test function # $2 - domain + [ "$NOTEST_SYNDATA_HTTPS" = 1 ] && { echo "SKIPPED"; return; } + pktws_check_https_tls "$1" "$2" } diff --git a/blockcheck2.d/standard/25-fake.sh b/blockcheck2.d/standard/25-fake.sh index 8592a98..8a744a8 100644 --- a/blockcheck2.d/standard/25-fake.sh +++ b/blockcheck2.d/standard/25-fake.sh @@ -86,8 +86,6 @@ pktws_check_https_tls() # $2 - domain # $3 - PRE args for nfqws2 - [ "$NOTEST_FAKE_HTTPS" = 1 ] && { echo "SKIPPED"; return; } - local testf=$1 domain="$2" pre="$3" local ok ok_any ttls attls f fake fooling local PAYLOAD="--payload=tls_client_hello" @@ -133,6 +131,9 @@ pktws_check_https_tls12() { # $1 - test function # $2 - domain + + [ "$NOTEST_FAKE_HTTPS" = 1 ] && { echo "SKIPPED"; return; } + pktws_check_https_tls "$1" "$2" && [ "$SCANLEVEL" != force ] && return # do not use 'need' values obtained with wssize @@ -145,5 +146,8 @@ pktws_check_https_tls13() { # $1 - test function # $2 - domain + + [ "$NOTEST_FAKE_HTTPS" = 1 ] && { echo "SKIPPED"; return; } + pktws_check_https_tls "$1" "$2" } diff --git a/blockcheck2.d/standard/30-faked.sh b/blockcheck2.d/standard/30-faked.sh index 071c28d..be24c48 100644 --- a/blockcheck2.d/standard/30-faked.sh +++ b/blockcheck2.d/standard/30-faked.sh @@ -77,7 +77,6 @@ pktws_check_https_tls() # $1 - test function # $2 - domain # $3 - PRE args for nfqws2 - [ "$NOTEST_FAKED_HTTPS" = 1 ] && { echo "SKIPPED"; return; } local splits='2 1 sniext+1 sniext+4 host+1 midsld 1,midsld 1,sniext+1,host+1,midsld-2,midsld,midsld+2,endhost-1' pktws_check_faked $1 "$2" tls_client_hello "$splits" "$FAKED_PATTERN_HTTPS" "$3" @@ -87,6 +86,9 @@ pktws_check_https_tls12() { # $1 - test function # $2 - domain + + [ "$NOTEST_FAKED_HTTPS" = 1 ] && { echo "SKIPPED"; return; } + pktws_check_https_tls "$1" "$2" && [ "$SCANLEVEL" != force ] && return # do not use 'need' values obtained with wssize @@ -99,5 +101,8 @@ pktws_check_https_tls13() { # $1 - test function # $2 - domain + + [ "$NOTEST_FAKED_HTTPS" = 1 ] && { echo "SKIPPED"; return; } + pktws_check_https_tls "$1" "$2" } diff --git a/blockcheck2.d/standard/35-hostfake.sh b/blockcheck2.d/standard/35-hostfake.sh index dcfcf03..6d4c4e8 100644 --- a/blockcheck2.d/standard/35-hostfake.sh +++ b/blockcheck2.d/standard/35-hostfake.sh @@ -77,14 +77,15 @@ pktws_check_https_tls() # $2 - domain # $3 - PRE args for nfqws2 - [ "$NOTEST_HOSTFAKE_HTTPS" = 1 ] && { echo "SKIPPED"; return; } - pktws_check_hostfake $1 "$2" tls_client_hello "$3" } pktws_check_https_tls12() { # $1 - test function # $2 - domain + + [ "$NOTEST_HOSTFAKE_HTTPS" = 1 ] && { echo "SKIPPED"; return; } + pktws_check_https_tls "$1" "$2" && [ "$SCANLEVEL" != force ] && return # do not use 'need' values obtained with wssize @@ -97,5 +98,8 @@ pktws_check_https_tls13() { # $1 - test function # $2 - domain + + [ "$NOTEST_HOSTFAKE_HTTPS" = 1 ] && { echo "SKIPPED"; return; } + pktws_check_https_tls "$1" "$2" } diff --git a/blockcheck2.d/standard/50-fake-multi.sh b/blockcheck2.d/standard/50-fake-multi.sh index 3bdeb4c..c650a35 100644 --- a/blockcheck2.d/standard/50-fake-multi.sh +++ b/blockcheck2.d/standard/50-fake-multi.sh @@ -92,8 +92,6 @@ pktws_check_https_tls() # $2 - domain # $3 - PRE args for nfqws2 - [ "$NOTEST_FAKE_MULTI_HTTPS" = 1 ] && { echo "SKIPPED"; return 0; } - local testf=$1 domain="$2" pre="$3" local ok ok_any ttls attls f fake fooling splitf splitfs= split splits='2 1 sniext+1 sniext+4 host+1 midsld 1,midsld 1,midsld,1220 1,sniext+1,host+1,midsld-2,midsld,midsld+2,endhost-1' local PAYLOAD="--payload=tls_client_hello" @@ -148,6 +146,9 @@ pktws_check_https_tls12() { # $1 - test function # $2 - domain + + [ "$NOTEST_FAKE_MULTI_HTTPS" = 1 ] && { echo "SKIPPED"; return 0; } + pktws_check_https_tls "$1" "$2" && [ "$SCANLEVEL" != force ] && return pktws_check_https_tls "$1" "$2" --lua-desync=wssize:wsize=1:scale=6 } @@ -156,5 +157,8 @@ pktws_check_https_tls13() { # $1 - test function # $2 - domain + + [ "$NOTEST_FAKE_MULTI_HTTPS" = 1 ] && { echo "SKIPPED"; return 0; } + pktws_check_https_tls "$1" "$2" } diff --git a/blockcheck2.d/standard/55-fake-faked.sh b/blockcheck2.d/standard/55-fake-faked.sh index 260abae..281d8ce 100644 --- a/blockcheck2.d/standard/55-fake-faked.sh +++ b/blockcheck2.d/standard/55-fake-faked.sh @@ -93,8 +93,6 @@ pktws_check_https_tls() # $2 - domain # $3 - PRE args for nfqws2 - [ "$NOTEST_FAKE_FAKED_HTTPS" = 1 ] && { echo "SKIPPED"; return 0; } - local testf=$1 domain="$2" pre="$3" local ok ok_any ttls attls f fake fooling splitf splitfs= split splits='2 1 sniext+1 sniext+4 host+1 midsld 1,midsld 1,sniext+1,host+1,midsld-2,midsld,midsld+2,endhost-1' local PAYLOAD="--payload=tls_client_hello" @@ -149,6 +147,9 @@ pktws_check_https_tls12() { # $1 - test function # $2 - domain + + [ "$NOTEST_FAKE_FAKED_HTTPS" = 1 ] && { echo "SKIPPED"; return 0; } + pktws_check_https_tls "$1" "$2" && [ "$SCANLEVEL" != force ] && return pktws_check_https_tls "$1" "$2" --lua-desync=wssize:wsize=1:scale=6 } @@ -157,5 +158,8 @@ pktws_check_https_tls13() { # $1 - test function # $2 - domain + + [ "$NOTEST_FAKE_FAKED_HTTPS" = 1 ] && { echo "SKIPPED"; return 0; } + pktws_check_https_tls "$1" "$2" } diff --git a/blockcheck2.d/standard/60-fake-hostfake.sh b/blockcheck2.d/standard/60-fake-hostfake.sh index 220b70e..f9aa379 100644 --- a/blockcheck2.d/standard/60-fake-hostfake.sh +++ b/blockcheck2.d/standard/60-fake-hostfake.sh @@ -83,8 +83,6 @@ pktws_check_https_tls() # $2 - domain # $3 - PRE args for nfqws2 - [ "$NOTEST_FAKE_HOSTFAKE_HTTPS" = 1 ] && { echo "SKIPPED"; return 0; } - local PAYLOAD="--payload=tls_client_hello" local FAKE="$FAKE_HTTPS" @@ -101,6 +99,9 @@ pktws_check_https_tls12() { # $1 - test function # $2 - domain + + [ "$NOTEST_FAKE_HOSTFAKE_HTTPS" = 1 ] && { echo "SKIPPED"; return 0; } + pktws_check_https_tls "$1" "$2" && [ "$SCANLEVEL" != force ] && return pktws_check_https_tls "$1" "$2" --lua-desync=wssize:wsize=1:scale=6 } @@ -109,5 +110,8 @@ pktws_check_https_tls13() { # $1 - test function # $2 - domain + + [ "$NOTEST_FAKE_HOSTFAKE_HTTPS" = 1 ] && { echo "SKIPPED"; return 0; } + pktws_check_https_tls "$1" "$2" }