|
-
Aug 16th, 2003, 01:59 AM
#1
Thread Starter
Frenzied Member
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
-
Aug 16th, 2003, 11:47 AM
#2
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|