Skip to content

Instantly share code, notes, and snippets.

@Aricg
Last active December 17, 2015 21:19
Show Gist options
  • Select an option

  • Save Aricg/5674192 to your computer and use it in GitHub Desktop.

Select an option

Save Aricg/5674192 to your computer and use it in GitHub Desktop.
find php shells infecting Wordpress
grep --include=*.php -RPnDskip "(passthru|shell_exec|system|phpinfo|base64_decode|chmod|mkdir|readfile) *\(" .
fgrep -r DQplcnJvcl9yZXBvcnR .
fgrep --include=*.gif -r 'eval' .
fgrep --include=*.gif -r '<?' .
fgrep -r "eval(stripslashes($_REQUEST" .
fgrep -r "46esab" .
fgrep -r "strrev" .
fgrep -r "\x65\x76\x61\x6C" .
fgrep -r "chr(48).chr(43)" .
fgrep -r '*/$' .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment