diff --git a/testssl.sh b/testssl.sh index 902e43c..322db73 100755 --- a/testssl.sh +++ b/testssl.sh @@ -2015,7 +2015,8 @@ listciphers() { # argv[5]: non-SSLv2 cipher list to test (hexcodes), if using sockets # argv[6]: SSLv2 cipher list to test (hexcodes), if using sockets std_cipherlists() { - local -i sclient_success + local -i i len sclient_success + local sslv2_cipherlist detected_ssl2_ciphers local singlespaces proto="" addcmd="" local debugname="$(sed -e s'/\!/not/g' -e 's/\:/_/g' <<< "$1")" @@ -2040,8 +2041,15 @@ std_cipherlists() { sclient_success=$? debugme cat $ERRFILE elif [[ -n "$6" ]]; then - sslv2_sockets "$6" - [[ $? -eq 3 ]] && [[ "$V2_HELLO_CIPHERSPEC_LENGTH" -ne 0 ]] && sclient_success=0 + sslv2_sockets "$6" "true" + if [[ $? -eq 3 ]] && [[ "$V2_HELLO_CIPHERSPEC_LENGTH" -ne 0 ]]; then + sslv2_cipherlist="$(strip_spaces "${6//,/}")" + len=${#sslv2_cipherlist} + detected_ssl2_ciphers="$(grep "Supported cipher: " "$TEMPDIR/$NODEIP.parse_sslv2_serverhello.txt")" + for (( i=0; i