Skip to content

Instantly share code, notes, and snippets.

@chrisalbright
Created January 23, 2014 01:27
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 chrisalbright/8571085 to your computer and use it in GitHub Desktop.
Save chrisalbright/8571085 to your computer and use it in GitHub Desktop.
Clean up eval(base64_decode(..*)) PHP code (php hates programmers)
ack-grep -c 'eval\(base64_decode' --php | grep -ve '0$' | cut -d: -f1 | xargs perl -pi -e 's@<..*eval.base64_decode..*?>@@'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment