Skip to content

Instantly share code, notes, and snippets.

@dwelch2344
Created January 25, 2015 19:29
Show Gist options
  • Save dwelch2344/ee6a90d5f448e0184e82 to your computer and use it in GitHub Desktop.
Save dwelch2344/ee6a90d5f448e0184e82 to your computer and use it in GitHub Desktop.
Wordpress Hack Cleanup
# List the files
grep -lr --include=*.php "eval(gzinflate(base64_decode" .
# Remove the files
grep -lr --include=*.php "eval(gzinflate(base64_decode" . | xargs sed -i.bak 's/<?php eval(gzinflate(base64_decode[^;]*;/<?php\n/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment