From 08202a576868b000c5c2c1febd7fa9700d859c56 Mon Sep 17 00:00:00 2001 From: Dirk Date: Wed, 8 Oct 2014 14:30:31 +0200 Subject: [PATCH] - FIX: socket reset (ccs, hb) made formatting look not ok --- testssl.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/testssl.sh b/testssl.sh index de5bc78..e6db929 100755 --- a/testssl.sh +++ b/testssl.sh @@ -457,7 +457,7 @@ std_cipherlists() { socksend() { data=`echo $1 | sed 's/tls_version/'"$2"'/g'` [ $VERBOSE -eq 1 ] && echo "\"$data\"" - out "$data" >&5 & + out "$data" >&5 2>/dev/null & sleep $3 } @@ -483,8 +483,8 @@ sockread() { test $maxsleep -eq 0 && break done if ps ax | grep -v grep | grep -q $pid; then - # time's up and dd is still alive --> tiemout - kill $pid + # time's up and dd is still alive --> timeout + kill $pid wait $pid 2>/dev/null ret=3 # means killed fi @@ -994,7 +994,7 @@ ccs_injection(){ # see https://www.openssl.org/news/secadv_20140605.txt # mainly adapted from Ramon de C Valle's C code from https://gist.github.com/rcvalle/71f4b027d61a78c42607 bold " CCS "; out " (CVE-2014-0224), experimental " - ccs_message="\x14\x03\tls_version\x00\x01\x01" + ccs_message="\x14\x03\tls_version\x00\x01\x01" # ChangeCipherSpec, TLS version 2 bytes, lenght 2 bytes, payload CCS 1 byte $OPENSSL s_client $STARTTLS -connect $NODEIP:$PORT &>$TMPFILE