n00bpentesting.com - Guía de Instalación del Laboratorio de Prácticas
-
Upload
el-hacklab -
Category
Documents
-
view
222 -
download
0
description
Transcript of n00bpentesting.com - Guía de Instalación del Laboratorio de Prácticas
n00bpentesting.com
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 2
Prerequisites 3 Hardware 3 Software 3
Installing VirtualBox 4 Installing BackTrack 8 Installing Metasploitable 15
On Windows 22 On Linux/MacOSX 22
Booting BackTrack and Metasploitable 23 What’s Next? 25
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 3
Prerequisites Thank you for downloading the n00bpentesting.com Lab Setup Guide. This guide is designed to help the n00b penetration tester build a basic lab to use while following along with lab guides.
Hardware
• Computer with Linux, Windows, or Mac OSX • 4GB RAM • Hard-‐drive with at least 50GB
Software VirtualBox Virtualization Software http://www.virtualbox.org/wiki/Downloads BackTrack 5 R1 Virtual Machine http://www.backtrack-‐linux.org/downloads Windows XP SP2 Virtual Machine Supply your own copy or use a NIST Image NIST -‐ http://nvd.nist.gov/fdcc/download_fdcc.cfm Metasploitable Virtual Machine http://updates.metaspoit.com/data/Metasploitable.zip.torrent
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 4
Installing VirtualBox 1. Download VirtualBox from the link provided on page 3. 2. Double-‐click the installer file 3. Click Next
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 5
4. Click Next
5. Click Next
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 6
6. Click Yes
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 7
7. Click Install
8. Click Finish
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 8
Installing BackTrack This section covers installing BackTrack in VirtualBox. There are two options with installing BackTrack as a virtual machine. A prebuilt VM can be downloaded and opened in VirtualBox or the BackTrack ISO can be downloaded and installed in the same manner of a complete hard disk install. There are several instances of documentation on-‐line for installing BackTrack. We will cover opening the pre-‐built BackTrack VM for simplicity.
1. Go to the provided download link for BackTrack and select BackTrack 5 R1 2. Select Image type of “VMWare”, download
The file is compressed and will need unzipped. I suggest 7-‐Zip.
3. Launch VirtualBox 4. Click “New” from the VirtualBox Manager Window 5. The “New Virtual Machine Wizard” will launch, click Continue
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 9
6. Name the Virtual Machine “BackTrack5R1” 7. Select Operating System: Linux 8. Select Version: Ubuntu
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 10
9. Click Continue 10. Set the memory at 512MB
11. Click Continue 12. Check the Start-‐up Disk box 13. Select “Use existing hard disk” 14. Click on the folder to the right of the dropdown and browse to the location where BackTrack is unzipped.
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 11
15. Select “BT5R1-‐GNOME-‐VM-‐32.vmdk”, click Open 16. Click Continue
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 12
17. You will get a summary screen showing the configuration of the VM, click Create.
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 13
18. Highlight the VM and click Settings. 19. Click on Network 20. Adapter 1 should be set to NAT 21. Adapter 2 should be set to Internal Network, give it the name VMlab_1
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 14
22. Click OK
Do not start the VM until metasploitable is installed and the VirtualBox DHCP is configured.
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 15
Installing Metasploitable This section covers opening and configuring the Metasploitable VM in VirtualBox for use with the n00bpentesting.com lab guides.
1. Download the metasploitable torrent from URL on page 3. 2. Use a torrent client such as uTorrent to download the metasploitable VM 3. Unzip the metasploitable VM 4. Launch VirtualBox 5. Click “New” from the VirtualBox Manager Window 6. The “New Virtual Machine Wizard” will launch, click Continue
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 16
7. Name the VM: metasploitable 8. Operating System: Linux 9. Version: Linux 2.6
10. Click Continue
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 17
11. Set the memory to 256MB
12. Click Continue
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 18
13. Check the Start-‐up Disk box 14. Browse to location of the unzipped metasploitable VM 15. Select “metasploitable.VMDK”, click Open
16. Click Continue
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 19
Summary will be displayed, verify information is correct.
17. Click Create
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 20
18. Highlight the VM and click Settings > Network 19. Enable Adapter 1 20. Set attached to “Internal Network” 21. Name the internal network “VMlab_1” 22. Click OK
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 21
23. Click on System > Processor On Windows hosts the Enable PAE/NX must be checked for metasploitable to boot.
24. Click OK
Do not power on virtual machines until the following step is completed.
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 22
VirtualBox DHCP Configuration In order for the BackTrack and Metasploitable VMs to communicate over the internal network, we must configure VirtualBox as a DHCP server.
On Windows 1. Open CMD and change directory to installation directory then run: VBoxManage dhcpserver add -‐-‐netname VMlab_1 -‐-‐ip 192.168.99.100 -‐-‐netmask 255.255.255.0 -‐-‐lowerip 192.168.99.101 -‐-‐upperip 192.168.99.150 -‐-‐enable
On Linux/MacOSX 1. Open Terminal and run: VBoxManage dhcpserver add -‐-‐netname VMlab_1 -‐-‐ip 192.168.99.100 -‐-‐netmask 255.255.255.0 -‐-‐lowerip 192.168.99.101 -‐-‐upperip 192.168.99.150 -‐-‐enable
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 23
Booting BackTrack and Metasploitable 1. First, boot BackTrack 2. Once logged in, at the command prompt type: ifconfig, press ENTER
This will show you the interfaces on the BackTrack VM
3. At the prompt type: dhclient “intf” for the interface on the internal network, see example
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 24
4. Now boot metasploitable and it should get an IP address automatically. Try to ping the next IP address up.
You are now ready to start the Lab Guides!
n00bpentesting.com Lab Setup
Twitter @shai_saint n00bpentesting.com 25
What’s Next? The next step is Introduction To Penetration Testing – Lab Guide 0ne.