ComputerSecurityStudent (CSS) [Login] [Join Now]




|UNIX >> BackTrack >> BackTrack 5 R1 >> Current Page |Views: 89519

(BackTrack: Lesson 1)

{ Installing BackTrack 5 R1 }


Section 0. Background Information
  1. What is BackTrack5
    • BackTrack is an operating system based on the Ubuntu GNU/Linux distribution aimed at digital forensics and penetration testing use. It is named after backtracking, a search algorithm. The current version is BackTrack 5, code name "Revolution."

    • BackTrack provides users with easy access to a comprehensive and large collection of security-related tools ranging from port scanners to password crackers. Support for Live CD and Live USB functionality allows users to boot BackTrack directly from portable media without requiring installation, though permanent installation to hard disk is also an option

    • BackTrack includes many well known security tools including
      • Metasploit integration
      • RFMON Injection capable wireless drivers
      • Aircrack-NG
      • Kismet
      • Nmap
      • Ophcrack
      • Ettercap
      • Wireshark (formerly known as Ethereal)
      • BeEF (Browser Exploitation Framework)
      • Hydra

  2. Legal Disclaimer
    • As a condition of your use of this Web site, you warrant to computersecuritystudent.com that you will not use this Web site for any purpose that is unlawful or that is prohibited by these terms, conditions, and notices.
    • In accordance with UCC § 2-316, this product is provided with "no warranties, either express or implied." The information contained is provided "as-is", with "no guarantee of merchantability."
    • In addition, this is a teaching website that does not condone malicious behavior of any kind.
    • You are on notice, that continuing and/or using this lab outside your "own" test environment is considered malicious and is against the law.
    • © 2012 No content replication of any kind is allowed without express written permission.

 

Section 1: Download BackTrack 5R1
  1. Open Firefox (On Local Host Machine)
    • Instructions:
      1. Click the Start Button
      2. Type firefox in the search box
      3. Click the firefox icon

     

  2. Download BackTrack 5R1
    • Instructions:
      1. Navigate to one of the following URLs
        • http://old.kali.org/backtrack-images/backtrack-5/backtrack-5r1-gnome-i386/BT5R1-GNOME-32.iso
      2. Click the Save File Radio Button
      3. Click the OK Button

     

  3. Download Location
    • Instructions:
      1. Navigate to a desired destination location of your choosing.
        • In my case, I will save BT5R1-GNOME-32.iso to E:\ISOs, which is my external usb drive.
      2. Click the OK Button

 

Section 2: Create a New Virtual Machine
  1. Create a New Virtual Machine. (See Below)
    • Instructions:
      1. Click on Home
      2. Click on Create a New Virtual Machine

     

  2. Installation Media
    • Instructions:
      1. Select the radio button "Installer disc image file (iso):"
      2. Click the Browse Button.
      3. Navigate to where your BT5R1-GNOME-32.iso is located and select it.
      4. Click Next

     

  3. Select a Guest Operating System
    • Instructions:
      1. Guest operating system:  Linux
      2. Version: Ubuntu
      3. Select Next

     

  4. New Virtual Machine Wizard
    • Instructions:
      1. Virtual machine name: BackTrack5R1
      2. Location: In my case, I saved it to my USB drive, located in E:\BackTrack5R1\
      3. Select Next

     

  5. New Virtual Machine Wizard
    • Instructions:
      1. Maximum disk size (GB): For our purposes use 30GB.
      2. Radio Button:  Store virtual disk as an single file
      3. Select Next

     

  6. New Virtual Machine Wizard
    • Instructions:
      1. Click on the "Customize Hardware..." button

     

  7. Configure Memory
    • Instructions:
      1. Click on Memory (which is highlighted in blue)
      2. Click on 512 MB. (Recommended is 1024 MB, but not really needed for lab purposes).
      3. Do not click on OK

     

  8. Configure Network Adapter
    • Instructions:
      1. Click on Network Adapter
      2. Click on "Bridged: Connected directly to the physical network"
      3. Click OK.

     

  9. Finish Configuration
    • Instructions:
      1. Click the Finish button

     

  10.  Start the Boot Process
    • Instructions:
      1. Press Enter

     

  11. BackTrack Live CD
    • Instructions:
      1. Select "BackTrack Text - Default Boot Text Mode"
      2. Press <Enter>

     

  12. Bring up the GNOME
    • Instructions:
      1. Type startx

 

Section 3: Install BackTrack to Hard drive
  1. Install BackTrack to Hard drive
    • Instructions:
      1. Option 1: Double Click on the icon labeled "Install BackTrack"
        • OR
      2. Option 2: System --> Administration --> Install BackTrack Live

     

  2. Select Language
    • Instructions:
      1. In my case: English.
      2. Click Forward

     

  3. Select Region and Time Zone
    • Instructions: (In my case)
      1. Region: United States
      2. Time Zone: United States (Chicago)
      3. Click Forward

     

  4. Select Keyboard layout
    • Instructions: (In my case)
      1. Suggested option: USA
      2. Click Forward

     

  5. Prepare disk space
    • Instructions:
      1. Select "Erase and use the entire disk"
      2. Select Forward
    • OR Note (This is optional)
      1. If you select "Specify partitions manually", then you can create you own file systems layout.
        • /     - 2000 MB
        • /boot - 500  MB
        • swap  - 1280 MB (Double Memory)
        • /tmp  - 1000 MB
        • /home - 2000 MB
        • /var  - 2000 MB
        • /usr  - 3000 MB
        • Then use the rest as needed using volume management.

     

  6. Ready to install
    • Instructions:
      1. Click on Install

     

  7. Informational
    • Note(FYI):
      • The installation process will take between 10 and 45 minutes depending on your systems resources.
      • It will be stuck on "99% Almost finished copying files" for a good percentage of the installation.

     

  8. Consistency Reboot
    • Instructions:
      1. Click on Restart Now

     

  9. System is going down
    • Instructions:
      1. Press <Enter>

 

