Skip to content

Instantly share code, notes, and snippets.

@cwage
Created October 11, 2010 15:34
Show Gist options
  • Save cwage/620717 to your computer and use it in GitHub Desktop.
Save cwage/620717 to your computer and use it in GitHub Desktop.
# remove the insert from the beginning:
find ./ -name "*.php" -type f | xargs perl -i -ne 'print unless m#<?php /\*\*/ eval\(base64_decode\("aWYoZnVuY3Rpb25fZX#'
# remove blank lines:
find ./ -name "*.php" -type f | xargs sed -i '/./,$!d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment