Compare commits

...

2 Commits

Author SHA1 Message Date
bol-van
01bf4a62fc blockcheck: BoringSSL supports tlsmax 2024-06-25 10:14:01 +03:00
bol-van
40c28ba6f3 blockcheck: fix tls1.2 quictls, iana.org clienthello splitovl 2024-06-25 09:49:35 +03:00

View File

@ -494,7 +494,7 @@ curl_supports_tls13()
curl_supports_tlsmax() curl_supports_tlsmax()
{ {
# supported only in OpenSSL and LibreSSL # supported only in OpenSSL and LibreSSL
curl --version | grep -Fq -e OpenSSL -e LibreSSL -e GnuTLS || return 1 curl --version | grep -Fq -e OpenSSL -e LibreSSL -e BoringSSL -e GnuTLS -e quictls || return 1
# supported since curl 7.54 # supported since curl 7.54
curl --tls-max 1.2 -Is -o /dev/null --max-time 1 http://127.0.0.1:65535 2>/dev/null curl --tls-max 1.2 -Is -o /dev/null --max-time 1 http://127.0.0.1:65535 2>/dev/null
# return code 2 = init failed. likely bad command line options # return code 2 = init failed. likely bad command line options
@ -1086,6 +1086,7 @@ pktws_check_domain_http_bypass_()
pktws_curl_test_update_vary $1 $2 $3 $desync $e && [ "$SCANLEVEL" = quick ] && return pktws_curl_test_update_vary $1 $2 $3 $desync $e && [ "$SCANLEVEL" = quick ] && return
done done
} }
for desync in split2 disorder2; do for desync in split2 disorder2; do
s="--dpi-desync=$desync" s="--dpi-desync=$desync"
if [ "$sec" = 0 ]; then if [ "$sec" = 0 ]; then
@ -1100,7 +1101,11 @@ pktws_check_domain_http_bypass_()
for pos in 2 3 4 5 10 50; do for pos in 2 3 4 5 10 50; do
pktws_curl_test_update $1 $3 $s --dpi-desync-split-seqovl=$(($pos - 1)) --dpi-desync-split-pos=$pos $e && [ "$SCANLEVEL" = quick ] && return pktws_curl_test_update $1 $3 $s --dpi-desync-split-seqovl=$(($pos - 1)) --dpi-desync-split-pos=$pos $e && [ "$SCANLEVEL" = quick ] && return
done done
[ "$sec" != 0 -a $desync = split2 ] && {
pktws_curl_test_update $1 $3 $s --dpi-desync-split-seqovl=336 --dpi-desync-split-seqovl-pattern="$ZAPRET_BASE/files/fake/tls_clienthello_iana_org.bin" $e && [ "$SCANLEVEL" = quick ] && return
}
done done
for desync in $tests; do for desync in $tests; do
ok=0 ok=0
for delta in 1 2 3 4 5; do for delta in 1 2 3 4 5; do