Urgent: How to delete a line from .htm files, system wide

Background: I was hit by a virus when I connected my Sony Ericsson phone to the the PC. It had ‘rose.exe’ on the root of the phone (which probably came in a TXT message) I don’t know how it got in there, since I don’t normally open TXT messages sent from Internet or strangers. Anyway.

It copied rose.exe onto my C:\ on laptop and then it created .eml and readme.eml in every file and folder. Thank God I don’t use Outlook Express or Outlook, otherwise all of my conacts would have got this virus in the email. Thats it behaviour and worst damage. It creates a …System32\runouce.exe file that runs in the memory and will ride on several OS runtime dll and utilities.

Once I read about it on Internet, I used ‘del /S *.eml’ command which deleted all .eml files. I cleaned the regisrty for ‘runouce.exe’ as well. I found a TrendMicro fix for it and ran it and cleared the virus from the memory.

Current Problem:
Right now, every single htm or html file has atleast 40-50 lines with following string. Its same string and it is inserted at the end of the htm file, that is after or the java script.

Help needed:
If anyone knows Windows scripting, please help me write a script or command that will search all .htm files on a drive and look for this string and delete them.
Like in Unix scripting we use grep, awk and sed. Anyone that can help in this regards, please post here. I know its simple and not that complicated. Thanks in Advance.

Re: Urgent: How to delete a line from .htm files, system wide

Mass File Editor 2.0.9 Mass File Editor 2.0.9 - free download for Windows

Give it a shot

Re: Urgent: How to delete a line from .htm files, system wide

Try,

HiJackThis program to delete any further traces of this virus in the registry.

I am not too good with windows scripting but what you can do is search for all the html files on the drive and see which ones were recently modified?

Hope that helps!

Re: Urgent: How to delete a line from .htm files, system wide

Cheegum, played with that, didn't help.

JL, the virus didn't change the modified date, thats really strange.

Re: Urgent: How to delete a line from .htm files, system wide

I tried sed -i /s and /d but that didn't work. I use UWIN for Windows.

I am going to try cygwin, to try out find -iname with sid. UWIN didn't have find and system trying to use Windows find which ofcourse don't ahve -iname switch.

Any suggestions for cygwin provided it will have Unix/Linux find.

Re: Urgent: How to delete a line from .htm files, system wide

Finally got it working…phew!