2 ms·
I wrote a bash script to check the top 1000 websites and huge percentage of them responded with heartbeat extension (30-40%): INPUT=websites.csv OLDIFS=$IF
by dmix 13y ago
I wrote a bash script to check the top 1000 websites and huge percentage of them responded with heartbeat extension (30-40%):
INPUT=websites.csv
OLDIFS=$IFS
IFS=,
[ ! -f $INPUT ] && { echo "$INPUT file not found"; exit 99; }
while read rank website
do
echo "checking $website for heartbeat..."
echo -e "quit\n" | /usr/local/bin/openssl s_client -connect $website:443 -tlsextdebug 2>&1| grep 'TLS server extension "heartbeat" (id=15), len=1'
done < $INPUT
IFS=$OLDIFS
You can download a list of top 1 million websites from Alexa and Quantcast: http://www.seobook.com/download-alexa-top-1-000-000-websites-free http://www.seobook.com/download-alexa-top-1-000-000-websites...
Chinese websites timeout on port 443 so you'll have to skip them.