Skip to content

Instantly share code, notes, and snippets.

@greymd
Created October 25, 2016 09:21
Show Gist options
  • Save greymd/335baaf36fd07944948578ce0cee59c4 to your computer and use it in GitHub Desktop.
Save greymd/335baaf36fd07944948578ce0cee59c4 to your computer and use it in GitHub Desktop.
DirtyCow detection
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