background image

268

Appendix A

NOTE

Be careful with your Ubuntu and Windows XP virtual machines, because these systems 
are vulnerable and easy to exploit. Do not conduct any sensitive activities on these 
machines: If you can exploit them, anyone else can, too.

If you don’t already have the free VMware Player for Windows and Linux, 

download and install it. If you’re using OS X, download the free 30-day trial 
of VMware Fusion. (If you’re running Windows, you can also use the free 
VMware Server edition.)

After you have installed VMware, double-click the 

.vmx

 file to use with 

VMware, or open the virtual machine files in VMware Player by choosing 

File

Open

 and pointing to the folder that contains all the virtual machines 

and associated files. If you’re installing from an ISO disc image, create a new 
virtual machine and specify this ISO file as the CD-ROM device.

NOTE

Download Back|Track from 

http://www.backtrack-linux.org

/ and Ubuntu 9.04 

from 

http://www.vmware.com/appliances/directory

/ by searching for Ubuntu 

9.04. Metasploitable can be downloaded from 

http://blog.metasploit.com/2010/

05/introducing-metasploitable.html

.

Booting Up the Linux Virtual Machines

After powering on either of the Linux virtual machines, you need to log in. 
The default credentials for both Linux environments are username 

root

 and 

password 

toor

.

If you don’t have a DHCP server on your network, find your system’s 

address range and use the commands shown in the following listing. (Make 
sure that you replace your IP address with an unused one, and edit the net-
work interface that you will be using. For more on manual network setup, see 

http://www.yolinux.com/TUTORIALS/LinuxTutorialNetworking.html

.)

root@bt:~# 

nano /etc/network/interfaces

Password: 
<inside the nano editor place your valid information into the system>
# The primary network interface
auto eth0 # the interface used 
iface eth0 inet static # configure static IP address
      address 192.168.1.10 # your IP address you want
      netmask 255.255.255.0 # your subnet mask
      network 192.168.1.0 # your network address
      broadcast 192.168.0.255 # your broadcast address
      gateway 192.168.1.1 # your default gateway
<control-x>
<y> 

After configuration is complete, your Linux environment should be 

ready for use. Do not update the Ubuntu installation, because this system 
should remain vulnerable.