The PC-OFF.BAT virus loads a shutdown script when logging onto Windows XP. A few seconds after logging in, Windows will shutdown. This also affects safe mode. The countdown timer is set to only a few seconds, not allowing the user to enter “shutdown – a” in the run box. You may not even see the emergency shutdown dialog before you are automatically shutdown.
In order to remove the files, you’ll need the Windows XP CD. Other options include putting the hard drive into another computer, or using a LiveCD (BartPE or Linux) to remove the files.
Remove the files from your hard drive using the Windows XP CD
- Insert the Windows XP disc into the CDROM. You may need to adjust your BIOS settings to boot the CDROM first.
- When the “Welcome to Setup” screen appears, press “R.”
- Select the installation you wish to access (there should be only one option for most systems).
- Enter the administrator password when asked.
- Once at the Recovery Prompt, press ENTER after typing the following command: chdir c:\windows
- Press ENTER after typing the following command: del bar311.exe
- Press ENTER after typing the following command: del password_viewer.exe
- Press ENTER after typing the following command: del photo.zip.exe
- Press ENTER after typing the following command: del pc-off.bat
- Press ENTER after typing the following command: exit
- Remove the Windows XP disc and restart your computer.
Once pc-off.bat is removed from the Windows directory, you’ll be able to logon to Windows without it shutting down immediately. There are still remnants left over in the registry though – best to clean those up.
- Go to Start -> Run and type “regedit” and press ENTER.
- Go to HKEY_LOCAL_MACHINE\software\microsoft\windows nt\currentversion\winlogon and find the key: “Userinit=C:\WINDOWS\system32\userinit.exe,xxxxxx.exe” where xxxxxx.exe is bar311.exe, photo.zip.exe or password_viewer.exe.
- Delete bar311.exe, photo.zip.exe or password_viewer.exe from the key, but be sure to leave userinit.exe! If you delete that, you will be unable to logon to Windows.
- Go to HKEY_CURRENT_USER \software\microsoft\windows\currentversion\explorer\advanced and set the following key values: “Hidden=dword:00000001 (1)” “HideFileExt=Dword:00000000 (0)” “ShowSupperHidden=Dword:00000001 (1)”
- Go to HKEY_CURRENT_USER \software\microsoft\Command Processor and find the key: “autorun=c:\windows\pc-off.bat” and remove “c:\windows\pc-off.bat”