make the output shorter in case the server supports all protocol types

This commit is contained in:
Hubert Kario 2014-06-25 14:38:59 +02:00 committed by Hubert Kario
parent 17bc04f71d
commit 4ffa061977
1 changed files with 5 additions and 1 deletions

View File

@ -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}'