Results 1 to 2 of 2

Thread: Check for msblast virus

  1. #1

    Thread Starter
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861

    Check for msblast virus

    Heres a little class I wrote (for some friends) that checks to see if the system has been infected with the msblast.exe virus.
    Code:
    using System;
    using Microsoft.Win32;
    
    class checkMsblastVirus
    {
    	public static void Main()
    	{
    		RegistryKey rk = Registry.LocalMachine;
    		RegistryKey subKey = rk.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\");
    		
    		object keyValue = subKey.GetValue("windows auto update");
    		
    		if((string)keyValue == "msblast.exe")
    			Console.WriteLine("This computer has the msblast virus.");
    		else
    		        Console.WriteLine("This computer does not contain the msblast virus.");
    	}
    }
    I know, it's not really a big deal, but it helped them. Besides is shows how to read a key value from the registry, so that may be a benefit in itself to some of you.
    Last edited by Memnoch1207; Aug 16th, 2003 at 02:07 AM.
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    It would be cooler if you gave the users an option to remove it also. I think you just kill the process, and search for all msblast.exe files and delete them. I didn't get infected, so I am not sure if that is all, but seems like it would be pretty easy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width