Skip to content

Latest commit

 

History

History
97 lines (48 loc) · 3.48 KB

File metadata and controls

97 lines (48 loc) · 3.48 KB

Install Metasploitable 2

Summary:

This walkthrough will install Metasploitable 2.

Below is the network diagram.

image.png

*The exact IP addresses may be different, but should be withen the same subnet.

Downloads

Download Metasploitable 2 and Windows from the links below.

Metasploitable 2 | Metasploit Documentation

Select the sourceforge link.

image.png

Select Download.

image.png

Unzip Metasploitable. I recommend using 7-zip.

image.png

Install Metasploitable 2

  1. Ensure pfSense is running.

  2. Select Machine —>New

image.png

  1. Type in the VM name, folder you want to save it in, type=Linux, and Version=Debian(64-bit). Leave the ISO Image as not selected for now. Select Next.

image.png

  1. Go to Hardware and change Base Memory to 2048MB and keep the CPU as 1.

image.png

  1. Under Hard Disk, select “Do Not Add Virtual Hard Disk” and select Finish.

image.png

  1. Go to Settings and select Storage. Then highlight Controller:SATA and click the icon to add a hard disk.

image.png

  1. Click add and select the .vmdk file where you saved the unzipped folder and select Open.

image.png

  1. Highlight Metaspoitable.vmdk and select Choose.

image.png

  1. You should now see it listed under the controller.

image.png

  1. Go to Audio tab and deselect audio.

image.png

  1. Go to Network and select Adapter 1, Internal Network, and change the Name to LAN 1

image.png

On adaptor type, do not use Paravirtualized Network (virtio-net) adapter for Metasploitable 2. Use PCnet-FAST III instead. Virtio-net doesn't work with Metasploitable because Metasploitable uses an old kernel with no Built-in VirtIO Driver. Metasploitable 2 is based on Ubuntu 8.04 (really old). That kernel doesn’t include drivers for virtio-net, so it can’t detect or use the network card at all. No Guest Additions or Modules Preinstalled: Virtio-net often requires modern Linux distributions or manual driver installation, which isn’t feasible or recommended in Metasploitable 2. Virtio is optimized for performance, not compatibility: It's great for modern OSes (e.g., modern Debian, Ubuntu, Fedora, etc.) but not backward-compatible with older systems unless you build support in.

  1. Disable USB.

image.png

Testing Our Configuration

Start Metasploitable 2.

image.png

Log in with the creds msfadmin:msfadmin

image.png

Check the IP address by typing ifconfig

image.png

As seen above, we have correctly configured Metasploitable 2 in the Ecorp LAN.