Systems Edge.
How to install backtrack 3 onto a new hard disc drive in ten minutes.
By Tony Edge http://www.systems-edge.co.uk
The law is very clear these tools should only be used for security analysis on your own network.
Please visit the SMF forum and add your comments to the community project.

How to install backtrack 3 onto a new hard disc drive.
Install windows xp as normal.
Format the drive as normal NTFS fat 32 do not use all of the drive for windows
leave sufficient space for another two partitions linux swap 1GB and linux ext partition > 2.3gb.
download the windows version of netbootin from
home page http://unetbootin.sourceforge.net/
http://unetbootin.sourceforge.net/unetbootin-windows-latest.exe
download backtrack3 bt3 from home page http://www.remote-exploit.org/backtrack_download.html
http://www.remote-exploit.org/cgi-bin/fileget?version=bt3-usb
Copy both the unetbootin and the backtrack 3 iso file, (bt3final_usb.iso)
to the root of windows xp c:\
launch unetbootin

click on the 3 dots to browse to the iso file


click on ok

Wait a while the linux fbacktrack 3 is extracted from the iso file.
This will take some time !!!!! An ideal time for a coffee break.

Reboot the pc.
Windows or Unetbootin is displayed. Select unetbootin
The GRLDR loader will start, press esc to select the option similar to the cd/dvd loader.
From linux backtrack create two partitions leaving the ntfs partition intact.
a swap partition and a linux ext2 partition
using qtparted the graphical option.
(may take some time to recognize the hard disk drive).

You may have to substitute /dev/hda (ide hard disk). To /dev/sda (for sata drives)

To view all disks
at the hash prompt # fdisk -l (L lower case not 1)
# fdisk -l
Disk /dev/hda: 12.0 GB, 12072517632 bytes
255 heads, 63 sectors/track, 1467 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1032 8289508+ 7 HPFS/NTFS
/dev/hda2 1033 1156 996030 82 Linux swap
/dev/hda3 1157 1467 2498107+ 83 Linux
bt ~ #
Alternative ways of creating an ex2 partition use cfdisk and mke2fs take great, entering the wrong settings could
overwrite partitions and data. Verify these before using:-
# cfdisk /dev/ha
Mke2fs /dev/hda3
_____________________________________________________
Settings for persistent changes
edit the windows c:\unetbtin\menu.Lst
Add the device for the changes ( changes= dev/hda3/)
where dev/hda3 is the new linux ext partition this must be > 2.3 GB.
a sample setup for menu.lst
_______________________________________________________________________
default 0
timeout 10
title UNetbootin
find --set-root /unetbtin/ubnkern
kernel /unetbtin/ubnkern vga=0x317 ramdisk_size=6666 root=/dev/ram0 rw chexpand=256 load=cubez changes=/dev/hda3 autoexec=xconf;cubez;startx
initrd /unetbtin/ubninit
boot
title BT3 Graphics mode (Compiz) - Experimental
find --set-root /boot/vmlinuz
kernel /boot/vmlinuz vga=0x317 ramdisk_size=6666 root=/dev/ram0 rw chexpand=256 load=cubez autoexec=xconf;cubez;startx
initrd /boot/initrd.gz
boot
title BT3 Graphics mode (Compiz Nvidia) - Experimental
find --set-root /boot/vmlinuz
kernel /boot/vmlinuz vga=0x317 ramdisk_size=6666 root=/dev/ram0 rw chexpand=256 load=cubez,nvidiadriver autoexec=xconf;startnvidia.sh;startx
initrd /boot/initrd.gz
boot
title BT3 Graphics mode (KDE)
find --set-root /boot/vmlinuz
kernel /boot/vmlinuz vga=0x317 ramdisk_size=6666 root=/dev/ram0 rw changes=/dev/hda3 autoexec=xconf;kdm
initrd /boot/initrd.gz
boot
title BT3 Graphics mode (Flux)
find --set-root /boot/vmlinuz
kernel /boot/vmlinuz vga=0x317 ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;flux
initrd /boot/initrd.gz
boot
title BT3 Graphics mode (VESA KDE)
find --set-root /boot/vmlinuz
kernel /boot/vmlinuz vga=0x317 ramdisk_size=6666 root=/dev/ram0 rw changes=/dev/hda3 autoexec=kdm
initrd /boot/initrd.gz
boot
title BT3 Text mode Frame Buffer
find --set-root /boot/vmlinuz
kernel /boot/vmlinuz vga=0x317 ramdisk_size=6666 root=/dev/ram0 rw
initrd /boot/initrd.gz
boot
title Run BT3 no DHCP
find --set-root /boot/vmlinuz
kernel /boot/vmlinuz vga=0x317 ramdisk_size=6666 root=/dev/ram0 rw nodhcp
initrd /boot/initrd.gz
boot
title Run BT3 no Hard Disk
find --set-root /boot/vmlinuz
kernel /boot/vmlinuz vga=0x317 ramdisk_size=6666 root=/dev/ram0 rw nohd
initrd /boot/initrd.gz
boot
title Run BT3 Safe Mode
find --set-root /boot/vmlinuz
kernel /boot/vmlinuz vga=normal ramdisk_size=6666
initrd /boot/initrd.gz
boot
title BT3 Graphics mode with Persistent Changes
find --set-root /boot/vmlinuz
kernel /boot/vmlinuz vga=0x317 ramdisk_size=6666 root=/dev/ram0 rw changes=/changes/slaxsave.dat autoexec=xconf;kdm
initrd /boot/initrd.gz
boot
title BT3 Graphics mode, Copy To RAM
find --set-root /boot/vmlinuz
kernel /boot/vmlinuz vga=0x317 ramdisk_size=6666 root=/dev/ram0 rw copy2ram autoexec=xconf;kdm
initrd /boot/initrd.gz
boot
title Run Memtest utility
find --set-root /boot/mt86p
kernel /boot/mt86p
initrd /unetbtin/ubninit
boot
________________________________________________________________________
Finally create a folder changes in the new linux ext2 disk
Open conqueror storage media


