Heres a little class I wrote (for some friends) that checks to see if the system has been infected with the msblast.exe 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.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."); } }




Reply With Quote