Created
October 11, 2010 15:34
-
-
Save cwage/620717 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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