| Using Bart’s PE Builder to Make an Anti-Spyware and Rescue CD |
| Written by http://www.irongeek.com | ||||||||||
| Wednesday, 09 March 2005 | ||||||||||
|
Sometimes a Windows install can get corrupted or compromised in such a way that it’s hard to correct without removing the hard drive and using another computer and Operating System to fix it. Bart’s PE Builder is a free tool that allows you to create a bootable Windows CD or DVD from an existing install CD of Windows XP or Windows Server 2003. This Windows boot CD runs a cut down version of XP, with network, gui and FAT/NTFS/CDFS file system support. Since you can run Windows applications from this boot CD it’s a useful tool for fixing various problems on Windows 2000/2003/XP/9x system that can not easily be fixed while booted from the copy of Windows on the hard drive. The company Winternals makes a similar tool called ERD Commander, but it costs $149 to $299 and lacks the third party plugin support that Bart’s PE Builder has. By using the PE Builder Plugins that others have created you can easily add software to your bootable CD to do all sorts of tasks: Adrian Crenshaw of www.irongeek.com take us through the creation of this Rescue CD. Using Bart’s PE Builder to Make an Anti-Spyware and Rescue CD ![]()
One great use for a PE
Builder CD is to remove spyware from a computer and that is the task
that this article will focus on. A lot of spyware is hard to remove
when you are running the removal tools while booted in the Windows OS
from the local hard drive. Some spyware will try to reinstall itself as
soon at its files or registry keys are deleted. You can get around some
of these problems by running the anti-spyware tools in safe mode, but
even then some spyware can find a way to keep itself alive. By booting
a copy of Windows from a boot CD and running tools like Ad-Aware and
HiJackThis you can eliminate this problem almost entirely. Click on the “Plugins” button, add the plugins that came in CAB archives, and enable the plugins you wish to install (make sure all of the ones you downloaded above are enable). Disable the following Plugins so XPE will work properly:
You will most likely see
two Ad-Aware plugins. The one labeled as “Ad-Aware SE Pro” is the one
you want enabled, make sure the plugin labeled as just “Ad-Aware SE” is
disabled. Once you are done enabling and disenabling plugins click the
“Close” button.
And change it to:
Next you should set the default web page that Internet Explorer loads. Find:
And change "about:blank" to whatever home page URL you wish IE to use. You will want to add some shortcuts to the Programs menu and Desktop. Find the line that reads:
and right below it insert the following two lines to add shortcuts to Ad-Aware in the Programs menu and on the Desktop (make sure each entry is on only one line):
Finally, at the bottom of the z_xpe-custom.inf file choose where you want the TaskBar to show up. In my case I comment out:
using semicolons:
and I uncomment:
to read:
If all of this is too much for you just download my z_xpe-custom.inf from http://www.irongeek.com/i.php?page=security/pebuilder . Then you can just skip the customization steps above. Making and burning the ISO
Once all of the customizations are done go back to the PE Builder
program. If you want PE Builder to burn the CD for you check the “Burn
to CD” checkbox and select your burner. I prefer to use Nero to burn
the ISO myself but you can choose any CD burning software you like. I
recommend using a CD-RW for your first few attempts at making a boot
CD. CD-Rs are compatible with more CD drives but CD-RWs can be used
over and over again for testing CD images as you construct new PE
Builder CDs with different plugins and options. Check the “Create ISO
image” check box then click the “Build” button to generate an ISO of
your CD. Click “Yes” and “I agree” on the two windows that pop up and
Bart’s PE Builder should begin to build your CD. Using the CD After you burn the ISO, test the PE Builder CD by rebooting your computer, going into the BIOS, and setting the CD-ROM as the first boot device. On some computers there’s a function key you can hit at boot up that will let you choose the drive to boot from (it’s F12 on most Dell’s made in the last few years). Once you boot from the CD you should see the Windows’s Classic Start menu interface. Assuming the proper drivers are on the CD you should be able to get a network connection and surf the web or connect to a file server. You can also try defragging, copying files to and from or partitioning the local hard drives. When you use Ad-Aware make sure you set it to do a custom scan and point it to the C: drive. Other useful plugins: Below is a list of other useful security, Anti-spyware and recovery plugins for Bart’s PE Builder I did not include above for the sake of space and simplicity. If you have any problems setting them up feel free to contact me, or better yet look at the web pages listed in the “Further Research” section at the end of this article. Angry-IP-Scanner http://www.drowaelder.de/winpe/PEIndex.htm Great for finding out what hosts are on your network. Eraser http://www.bootcd.us/BartPE_Plugin_Details/57/ Great for scrubbing the hard drive clean of all data. Firefox-1.9 and Firefoxflash-1.1 http://oss.netfarm.it/winpe/ Use these plugins to run the Firefox web browser from your boot CD. HWPnP http://www.paraglidernc.com/6901.html Normal a PE Builder boot CD only looks for hardware on startup, but if you plug in something like a USB thumb drive after you boot, PE will fail to find it. The HWPnP plugin will allow you to plug in USB devices anytime you like. InsidePro Tools v1.0.0 http://www.insidepro.com/eng/download.shtml Great tool for bypassing Syskey and grabbing password hashes from the SAM file. I use the older SAMInside v2.1.3.0 version because the newer demo versions disable the export to PWDUMP file option that’s useful for importing into L0phtcrack. Keyfinder-PE http://www.drowaelder.de/winpe/PEIndex.htm The Keyfinder-PE plugin will extract the XP registration key from the hard drive. Registry Editor PE v0.9c http://regeditpe.sourceforge.net/ Sometime you may need to do finer work to the registry then Ad-Aware or HiJackThis will allow. Registry Editor PE lets you load the registry hives off of the local hard drive and edit any key you like. Sam Spade http://www.gonetiq.com/winpe Sam Spade is a collection of useful network tools for finding out information about hosts on the Internet. Sam is quite popular with spam-fighters. Windows Password Renew 1.0-RC2 for WinPE http://www.sala.pri.ee#pass Password Renew lets the user change the password of the local Administrator account or create a new admin level user with a password of their choice. This is a great tool for getting into Windows boxes you don’t have an admin password for. I hope you have found this article useful. If you have any questions or comments please feel free to e-mail them to me at Irongeek@irongeek.com. Further research: 911 Rescue CD Forums, the best place to ask questions about PE Builder and its plugins: http://www.911cd.net/forums/ Adrian’s PE Builder Website: http://www.irongeek.com/i.php?page=security/pebuilder Bart’s PE Builder Homepage: http://www.nu2.nu/pebuilder/ Bart’s notes on adding additional network and SCSI drivers: http://www.nu2.nu/pebuilder/help/english/drivers.htm Sherpya’s XPE and collection of plugins: http://oss.netfarm.it/winpe/ A huge collection of PE Builder plugins: http://www.bootcd.us Another great step by step tutorial on using PE Builder and XPE: http://xpe.collewijn.info/index.php |
||||||||||
| Last Updated ( Monday, 13 February 2006 ) | ||||||||||