Skip to content

Instantly share code, notes, and snippets.

@kzap
Last active October 11, 2015 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kzap/3889059 to your computer and use it in GitHub Desktop.
Save kzap/3889059 to your computer and use it in GitHub Desktop.
Scan for a file with possible malicious PHP code in it
/usr/bin/find /DIRECTORY/TO/SCAN/ -type f -print0 | /usr/bin/xargs -0 grep 'eval(\$' | /usr/bin/mail -s 'Scan Report' yourname@email.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment