Skip to content

Commit

Permalink
Highlight some weak cipher configurations in red.
Browse files Browse the repository at this point in the history
  • Loading branch information
pdbogen committed Feb 22, 2013
1 parent 50922ab commit feac5df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cipherTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ do
if [ $OK -eq 1 ]
then
[ -t 1 ] && echo -en '\r\e[K'
printf '%-7s %-17s %-10s %-11s\n' "SSL2.0" $v2_cipher $_mac $_kx
printf '\e[1;31m%-7s %-17s %-10s %-11s\n\e[00m' "SSL2.0" $v2_cipher $_mac $_kx
# openssl ciphers -v -ssl2 | grep ^$i || echo "No match for $i"
fi
done
Expand All @@ -163,12 +163,14 @@ do
do
i=$(( $i + 1 ))
[ -t 1 ] && printf '\r%-7s %-17s %-10s %-11s (%d / %d)' $proto $cipher $mac $kx $i $total
# printf "%-7s %-17s %-10s %-11s " $proto $cipher $mac $kx
echo -ne $request | gnutls-cli --insecure --priority NONE:+VERS-$proto:+$kx:+$mac:+COMP-NULL:+$cipher -p $PORT $IP > /dev/null 2>&1
if [ $? -eq 0 ]
then
[ -t 1 ] && echo -en "\r\e[K"
[ $mac = "MD5" ] && echo -ne '\e[1;31m'
[ $cipher = "ARCFOUR-40" ] && echo -ne '\e[1;31m'
printf "%-7s %-17s %-10s %-11s\n" $proto $cipher $mac $kx
echo -ne '\e[00m'
fi
done
done
Expand Down

0 comments on commit feac5df

Please sign in to comment.