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


RSS Icon Subscribe to comments

You need to login to post a comment.