Skip to content

Instantly share code, notes, and snippets.

@steinnes
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steinnes/10111424 to your computer and use it in GitHub Desktop.
Save steinnes/10111424 to your computer and use it in GitHub Desktop.
ELB Heartbleed alerter
#!/bin/bash
# quick little script to make an alert window popup when AWS have updated the SSL on
# a host -- can be used to monitor something else, but the best use case is obviously
# when waiting for a third party to fix something.
#
# uses https://github.com/titanous/heartbleeder/
# runs on OS X -- probably the osascript line can be replaced with a similar oneliner
# on linux
HOST=$1
while [ 0 ]; do
~/go/src/github.com/titanous/heartbleeder/heartbleeder $HOST >/dev/null
if [ $? != 0 ]; then
echo `date` "... still vulnerable"
else
osascript -e 'tell app "System Events" to display dialog "HEARTBLEED OVER"'
exit
fi
sleep 10
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment