Login | |
|
 |
Working...not working - 8/30/2004 7:49:07 AM
|
|
 |
|
| |
Revenger
Posts: 9
Score: 0
Joined: 8/26/2004
From: Malta
Status: offline
|
Hi mates, for some reason my tool isn't working. It runs but it doesn't do what is it programmed to do. Here is the source: 'Removal tool for VBS.Gaggle.E 'Programmer: Christian Busuttil 'Date: 7/10/2004 Dim MyBox1, MyBox2 MyBox1 = MsgBox("Do you want to Continue?", vbYesNo + vbQuestion, "VBS.Gaggle.E Removal Tool") If MyBox1 = vbYes Then MyBox2 = MsgBox("Started Removal", vbOKOnly + vbInformation, "VBS.Gaggle.E Removal Tool") ElseIf MyBox1 = vbNo Then WScript.quit End If Sub RegDelete1 On Error Resume Next Dim WshShell Set WshShell = WScript.CreateObject("WScript.Shell") WScript.RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Israfel.vbs") WScript.RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Kernel32.win") End Sub Sub FileAttrs On Error Resume Next Dim fs, f1, f2, f3, f4, f5, f6, f7, f8 Set fs = CreateObject("Scripting.FileSystemObject") Set f1 = fs.GetFile("C:\WINDOWS\System32\File.vbs") f1.attributes = 0 Set f2 = fs.GetFile("C:\WINDOWS\System32\Gedzac.vbs") f2.attributes = 0 Set f3 = fs.GetFile("C:\WINDOWS\System32\Israfel.vbs") f3.attributes = 0 Set f4 = fs.GetFile("C:\WINDOWS\System32\Kernel32.win") f4.attributes = 0 Set f5 = fs.GetGile("C:\WINDOWS\System32\Winmgd.win") f5.attributes = 0 Set f6 = fs.GetFile("C:\WINDOWS\System32\Backup.vbs") f6.attributes = 0 Set f7 = fs.GetFile("C:\WINDOWS\System32\Filezip.zip") f7.attributes = 0 Set f8 = fs.GetFile("C:\WINDOWS\System32\Template.htm") f8.attributes = 0 End Sub Sub Removal1 On Error Resume Next Set fs = CreateObject("Scripting.FileSystemObject") Set f1 = fs.DeleteFile("C:\WINDOWS\System32\File.vbs") Set f2 = fs.DeleteFile("C:\WINDOWS\System32\Gedzac.vbs") Set f3 = fs.DeleteFile("C:\WINDOWS\System32\Israfel.vbs") Set f4 = fs.DeleteFile("C:\WINDOWS\System32\Kernel32.win") Set f5 = fs.DeleteFile("C:\WINDOWS\System32\Winmgd.win") Set f6 = fs.DeleteFile("C:\WINDOWS\System32\Backup.vbs") Set f7 = fs.DeleteFile("C:\WINDOWS\System32\Filezip.zip") Set f8 = fs.DeleteFile("C:\WINDOWS\System32\Template.htm") End Sub Sub FileAttrs2 On Error Resume Next Dim fs, f9, f10, f11, f12, f13, f14, f15, f16 Set fs = CreateObject("Scripting.FileSystemObject") Set f9 = fs.GetFile("C:\WINDOWS\System32\Regsrv.exe") f9.attributes = 0 Set f10 = fs.GetFile("C:\WINDOWS\System32\Sendi.exe") f10.attributes = 0 Set f11 = fs.GetFile("C:\WINDOWS\System32\Pkzip.exe") f11.attributes = 0 Set f12 = fs.GetFile("C:\WINDOWS\System32\AvrilLavigne.jpg") f12.attributes = 0 Set f13 = fs.GetFile("C:\WINDOWS\System32\iwn.dat") f13.attributes = 0 Set f14 = fs.GetFile("C:\WINDOWS\System32\iw.dat") f14.attributes = 0 Set f15 = fs.GetFile("C:\WINDOWS\System32\ixn.dat") f15.attributes = 0 Set f16 = fs.GetFile("C:\WINDOWS\System32\ix.dat") f16.attributes = 0 End Sub Sub Removal2 On Error Resume Next Set fs = CreateObject("Scripting.FileSystemObject") Set f9 = fs.DeleteFile("C:\WINDOWS\System32\Regsrv.exe") Set f10 = fs.DeleteFile("C:\WINDOWS\System32\Sendi.exe") Set f11 = fs.DeleteFile("C:\WINDOWS\System32\Pkzip.exe") Set f12 = fs.DeleteFile("C:\WINDOWS\System32\AvrilLavigne.jpg") Set f13 = fs.DeleteFile("C:\WINDOWS\System32\iwn.dat") Set f14 = fs.DeleteFile("C:\WINDOWS\System32\iw.dat") Set f15 = fs.DeleteFile("C:\WINDOWS\System32\ixn.dat") Set f16 = fs.DeleteFile("C:\WINDOWS\System32\ix.dat") End Sub Sub RegRev On Error Resume Next Dim WshShell Set WshShell = WScript.CreateObject("WScript.Shell") Wscript.quit WshShell.RegWrite("HKEY_CLASSES_ROOT\regfile\shell\open\command\", "regedit.exe %1") End Sub Dim MyBox3 MyBox3 = MsgBox("Removal Finished", vbInformation + vbOkOnly, "VBS.Gaggle.E Removal Tool") Do you Have any ideas what could be the problem pls? Thankx in advance for your help. Regards Revenger
|
|
| |
|
|
|
 |
Re: Working...not working - 8/30/2004 9:12:36 AM
|
|
 |
|
| |
mbouchard
Posts: 1906
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
|
First I would remove the on error's and see if there is any issue with the code.
|
|
| |
|
|
|
 |
Re: Working...not working - 8/30/2004 9:14:04 AM
|
|
 |
|
| |
mbouchard
Posts: 1906
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
|
Also, where are you calling your subs from?
|
|
| |
|
|
|
 |
Re: Working...not working - 8/30/2004 2:42:51 PM
|
|
 |
|
| |
mbouchard
Posts: 1906
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
|
Something like this Dim MyBox1, MyBox2 MyBox1 = MsgBox("Do you want to Continue?", vbYesNo + vbQuestion, "VBS.Gaggle.E Removal Tool") If MyBox1 = vbYes Then MyBox2 = MsgBox("Started Removal", vbOKOnly + vbInformation, "VBS.Gaggle.E Removal Tool") Call Sub1 Call sub2 etc. ElseIf MyBox1 = vbNo Then wscript.quit End If
|
|
| |
|
|
|
 |
Re: Working...not working - 8/31/2004 6:50:47 AM
|
|
 |
|
| |
mbouchard
Posts: 1906
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
|
Look at the GetSpecialFolder Method that would get you the Windows folder.
|
|
| |
|
|
|
|
|