Bài thực hành (cài đặt trên náy tính của học viên tại lớp học hoặc cài trên máy tính làm việc tại văn phòng / on-site)
What is BackTrack
- 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
- BackTrack Download
Section 1. Create a New Virtual Machine |
- Create a New Virtual Machine. (See Below)
- New Virtual Machine Wizard
- Instructions:
- Select the radio button "Installer disc image file (iso):"
- Click the Browse Button.
- Navigate to where you BT5 iso is located.
- Select the BT5 iso
- Click Next
- Instructions:
- New Virtual Machine Wizard
- Instructions:
- Guest operating system: Linux
- Version: Ubuntu
- Select Next
- Instructions:
- New Virtual Machine Wizard
- Instructions:
- Virtual machine name: BackTrack5R1
- Location: In my case, I saved it to my USB drive, located in H:\BackTrack5R1\
- Select Next
- Instructions:
- New Virtual Machine Wizard
- Instructions:
- Maximum disk size (GB): For our purposes use 20GB.
- Radio Button: Store virtual disk as an single file
- Select Next
- Instructions:
- New Virtual Machine Wizard
- Instructions:
- Click on the "Customize Hardware..." button
- Instructions:
- New Virtual Machine Wizard
- Instructions:
- Click on Memory (which is highlighted in blue)
- Click on 512 MB. (Recommended is 1024 MB, but not really needed for lab purposes).
- Do not click on OK
- Instructions:
- New Virtual Machine Wizard
- Instructions:
- Click on Network Adapter
- Click on "Bridged: Connected directly to the physical network"
- Click OK.
- Instructions:
- Click on the Finish button.
- Instructions:
- Click the Customize Hardware... button
- Instructions:
- Start the Boot Process
- Instructions:
- Press Enter
- Instructions:
- BackTrack Live CD
- Instructions:
- Select "BackTrack Text - Default Boot Text Mode"
- Press <Enter>
- Instructions:
- Bring up the GNOME
- Instructions:
- Type startx
- Instructions:
Section 2. Install BackTrack to Harddrive |
- Install BackTrack to Harddrive
- Instructions:
- Option 1: Double Click on the icon labeled "Install BackTrack"
- OR
- Option 2: System --> Administration --> Install BackTrack Live
- Option 1: Double Click on the icon labeled "Install BackTrack"
- Instructions:
- Select Language
- Instructions:
- In my case: English.
- Click Forward
- Instructions:
- Select Language
- Instructions: (In my case)
- Region: English
- Time Zone: United States (Chicago)
- Click Forward
- Instructions: (In my case)
- Select Language
- Instructions: (In my case)
- Suggested option: USA
- Click Forward
- Instructions: (In my case)
- Select Language
- Instructions:
- Select "Erase and use the entire disk"
- Select Forward
- OR Note (This is optional)
- 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.
- If you select "Specify partitions manually", then you can create you own file systems layout.
- Instructions:
- Select Language
- Instructions:
- Click on Install
- Instructions:
- Informational
- Note(FYI):
- The installation process will take between 10 and 45 minutes depending on your systems resources.
- Note(FYI):
- Consistency Reboot
- Instructions:
- Click on Restart Now
- Instructions:
Section 3. Login to BackTrack |
- Edit Virtual Machine Settings
- Instructions:
- Virtual Machine --> Virtual Machine Settings...
- Instructions:
- Edit CD/DVD (IDE)
- Instructions:
- Select CD/DVD (IDE)
- Click on Use physical drive:
- Select Auto detect
- Click the OK Button
- Instructions:
- Login to BackTrack
- Instructions:
- Login: root
- Password: toor
- Instructions:
- Bring up the GNOME
- Instructions:
- Type startx
- Instructions:
- Bring up a console terminal
- Instructions:
- Click on the Terminal Console Icon
- Instructions:
- Change root's password
- Instructions:
- passwd root
- Use our standard class password
- Instructions:
- Create a student account and set password
- Instructions:
- useradd -m -d /home/student -c "Security Student" -s /bin/bash student
- passwd student
- Use our standard class password
- Instructions:
Section 4. Installing VMware Tools |
- Why are we installing VMware tools?
- It's nice to be able to cut and paste from the host machine into the VMWare instance.
- Install build-essentials and linux-headers
- Instructions:
- You must be root!!!
- aptitude install build-essential linux-headers-$(uname -r)
- Instructions:
- Installation Question and Answer
- Instructions:
- Do you want to continue? [Y/n/?] Y
- Instructions:
- Mount VMware Tools
- Instructions:
- Virtual Machine --> Install VMware Tools...
- Instructions:
- Check if VMware Tools is mounted
- Instructions:
- df -k
- Notice that /media/VMware Tools is mounted.
- Instructions:
- VMware Tools Set Up Work
- Instructions:
- cd /media/VMware\ Tools
- ls -lrta
- cp VMwareTools* /var/tmp
- cd /var/tmp
- gunzip VMwareTools*
- tar xovf VMwareTools*
- Instructions:
- Install VMware Tools
- Instructions:
- cd /var/tmp/vmware-tools-distrib
- ./vmware-install.pl
- yes
- Instructions:
- Press Enter on the following Questions (See Below)
- Press Enter on the following Questions (See Below)
- Press Enter on the following Questions (See Below)
- Note(FYI):
- Answer "no" to changing the kernel header path...
- Note(FYI):
- Press Enter on the following Questions (See Below)
Section 5. Proof of Lab |
- Proof of Lab
- Note(FYI):
- A new /boot/initrd.img-2.6.39.4 will be generated.
- You will have to reboot for the changes to take affect.
- Instructions:
- cd /
- ls -l /boot/initrd.img-2.6.39.4
- echo "Your Name"
- Replace the string "Your Name" with your actual name.
- e.g., echo "Nguyen Van Minh"
- Proof of Lab Instructions
- Press both the <Ctrl> and <Alt> keys at the same time.
- Do a <PrtScn>
- Paste into a word document
- Email to CSiRT247@Gmail.Com
- Note(FYI):
- Power Off Machine
- Note(FYI):
- If you want to continue using BackTrack, then don't power off the machine.
- Instructions:
- poweroff
- Note(FYI):
0 nhận xét:
Đăng nhận xét