Exercise: Setting up a Penetration Testing Lab with Kali Linux and Windows 7 in
VirtualBox

Step 1: Download and Install VirtualBox

● Download the latest version of VirtualBox from the official website:
https://www.virtualbox.org/wiki/Downloads
● Install VirtualBox by following the instructions provided in the installation wizard.

Step 2: Download the Kali Linux and Windows 7 virtual machine images

● Download the Kali Linux virtual machine image from the following link:
https://www.kali.org/downloads/
● Download the Windows 7 virtual machine image from the following link:
https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/

Step 3: Create a new virtual machine for Kali Linux

● Open VirtualBox and click on the “New” button to create a new virtual machine.
● Name the virtual machine as “Kali Linux” and select “Linux” as the type and “Other
Linux” as the version.
● Allocate at least 2GB of RAM for the virtual machine and create a new virtual hard
drive.

Step 4: Create a new virtual machine for Windows 7

● Repeat the same process as step 3 to create a new virtual machine named
“Windows 7”
● Allocate at least 2GB of RAM for the virtual machine and create a new virtual hard
drive.

Step 5: Import the virtual machine images

● Click on the “File” menu and select “Import Appliance”
● Select the downloaded Kali Linux and Windows 7 virtual machine images and import
them into VirtualBox.

Step 6: Configure the virtual machines

● Start the Kali Linux virtual machine and configure the network settings to “Bridged
Adapter”
● Start the Windows 7 virtual machine and configure the network settings to “Bridged
Adapter” as well.

Step 7: Disable the firewall on Windows 7

● Once Windows 7 starts, click on the “Start” button and type “Firewall” in the search
bar.
● Click on “Windows Firewall” and select “Turn Windows Firewall on or off”
● Select “Turn off Windows Firewall (not recommended)” for both private and public
networks.

Step 8: Start Penetration Testing

● You can now use the Kali Linux virtual machine to perform penetration testing on the
Windows 7 virtual machine.
● Keep in mind that this is a lab setup and you should not perform any actions on any
machine or network without permission.

Note:
● Make sure that your host machine has enough resources (RAM, CPU, and storage)
to run two virtual machines simultaneously
● Keep in mind that Windows 7 is no longer supported by Microsoft and you should use
a more recent version of Windows for security reasons
● Remember that disabling the firewall on Windows 7 is not recommended in real-
world scenarios as it leaves the machine vulnerable to attacks.

Open chat
Hello 👋.
Tell me, how can I help you?