From 2469603a7fdfc2da1b1aabb58562aacf52e24493 Mon Sep 17 00:00:00 2001 From: Dirk Date: Wed, 19 Apr 2017 00:30:09 +0200 Subject: [PATCH] save also 1x connect for heartbleed() by reusing a previoulsy identified protocol --- testssl.sh | 39 ++++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/testssl.sh b/testssl.sh index dc8598b..70bcb8e 100755 --- a/testssl.sh +++ b/testssl.sh @@ -161,6 +161,7 @@ TERM_CURRPOS=0 # custom line wrappi # 0 means (normally) true here. Some of the variables are also accessible with a command line switch, see --help declare -x OPENSSL OPENSSL_TIMEOUT +FAST_SOCKET=${FAST_SOCKET:-false} # EXPERIMENTAL feature to accelerate sockets -- DO NOT USE it for production COLOR=${COLOR:-2} # 2: Full color, 1: b/w+positioning, 0: no ESC at all COLORBLIND=${COLORBLIND:-false} # if true, swap blue and green in the output SHOW_EACH_C=${SHOW_EACH_C:-false} # where individual ciphers are tested show just the positively ones tested @@ -3422,7 +3423,6 @@ client_simulation_sockets() { sleep $USLEEP_SND sockread_serverhello 32768 - tls_hello_ascii=$(hexdump -v -e '16/1 "%02X"' "$SOCK_REPLY_FILE") tls_hello_ascii="${tls_hello_ascii%%[!0-9A-F]*}" @@ -8653,16 +8653,25 @@ run_heartbleed(){ return 0 fi - # determine TLS versions offered <-- needs to come from another place - $OPENSSL s_client $STARTTLS $BUGS -connect $NODEIP:$PORT $PROXY -tlsextdebug >$TMPFILE 2>$ERRFILE $TMPFILE 2>$ERRFILE $TMPFILE 2>$ERRFILE $TMPFILE 2>$ERRFILE