2020-08-26 18:38:49 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
for fn in $@; do
|
|
|
|
echo "scanning $fn"
|
2021-03-07 01:09:16 +00:00
|
|
|
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" &
|
2020-08-26 18:38:49 +00:00
|
|
|
done
|
|
|
|
|