Return to Snippet

Revision: 60972
at November 20, 2012 23:00 by tinytiger


Initial Code
find . -type f -iname "*.php" | xargs -IX sed -i '' "s|<?php *\/\*versio:2\.08.*?>||g" 'X'

Initial URL

                                

Initial Description
Using sed to recursively remove malicious code injection form .php files when the injected code follows the pattern <?php>

Initial Title
Remove malicious code injection from .php files

Initial Tags
Bash, code, security

Initial Language
Bash