Skip to content

Instantly share code, notes, and snippets.

@juanstiza
Created January 2, 2015 13:57
Show Gist options
  • Save juanstiza/4abbed4f9507caf95b0c to your computer and use it in GitHub Desktop.
Save juanstiza/4abbed4f9507caf95b0c to your computer and use it in GitHub Desktop.
Clean nasty php virus with perl
perl -p -i -e 's/\<\?php if\(\!isset\(\$GLOBALS\[\"[\\x0-9]+\"\][\s\S]+[\$a-z\=0-9]; \?\>//g' **/*.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment