Remove malicious code injection from .php files


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. find . -type f -iname "*.php" | xargs -IX sed -i '' "s|<?php *\/\*versio:2\.08.*?>||g" 'X'

Report this snippet


Comments


You need to login to view comments.