Created
April 9, 2014 14:24
-
-
Save fernandes/10276425 to your computer and use it in GitHub Desktop.
Check processes that are using OpenSSL - useful to check what need to be restarted http://heartbleed.com/
This file contains hidden or 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 | |
while read pid; do | |
ls -l /proc/${pid}/exe|awk -F" " '{print $11}' | |
done < <(lsof|egrep libssl|awk -F" " '{print $2'})|sort -d|uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment