diff --git a/gc b/gc new file mode 100755 index 0000000..e097d05 --- /dev/null +++ b/gc @@ -0,0 +1,7 @@ +#!/bin/sh + +# thanks jess + +echo "Q" | timeout 5 openssl s_client -connect $1:$2 2>&1 | grep -E "^(subject|issuer)=.+" + + diff --git a/scan8 b/scan8 index 5b3ee6f..bd1cd61 100755 --- a/scan8 +++ b/scan8 @@ -2,6 +2,7 @@ for fn in $@; do echo "scanning $fn" -nmap -p 10084 -A -T4 --script ssl-cert $fn | tee -a "index/$fn.txt" +echo "Starting CURL:89 for certs $fn" | tee -a "index/$fn.txt" +curl -kvvI -m 1 https://$fn:89 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }' | tee -a "index/$fn.txt" done