Posted By

tinytiger on 11/20/12


Bash code injection security sed

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Remove malicious code injection from .php files

 / Published in: Bash

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

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

Report this snippet  

You need to login to post a comment.