shoxf/scan8

9 lines
268 B
Bash
Executable File

#!/bin/bash
for fn in $@; do
echo "scanning $fn"
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