Page 1 of 1 1
Topic Options
#71359 - 2002-11-05 04:11 AM W32.Friendgreet.worm Script
Anonymous
Unregistered


Hi Everyone
I know this is ambitious my 1st time out But I have a major need to do this. See how this script looks and see if i missed anything
Thanks

;; W32.Friendgreet.worm
;;
;; 1. Remove the "WinSrv Reg" program by using the Add/Remove
;; Programs applet in the Control Panel.
;;
;; 2. Update the virus definitions.
;;
;; 3. Run a full system scan, and delete all files that are
;; detected as W32.Friendgreet.worm.
;;
;; 4. Delete the other files that the program added to the system.
;;
;; 5. Reverse the changes that the program made to the registry.

;; Backup the Registry
Shell Scanreg /Backup

;; Clean Up the Registry Entrys

;; Deleteing the following Value
$PMedia=ReadValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" , "PMedia")
if @error = 0
DelValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","PMedia")
Else Endif

;; Deleteing the following Value
$DisplayName=ReadValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\WinSrv Reg" , "DisplayName")
if @error = 0
DelValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\WinSrv Reg","DisplayName")
Else Endif

;; Deleteing the following Value
$WinSrv=ReadValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\WinSrv Reg" , "WinSrv")
if @error = 0
DelValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\WinSrv Reg","WinSrv")
Else Endif

;; Deleteing the following Value
$Reg=ReadValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\WinSrv Reg" , "Reg")
if @error = 0
DelValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\WinSrv Reg","Reg")
Else Endif

;; Shorten long Value
$R2=UninstallString C:\Program Files\Common Files\Media\UNINSTAL.EXE C:\Program Files\Common Files\Media\INSTALL.LOG WinSrv Reg Uninstall

$R2=ReadValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\WinSrv Reg","$R2")
if @error = 0
DelValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\WinSrv Reg","$R2")
Else Endif

;; Shorten long Value
$R3=HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer\Browser Helper Objects\{7011471D-3F74-498E-88E1-C0491200312D}
;; Then Delete the following Value
IF EXISTKEY("$R3") = 0
DELTREE("$R3")
ELSE ENDIF

;; Removing the following key
IF EXISTKEY("HKEY_LOCAL_MACHINE\Software\CLASSES\IEEvtCatcher.IEEvtCatcherObj.1") = 0
DELTREE("HKEY_LOCAL_MACHINE\Software\CLASSES\IEEvtCatcher.IEEvtCatcherObj.1")
ELSE ENDIF

;; Removing the following key
IF EXISTKEY("HKEY_LOCAL_MACHINE\Software\CLASSES\IEEvtCatcher.IEEvtCatcherObj") = 0
DELTREE("HKEY_LOCAL_MACHINE\Software\CLASSES\IEEvtCatcher.IEEvtCatcherObj")
ELSE ENDIF

;; Removing the following key
IF EXISTKEY("HHKEY_LOCAL_MACHINE\Software\CLASSES\CLSID\{7011471D-3F74-498E-88E1-C0491200312D}") = 0
DELTREE("HKEY_LOCAL_MACHINE\Software\CLASSES\CLSID\{7011471D-3F74-498E-88E1-C0491200312D}")
ELSE ENDIF

;; Removing the following key
IF EXISTKEY("HKEY_LOCAL_MACHINE\Software\CLASSES\CLSID\{7677C920-9CC3-4621-AF8C-AD45402DC2FD}") = 0
DELTREE("HKEY_LOCAL_MACHINE\Software\CLASSES\CLSID\{7677C920-9CC3-4621-AF8C-AD45402DC2FD}")
ELSE ENDIF

;; Removing the following key
IF EXISTKEY("HKEY_LOCAL_MACHINE\Software\CLASSES\TypeLib\{3972ADCE-8737-45DE-A6E2-A253348E5A1E}") = 0
DELTREE("HKEY_LOCAL_MACHINE\Software\CLASSES\TypeLib\{3972ADCE-8737-45DE-A6E2-A253348E5A1E}")
ELSE ENDIF

;; Remove the following key
IF EXISTKEY("HKEY_LOCAL_MACHINE\Software\CLASSES\Interface\{059D8C85-A00F-40AF-8078-7692A0A79F19}") = 0
DELTREE("HKEY_LOCAL_MACHINE\Software\CLASSES\Interface\{059D8C85-A00F-40AF-8078-7692A0A79F19}")
ELSE ENDIF

;;
;; Take Out The Trash!
;;
$Trash=C:\Program Files\Common Files\Media\

If Exist (("$Trash") + ("Install.log"))
Del (("$Trash") + ("Install.log"))
Else Endif

If Exist (("$Trash") + ("Otdock.dll"))
Del (("$Trash") + ("Otdock.dll"))
Else Endif

If Exist (("$Trash") + ("Otglove.dll"))
Del (("$Trash") + ("Otglove.dll"))
Else Endif

If Exist (("$Trash") + ("Otms.exe"))
Del (("$Trash") + ("Otms.exe"))
Else Endif

If Exist (("$Trash") + ("Otupdate.exe"))
Del (("$Trash") + ("Otupdate.exe"))
Else Endif

If Exist (("$Trash") + ("Uninstal.exe"))
Del (("$Trash") + ("Uninstal.exe"))
Else Endif

If Exist (("$Trash") + ("Winsrvc.dat"))
Del (("$Trash") + ("Winsrvc.dat"))
Else Endif

If Exist (("$Trash") + ("Winsrvc.exe"))
Del (("$Trash") + ("Winsrvc.exe"))
Else Endif

If Exist "$Trash"
RD "$Trash"
Else Endif

Top
#71360 - 2002-11-05 04:16 PM Re: W32.Friendgreet.worm Script
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Please post scripts within [CODE] tags. The script will require administrative privileges under Windows NT/2000/XP. Read Why does the console display zeros and ones (amongst others)? and clean up all those unneccesary parentheses. SHELL command is missing quotes. You have syntax error all over the place.

[ 05. November 2002, 16:22: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#71361 - 2002-11-05 04:25 PM Re: W32.Friendgreet.worm Script
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
You also have a misspelled HKEY_LOCAL_MACHINE in there. As an alternative, you can abbreviate 'HKEY_LOCAL_MACHINE' to just 'HKLM'.
Top
#71362 - 2002-11-05 06:39 PM Re: W32.Friendgreet.worm Script
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
FYI..

'HKLM' is only valid with Kixtart 4.x or greater..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1188 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.056 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org