mm airvpn time

This commit is contained in:
vulpine 2020-09-15 17:21:12 -04:00
parent f0256be418
commit 1eab4104ff
2 changed files with 9 additions and 1 deletions

7
gc Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
# thanks jess
echo "Q" | timeout 5 openssl s_client -connect $1:$2 2>&1 | grep -E "^(subject|issuer)=.+"

3
scan8
View File

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