Section 4: Login to BackTrack
  1. Edit Virtual Machine Settings
    • Instructions:
      1. Player --> Manage --> Virtual Machine Settings...

     

  2. Edit CD/DVD (IDE)
    • Instructions:
      1. Select CD/DVD (IDE)
      2. Click on Use physical drive:
      3. Select Auto detect
      4. Click the OK Button

     

  3. Login to BackTrack
    • Instructions:
      1. Login: root
      2. Password: toor

     

  4. Bring up the GNOME
    • Instructions:
      1. Type startx

     

  5. Remove Install BackTrack Icon
    • Note(FYI):
      1. We will remove the Install BackTrack Icon to prevent any future accidents.
    • Instructions:
      1. Right Click on the Install BackTrack Icon
      2. Click Move to Trash

     

  6. Bring up a console terminal
    • Instructions:
      1. Click on the Terminal Console Icon

     

  7. Change root's password
    • Note(FYI): General Password Rules
      1. Password needs to be at least 8 characters in length
      2. Password needs to contain uppercase letters
      3. Password needs to contain lowercase letters
      4. Password needs to contain at least one number
      5. Password needs to contain at least special character (!@#$%^&*)
    • Instructions:
      1. passwd root
      2. Enter new UNIX password: <See General Password Rules>
      3. Retype new UNIX password: <Re-Entered Same Password>

     

  8. Create a student account and set password
    • Note(FYI): General Password Rules
      1. Password needs to be at least 8 characters in length
      2. Password needs to contain uppercase letters
      3. Password needs to contain lowercase letters
      4. Password needs to contain at least one number
      5. Password needs to contain at least special character (!@#$%^&*)
    • Instructions:
      1. useradd -m -d /home/student -c "Security Student" -s /bin/bash student
      2. passwd student
      3. Enter new UNIX password: <See General Password Rules>
      4. Retype new UNIX password: <Re-Entered Same Password>

 

Section 5: Installing VMware Tools
  1. Install VMware Tools
    • Note(FYI):
      • We are installing VMware Tools, because it gives you the ability to cut and paste from the host machine and other VMware instances into this VMware instance.
    • Instructions:
      1. Player --> Manage --> Install VMware Tools...

     

  2. Check if VMware Tools is mounted
    • Instructions:
      1. df -k
      2. cp /media/VMware\ Tools/*.tar.gz /var/tmp/
      3. cd /var/tmp/
      4. ls -l *.tar.gz
    • Note(FYI):
      1. Notice that VM Tools is mounted on /media/VMware Tools

     

  3. Extract VMware Tools
    • Instructions:
      1. ls -lrta
      2. tar zxovf VMwareTools*.tar.gz
    • Note(FYI):
      • tar, stores and extracts files.
        • z - filter the archive through gzip
        • x - Extract.
        • o - it prevents tar from restoring ownership of files being extracted
        • v - Verbose
        • f - Supply File name (ie. VMwareTools*.tar.gz)

     

  4. Install VMware Tools
    • Instructions:
      1. cd /var/tmp/vmware-tools-distrib
      2. ls -l
      3. perl vmware-install.pl default
    • Note(FYI):
      • The installation will take about 2 minutes and requires not manual input.

 

Section 6: Consistency Reboot
  1. Consistency Reboot
    • Instructions:
      1. cd /
      2. reboot
    • Note(FYI):
      • A consistency reboot is necessary to ensure that VMware Tools is activated.

     

  2. Login to BackTrack
    • Instructions:
      1. Login: root
      2. Password: <Support the Root Password>

     

  3. Bring up the GNOME
    • Instructions:
      1. Type startx

 

Section 7: Update Repository Package List
  1. Get Links to Old Patch Repository
    • Instructions
      1. cd /etc/apt/
      2. mv sources.list sources.list.BKP
      3. wget http://www.computersecuritystudent.com/UNIX/BACKTRACK/BACKTRACK5R1/lesson1/deb.txt
      4. mv deb.txt sources.list
      5. cat sources.list
    • Notes(FYI)
      • The BackTrack5R1 repository is no longer supported, so it is necessary to use the Lucid 10.04 Ubuntu Patch Repository, just encase we need to download a package in the future.
      • The deb.txt file contains links to the old Lucid 10.04 Ubuntu Patch Repository.

     

  2. Update the Apt Package Repository
    • Instructions
      1. apt-get update
    • Notes(FYI)
      • apt-get update downloads the package lists from the repositories and "updates" them to get information on the newest versions of packages and their dependencies.

 

Section 8: Terminal Window Color Preferences
  1. Bring up a console terminal
    • Instructions:
      1. Click on the Terminal Console Icon

     

  2. Open Profile Preferences
    • Instructions
      1. Edit --> Profile Preferences

     

  3. Foreground, Background, and Bold
    • Instructions
      1. Click on the Colors Tab
      2. Built-in scheme: Black on white

     

  4. Transparent Background
    • Instructions
      1. Click on the Background Tab
      2. Click on the Transparent background radio button
      3. Move the Slider over to Maximum
      4. Click the Close Button

 

Section 9: Proof of Lab
  1. Proof of Lab
    • Note(FYI):
      • initrd.img-2.6.39.4 is the "initial ramdisk". It stores necessary drivers required so that the kernel can mount / and kick off init.
    • Instructions:
      1. cd /boot/
      2. ls -l initrd.img*
      3. cd /etc/apt/
      4. cat sources.list
      5. echo "Your Name"
        • Replace the string "Your Name" with your actual name.
        • e.g., echo "John Gray"
    • Proof of Lab Instructions
      1. Press both the <Ctrl> and <Alt> keys at the same time.
      2. Do a <PrtScn>
      3. Paste into a word document
      4. Upload to Moodle

     

  2. Power Off Machine
    • Note(FYI):
      • When finished with any Linux machine, it is always a good idea to poweroff the machine.
      • If you want to continue using BackTrack, then don't power off the machine.
    • Instructions:
      1. poweroff

 



Help ComputerSecurityStudent
pay for continued research,
resources & bandwidth