Click on the new ext2 disk
Create a new folder changes


Reboot the computer. The first time you boot windows a pop up message says
Do you want to delete unetbootin. Reply No.
Boot backtrack3 and test that your changes are working.
Happy computing
many thanks for visting System Edge Web Site.
Tony
_______________________________________________________________
Useful links
http://www.securityindepth.org/papers/backtrack.pdf BackTrack Quick Reference Guide
You can install Slackware packages using the command:
bt ~ # installpkg package_name.tgz
Converting RPMs to tgz packages:
You can convert RPM packages used by distributions like Fedora/Redhat, SuSE,
Mandriva, etc to Slackware packages using the command:
bt ~ # rpm2tgz package_name.rpm
Startup script:
When BT boots up, /etc/rc.M gets executed, and runs the other rc files in a specific order.
rc.inet1 is used to configure the interfaces and rc.inet2 is used to start various network
services. rc.local gets executed towards the end of the process and should be used for
initialization of things that need to be started towards the end of the init process.
To autostart some_program:
bt ~ # cd /root/.kde/Autostart
bt ~ # ln -s /path_where_program_is/program_name program_name
Networking with BT
If you have a DHCP server, you need to start the DHCP client:
bt ~ # dhcpcd
this will start DHCP discovery on all cards that support it. To run dhcp on only a specified
interface, for instance the first ethernet card (eth0), type:
bt ~ # dhcpcd eth0
script to configure network, open a terminal and type:
bt ~ # netconfig
take a look at the routing table with:
bt ~ # netstat –nr or with: bt ~ # route –C -n
configure manually network interface with:
bt ~ # ifconfig eth0 ip_address_here netmask subnet_mask_here up
set the default gateway with:
bt ~ # route add default gw ip_address_here
set the dns server with:
bt ~ # echo “nameserver dns_ip_address_here” > /etc/resolv.conf
check interfaces configuration with:
bt ~ # ifconfig –a or for wireless: bt ~ # iwconfig
t
___________________________________________________________________
WiFi with BackTrack
External link to SANS Institute
InfoSec Reading Room
A white paper to help technicians take the stress out of wireless technology with almost 300 tools
as legitimate client or conducting wireless audit
master Wi-Fi with BackTrack 3.
The law is very clear these tools should only on your own network
and must not be used for hacking into any private network.
http://www.sans.org/reading_room/whitepapers/auditing/wifi_with_backtrack_2038