From 627701ec63ab7adbf2030f3a7fca21b7110658c8 Mon Sep 17 00:00:00 2001 From: Julien Vehent Date: Tue, 24 Sep 2013 17:02:31 +0200 Subject: [PATCH] Add PFS key size to results --- CiphersScan.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CiphersScan.sh b/CiphersScan.sh index 909195a..9271484 100755 --- a/CiphersScan.sh +++ b/CiphersScan.sh @@ -26,13 +26,13 @@ test_cipher_on_target() { $REQUEST EOF # Parse the result - result="$(grep "New, " $tmp|awk '{print $5}') $(grep -E "^\s+Protocol\s+:" $tmp|awk '{print $3}')" + result="$(grep "New, " $tmp|awk '{print $5}') $(grep -E "^\s+Protocol\s+:" $tmp|awk '{print $3}') $(grep 'Server Temp Key' $tmp|awk '{print $4$5$6$7}')" rm "$tmp" if [ -z "$result" ]; then verbose "handshake failed, no ciphersuite was returned" result='ConnectionFailure' return 2 - elif [ "$result" == '(NONE) ' ]; then + elif [ "$result" == '(NONE) ' ]; then verbose "handshake failed, server returned ciphersuite '$result'" return 1 else @@ -121,9 +121,9 @@ for cipher in "${cipherspref[@]}"; do done if [ $DOBENCHMARK -eq 1 ]; then - header="prio ciphersuite protocol avg_handshake_microsec" + header="prio ciphersuite protocol pfs_keysize avg_handshake_microsec" else - header="prio ciphersuite protocol" + header="prio ciphersuite protocol pfs_keysize" fi ctr=0 for result in "${results[@]}"; do