← back to Parked Landers
check.sh
14 lines
#!/bin/bash
# Runs ON Mac2 (Steve: `! ~/pl-check.sh`). Final all-8 verify (strict TLS: https=200 => cert valid).
ssh root@45.61.58.125 'bash -s' <<"REOF"
DOMS="protectyourspec.com cannabisofthemonthclub.com hempofthemonthclub.com marijuanaofthemonthclub.com potofthemonthclub.com weedofthemonthclub.com mymemosamples.com hospitalitysalesrepresentatives.com"
echo "=== FINAL VERIFY (https=200 with strict TLS => valid cert; OUR-LANDER => your page) ==="
for d in $DOMS; do
h=$(curl -s -m10 -o /dev/null -w "%{http_code}" "http://$d/" 2>/dev/null)
s=$(curl -s -m10 -o /dev/null -w "%{http_code}" "https://$d/" 2>/dev/null)
ours=$(curl -s -m10 "https://$d/" 2>/dev/null | grep -qi "curated domain portfolio" && echo "OUR-LANDER" || echo "other")
subj=$(echo | openssl s_client -servername "$d" -connect "$d":443 2>/dev/null | openssl x509 -noout -subject 2>/dev/null | sed -E "s/.*CN ?= ?//")
printf " %-38s http=%s https=%s %-11s cert=%s\n" "$d" "$h" "$s" "$ours" "$subj"
done
REOF