Created
October 25, 2016 09:21
-
-
Save greymd/335baaf36fd07944948578ce0cee59c4 to your computer and use it in GitHub Desktop.
DirtyCow detection
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
find /home/ -type f -size -300 2> /dev/null -print0 | xargs -0 -I@ egrep -l "/proc/(self|%d)/(mem|maps)" @ | awk '{print "echo \"Contains DirtyCow string: "$0" MOD_DATE: \"$(stat -c %y \""$0"\")"}' | sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment