Skip to content

Instantly share code, notes, and snippets.

@FKasa
Created March 5, 2018 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FKasa/b5b1b2c11b6fd55bf3dfc62b60540111 to your computer and use it in GitHub Desktop.
Save FKasa/b5b1b2c11b6fd55bf3dfc62b60540111 to your computer and use it in GitHub Desktop.
Finds evil eval-s hidden in comments, whitespace or plain sight
find ./backup/ -name \*.php -type f -print0 | xargs -0 grep "\beval[^\w]\s*\/*\s*[\/|\*]?\s*\(?" -C 3 --color -Pzo > ev.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment