Helpful tips and tricks to cleaning your Windows XP/Vista/7 system (mostly windows XP)

Thursday, January 28, 2010

Common place to find viruses, and how to delete them!

I had to clean a virus off of a system today and the user was so impressed with how I was able to tell a system file apart from a virus file. Well, here are a few tricks for doing that.

There are two basic places to look for viruses, files and registry entries. Don't worry, the registry isn't any harder to navigate than files on your system.

One of the first places I look is in the system32 folder, usually:

c:\windows\system32

Of course, the virus author has made their files:
  • hidden attribute
  • system attribute
  • random file name

So, the first thing you'll want to do is show all hidden files and system files.

In any explorer window, go to Tools, Folder Options
Click the View tab
Select "Show hidden files and folders"
Uncheck Hide Protected Operating System Files (Recommended)

Click yes to the warning, because you know what you are doing!

Now, in windows explorer, go to c:\windows\system32 and sort by DATE. Do this by clicking on the Date modified column header twice. If you only see icons, make sure you go to view - details.

Normally, you'll see a few files with recent dates on them. wpa.dbl is where the wireless networking settings are stored and is updated frequently. You'll also see some perfh009.dat files that are recent. You may even see mrt.exe which is the Microsoft Removal Tool (Mr. T) in there.

But what you want to look for is files that are kinda grayed out, which means they are hidden/system files. See if they have funny names like youlosks.dll or breokase.dll. Files with dates of less than 48 hours are usually suspect.

So what do you do? Delete them? Thats a good idea, you can go ahead and delete them (shift-delete). But if you get a message saying access denied, the file is in use there is a trick around that.

  • Right Mouse click on the file and choose Properties
  • Go to the Security Tab
  • Click on the Advanced Tab
  • Uncheck the Inherit... button at the bottom and when asked to copy or remove, choose Remove. Click ok and ok again to get out of there. Don't worry, even though you can't do much with the file after that, you CAN delete it, once you reboot.
  • Reboot and go back in and delete the suckers.

You may also want to see my next post about cleaning out the "Run" section of the registry.

Now don't forget to undo the show all files trick I have at the top, so you don't see those thumbs.db etc files everywhere.

No comments:

Post a Comment