Skip to content

Instantly share code, notes, and snippets.

@kirichkov
Last active December 17, 2015 09:58
Show Gist options
  • Save kirichkov/5590764 to your computer and use it in GitHub Desktop.
Save kirichkov/5590764 to your computer and use it in GitHub Desktop.
Scan all PHP scripts in a directory for most-common web-shells
grep -RPl --include=*.{php,txt,asp} "(passthru|shell_exec|system|phpinfo|base64_decode|chmod|mkdir|fopen|fclose|readfile) *\(" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment