/ Published in: Bash
Using sed to recursively remove malicious code injection form .php files when the injected code follows the pattern
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
find . -type f -iname "*.php" | xargs -IX sed -i '' "s|<?php *\/\*versio:2\.08.*?>||g" 'X'