Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Setting up a NAT Network for Penetration Testing with Metasploit in Virtualbox, Study Guides, Projects, Research of Computer Networks

Instructions on how to set up a NAT network for two virtual machines, one running Kali Linux with Armetage and Metasploit installed, and the other for exploiting. The virtual machines are set up with NAT adapters in Virtualbox, and each VM is assigned a unique IP address. the difference between NAT and Host-Only networks and provides steps to set up a NAT network in Virtualbox.

Typology: Study Guides, Projects, Research

2021/2022

Uploaded on 09/27/2022

hardcover
hardcover 🇺🇸

4.7

(7)

259 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Lab2: Penetration Testing with Metasploit – How to Set It
Up Using NAT Adapters.
by Zaina Malhis
This illustration uses 2 virtual machines:
Kali vm with Armatage installed
Metasploit vm for exploiting
Have both VMs set for NAT adapters in Settings (the lab assignment suggests using Host Only adapters).
Make sure the MAC address of each VM is different (this is 99% likely so if you ignore this you will
probably be OK.
Setting up Nat networking
NAT vs NAT network:
The idea of using a virtual machine is to provide a maximum security by separating the host and
different virtual machine, so by default virtual machines do not communicate with each other.
When using the NAT networking option in Virtualbox, each machine acts like a real computer connected
directly to the Internet though a router (Virtualbox network engine) and all machines using the NAT
option are given the same IP address as the VMs are separated and can’t see each other
The following two images illustrate this. The first image is for the Metasploitable VM using the NAT
adapter and the second one is for the Kali VM using the NAT adapter
One way to set up a network for VMs and allow them to communicate is to use the Host-Only option.
But this can be done using the NAT network option.
pf3
pf4
pf5

Partial preview of the text

Download Setting up a NAT Network for Penetration Testing with Metasploit in Virtualbox and more Study Guides, Projects, Research Computer Networks in PDF only on Docsity!

Lab2: Penetration Testing with Metasploit – How to Set It

Up Using NAT Adapters.

by Zaina Malhis

This illustration uses 2 virtual machines:  Kali vm with Armatage installed  Metasploit vm for exploiting Have both VMs set for NAT adapters in Settings (the lab assignment suggests using Host Only adapters). Make sure the MAC address of each VM is different (this is 99% likely so if you ignore this you will probably be OK.

Setting up Nat networking

NAT vs NAT network: The idea of using a virtual machine is to provide a maximum security by separating the host and different virtual machine, so by default virtual machines do not communicate with each other. When using the NAT networking option in Virtualbox, each machine acts like a real computer connected directly to the Internet though a router (Virtualbox network engine) and all machines using the NAT option are given the same IP address as the VMs are separated and can’t see each other The following two images illustrate this. The first image is for the Metasploitable VM using the NAT adapter and the second one is for the Kali VM using the NAT adapter One way to set up a network for VMs and allow them to communicate is to use the Host-Only option. But this can be done using the NAT network option.

A NAT network works as a private network connected to the Internet through a router where each VM is assigned a different IP address from the same subnet provided by the DHCP server that is created by Virtualbox. Alternativey, a Host-Only network work is a private network that is isolated from the Internet. Setting a NAT network In VirtualBox

  1. Open preferences from the file menu
  2. Click on the ‘add new NAT network icon’ which is circled below
  3. This creates a NAT network. Click on the ‘edit setting icon’ which is circled below (or right click NAT network) to check and edit the setting as needed

Run ifconfig on the Kali and Metasploitable VMs. The following is the result. Notice the IP addresses are different below. Note: If you have more than one adapter connected to same VM and you’d like to disable one of them without turning off the VM, you can do that by right clicking the Network Settings icon ( ) in the lower right corner of the VM and connect/disconnect it.