sed multiline replace HTML with javascript malicious code [closed]

view story

http://serverfault.com – Possible Duplicate: How do I deal with a compromised server? I've a apache server that has been infected with pieces of malicious javascript code to infect the computers that visit the web page. What i'm trying to do is remove these pieces of malicious code using find and sed commands in a Linux server. I have created a regular expression for sed that match almost everything but the "" end tag. It is in a new line and I can't find the way to match it as well. The malicious code is: if (i5463 == null) { var i5463 = 1; var vst = String.fromCharCode(68)+String.fromCharCode(111)+Str (HowTos)