Last active
August 29, 2015 13:58
-
-
Save steinnes/10111424 to your computer and use it in GitHub Desktop.
ELB Heartbleed alerter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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