blockcheck: wssize tests

This commit is contained in:
bol-van 2021-12-09 16:50:31 +03:00
parent 2143e9f72c
commit 68c856e2fc

View File

@ -276,18 +276,21 @@ check_domain_bypass()
}
done
}
s="--dpi-desync=$desync --dpi-desync-fooling=badsum"
nfqws_curl_test $1 $3 $s && strategy="${strategy:-$s}"
s="--dpi-desync=$desync --dpi-desync-fooling=md5sig"
for fooling in badsum md5sig badseq; do
s="--dpi-desync=$desync --dpi-desync-fooling=$fooling"
if nfqws_curl_test $1 $3 $s ; then
strategy="${strategy:-$s}"
[ "$fooling" = "md5sig" ] && echo 'WARNING ! although md5sig fooling worked it will not work on all sites. it typically works only on linux servers.'
else
[ "$sec" = 1 ] && {
s="$s --wssize 1:6"
nfqws_curl_test $1 $3 $s && {
strategy="${strategy:-$s}"
echo WARNING ! although md5sig fooling worked it will not work on all sites. it typically works only on linux servers.
[ "$fooling" = "md5sig" ] && echo 'WARNING ! although md5sig fooling worked it will not work on all sites. it typically works only on linux servers.'
}
s="--dpi-desync=$desync --dpi-desync-fooling=badseq"
nfqws_curl_test $1 $3 $s && strategy="${strategy:-$s}"
}
fi
done
done
echo