From 4ffa061977a1be5c9d93257931da2ba547f465ee Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Wed, 25 Jun 2014 14:38:59 +0200 Subject: [PATCH] make the output shorter in case the server supports all protocol types --- cipherscan | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cipherscan b/cipherscan index d703849..24f26b3 100755 --- a/cipherscan +++ b/cipherscan @@ -268,7 +268,11 @@ display_results_in_terminal() { ctr=$((ctr+1)) fi if [ $different == "True" ]; then - echo $result|grep -v '(NONE)' + if [[ $(awk '{print $3}' <<< $result) == "SSLv3,TLSv1,TLSv1.1,TLSv1.2" ]]; then + echo $result|grep -v '(NONE)' | awk '{print $1 " " $2 " " "SSLv3-TLSv1.2" " " $4 " " $5 " " $6 " " $7 " " $8 " " $9}' + else + echo $result|grep -v '(NONE)' + fi else # prints priority, ciphersuite, protocols and pfs_keysize echo $result|grep -v '(NONE)'|awk '{print $1 " " $2 " " $3 " " $9}'