Created
January 28, 2015 01:31
-
-
Save dalehamel/04b2c54c903871cdc400 to your computer and use it in GitHub Desktop.
Ghost detector
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
# Update glibc to your systems recommended patched version first | |
# As root, run this. If you're system is ok, you'll see nothing. Otherwise, this will tell you all infected processes. | |
for proc in $(ls /proc); do if [ -e /proc/$proc/maps ];then if [ -n "`cat /proc/$proc/maps | grep -i libc- | grep -i deleted`" ];then echo $proc; echo "CMDLINE"; cat /proc/$proc/cmdline; echo -e "CMDLINE\n"; cat /proc/$proc/maps | grep -i libc- | grep -i deleted; fi fi done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for proc in $(ls /proc); do if [ -e /proc/$proc/maps ];then if [ -n "
cat /proc/$proc/maps | grep -i $1 | grep -i deleted
" ];then echo $proc; echo "CMDLINE"; cat /proc/$proc/cmdline; echo -e "CMDLINE\n"; cat /proc/$proc/maps | grep -i $1 | grep -i deleted; fi fi done