Lab Exercise -- Working with the BackTrack Security Distribtuion Exercise: 1. Boot the CD-ROM, or Build a USB Key and Boot You can use either the Lab Desktop, Or Your Own Laptop. If Your Laptop has a Wireless Interface, It will be more helpful to use the Laptop. Each Group should have at least 1 USB Key. After the Group sees how easy it is to build the USB Key is Built, The rest of the group can boot the CDROM Building the USB Key is actually much easier in Windows! More information Below: 2. Find a Working X Environment There are a number of different X11 Settings Preconfigured. Try and find one that works for you. Either select from the menu, or you can do: % startx (or) % kdm (or) % flux if you are at the root prompt. 3. Determine which Wireless Network Drivers You are Using More Information Below: ------------------------------------------------------------ 1a. Boot the CD-ROM ------------------------------------------------------------ Burn the ISO Boot the CD Viola! You are done! ------------------------------------------------------------ 1b-WINDOWS. Installing of the BETA3 RAR on USB Key ------------------------------------------------------------ If you do this one, skip the LINUX install. a. make sure the key is formatted and can accept files b. download the RAR image from here: http://aitwsws.net/backtrack/bt3b141207.rar c. extract the files to the USB Key, the two directories moved to the top: /boot /BT3 d. go to the /boot directory e. run "bootinst.bat" That's it! Change your BIOS settings and See if the USB Key Will Boot ------------------------------------------------------------ 1b-LINUX. Installing of the BETA3 RAR on USB Key ------------------------------------------------------------ Let's do this all as root % sudo -s a. attach USB stick b. determine which device is the USB device tail /var/log/messages df *********************************************************** *** WARNING: make sure you have the correct device name *** *** Otherwise you could wipe out your hard drive *** *** If you are uncomfortable with fdisk/mkfs, stop now. *** *********************************************************** c. umount /dev/sdX umount /dev/sdX d. make partitions fdisk /dev/sdX n <---------- new partition p <---------- primary 1 <---------- partition 1 t <---------- set partition type c <---------- W95 FAT32 (LBA) a <---------- mark partition as bootable 1 <---------- partition 1 w <---------- write the partition table e. make a filesystem mkfs.vfat /dev/sdX1 f. mount the filesystem mkdir /mnt/bt mount /dev/sdX1 /mnt/bt g. unrar source to the local disk cd /tmp unrar x /path/to/bt3rar.rar h. fix the file permissions cd /tmp/bt3b141207 find . -type f -exec chmod u+rwx "{}" \; i. move the files to the USB drive mv boot /mnt/bt mv BT3 /mnt/bt j. install boot record cd /mnt/bt ./boot/bootinst.sh k. sync to make sure sync umount /dev/sdX1 l. boot to your BIOS or m. set 1st boot device to the USB key n. SAVE and EXIT o. boot You are done! ------------------------------------------------------------ *** PLEASE SKIP THIS SECTION 1c *** 1c. Installing on Disk ------------------------------------------------------------ http://forums.remote-exploit.org/showthread.php?t=11154 a. Boot BackTrack 3 Beta LiveCD b. Login with root toor c. Make a Linux Partition fdisk /dev/sda Command (m for help): p Command (m for help): t Partition number (1-3): 3 Hex code (type L to list codes): 83 Commands (m for help):w d. umount /dev/sda3 e. mkfs.ext3 /dev/sda3 f. mkdir /mnt/bt3 && mount /dev/sda3 /mnt/bt3 g. launch Backtrack/Backtrack Installer from menu Make sure Source is empty Install BackTrack to: /mnt/bt3 Write New MBR (lilo.mbr) to: /dev/sda3 And be very sure you *untick* Restore Original MBR after lilo And choose real (and not live) h. wait for Complete message, ignore stall at 81% You are done! ------------------------------------------------------------ 2. Find your Working X Environment ------------------------------------------------------------ Trial and Error is fine here. If booting from the CD-ROM, try starting any of the "KDE" or "Flux" or "VESA" startup entries. From the USB distribution, try the "startx" or "flux" commands. ------------------------------------------------------------ 3. Wireless Drivers ------------------------------------------------------------ a. Identify your wireless network card. Supported drivers are listed here: http://wiki.remote-exploit.org/index.php/HCL:Wireless % dmesg | less % lsmod | less % lspci -v -v -v | less % modinfo b. Is the card already up and running? % ifconfig % iwconfig c. If running, do you see other AP's? % iwlist scan % iwlist ap % iwconfig What MODE is the card in?______________________________ What FREQUENCY is in use?______________________________ What ESSID is shown?___________________________________ --- END