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

Sunday, April 11, 2010

Free Anti Virus Software?

If you're not running any antivirus software or your name brand subscription software has expired, take a look at Microsoft's Security Essentials. Its free, runs on Windows XP, Vista and 7 and downloads new virus definitions automatically. I've used it on some older computers and it is not the best performing, but its better than nothing if you are on a budget. If you have a really old computer it may protect only by slowing down your pc to the point where a virus couldn't do anything... but anything made since 2006 should be fine. You can tweak it to only scan downloads and not all file system activity, but any changes from their recommended settings results in a unhappy red tray icon. It is great for mom and dad's pc that hasn't had a working AV package in 4 years but they don't really care about performance.

REMEMBER: You should only have one anti virus software solution installed, same for firewall software. Its not a good idea to have multiple packages installed, it will slow down your machine unnecessarily.

http://www.microsoft.com/security_essentials

Tuesday, February 2, 2010

Windows logs me in and then out right away!

While removing a virus from a system I had this happen, it would happen no matter what account I used or if it was in safe mode. The only catch is to fix this you will need a windows vista or windows 7 bootable dvd, or the ability to connect the hard drive to another system.

Once you are in windows and you can access the drive, open up regedit and just highlight HKEY_LOCAL_MACHINE. Go to File - Load Hive. Navigate to the broken system drive:

c:\windows\system32\config\software

Open that and when it asks for a name just put temp.

Now you can expand temp and edit the registry. Go to:

HKEY_LOCAL_MACHINE\temp\Microsoft\Windows NT\CurrentVersion\Winlogon

Look for the value for UserInit, it should = C:\WINDOWS\SYSTEM32\userinit.exe

If it isn't set to that, then change it. You should also do a reality check and make sure userinit.exe exists in that path (maybe the virus infected or deleted it).

Reboot and see what happens.

Thursday, January 28, 2010

I can't run taskmgr!

So one method to fighting an infection is to play what I like to call "Task Manager Roulette." This is where you basically open up task manager, go to the processes tab and start ending tasks until the popups dissapear. But some viruses will kill task manager a second after it launches. If that happens you have a few tricks to try:

Copy taskmgr.exe to somewhere else and rename it, to something like taskmgr2.exe. This used to work great, but newer viruses look for the window title or something else and kill it that way. But, I've found another way to get around that:

Find taskmgr.exe in windows explorer, (go to start, run, type in c:\windows\system32 and click ok, scroll down to taskmgr.exe)
Right mouse click on it and choose Run As
Here you can run taskmgr.exe as another user. When it runs as another user, processes running as you (the virus) can't terminate it. You'll need to know the name and password of another user account on your system, usually the Administrator account will work fine. So just choose "The Following User" and put in your computer name\Administrator and the password for that account.

So if your computer name is SHAKIRA, the user name is SHAKIRA\Administrator

If you don't know the password for it, right mouse click on My Computer and go to Manage, then go to Local users and groups - users. In Windows XP home you can just go to the control panel and open the User Accounts icon. Once you've reset the password you should be able to use Run As.

Cleaning out the Run part of the registry

So another place virsues like to put themselves is in the Run part of the registry. Why? Because they will restart there whenever you reboot! Its just like your "startup" folder, only not shortcuts you can just delete.

Don't be afraid to peek at your registry, its really not much different than looking at files in windows explorer.

Go to Start - Run and type in regedit and click ok. If nothing happens or you get a weird message, the virus has disabled it. I'll post about what to do when this happens.

In Regedit, you'll see a number of top level "hives," the two you are interested in are:
HKEY_LOCAL_MACHINE
HKEY_CURRENT_USER

In both of these you can go to the following location, just by expanding the folders.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Go to the LOCAL_USER one first. Once there, you should see a bunch of things, many of them may look familiar, google apps, aol apps etc.

But here are a few to look for:

Look for ones that start with rundll32 on the right side. It is normal to have 1-2 of these. But look for ones that are like:

  • rundll32 c:\windows\system32\cowkfawd.dll
  • c:\documents and settings\username\local settings\temp\asdfw2e.dll
  • (I'll add to this list as I see more examples)

Nothing that the "dll" name can be any random sequence of letters or numbers.

Those are suspect. Now the good news is that sometimes they are left behind by viruses of the past and you might see them as errors when you log in, like "the specified module could not be found" in that case, you can delete them.

Backup before deleting:
Right mouse click on the Run key on the left side and go to Export
Save it as a file somewhere, like on your desktop. If you delete too much you can always double click this file and import them again.

To delete the suspect entries, simply select them and click delete. Now here is the trick: Hit F5 to see if it comes back. If you are actively infected it will usually come back in seconds. If that happens, you can at least find the .dll file and delete it (or remove all the permissions, see my other post on that). If it just dissapears then you are good!

Reboot and see if the virus comes back or if you get any weird popups.

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.

Purpose

Hi, the purpose of this blog is for me to put down random little tricks for fighting computer viruses. I handle about 1 virus a day at my job and I've picked up a lot of little tricks for cleaning systems and preventing infections. Hopefully someone will find this useful.

Thanks,
Mike