git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Pfeiffer <coding _ lirion.de> 2020-07-30 16:27:25 +0200
committerHarald Pfeiffer <coding _ lirion.de> 2020-07-30 16:27:25 +0200
commitd5980195f855cf49e981cafa78a8c086391a7f4e (patch)
treeb349d11c76bbdf82a6fa38f7b596fcad82e9412c
parent63e03ae75afd7abbb54de6e02e2f1d01e831f100 (diff)
downloadlinux-scripts-d5980195f855cf49e981cafa78a8c086391a7f4e.tar.bz2
display TLS ciphers
-rwxr-xr-xbin/sslcheck3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/sslcheck b/bin/sslcheck
index ac3027b..7fdfdfe 100755
--- a/bin/sslcheck
+++ b/bin/sslcheck
@@ -86,3 +86,6 @@ fi
echo '' | "${sslbin}" s_client -connect "$TGTURL":"$TGTPORT" "${sslinitparms[@]}" 2>&1 |\
sed -n '/---BEGIN CERT/,/---END CERT/p' |\
"${sslbin}" "${sslshowparms[@]}"|tr -s '\n'|sed 's/^\([0-9a-f]\{8\}\)$/issuerHash=\1/'
+
+printf "\\nTLS Ciphers:\\n"
+nmap --script ssl-enum-ciphers -p "$TGTPORT" "$TGTURL"|grep --color=never _|grep -v 'least strength'