mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 22:33:40 +01:00
make the output shorter in case the server supports all protocol types
This commit is contained in:
parent
17bc04f71d
commit
4ffa061977
@ -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}'
|
||||
|
Loading…
Reference in New Issue
Block a user