Setup

Setting Up Your Hacking Lab

Build the Playground

Before you dive into real attacks, you need a safe and controlled space to practice. This lab setup includes:


1. Install VirtualBox

Time to get our virtual lab rolling! Download and install VirtualBox from the official site:
https://www.virtualbox.org

Not sure how to install it? No worries! Google has your back. And as long as these links play along, here's one great option for Windows users:
How to Install Virtualbox on Windows


2. Get Kali Linux

Now that VirtualBox is ready, it's time to bring in our hacking toolbox: Kali Linux.

Head over to kali.org and download the VirtualBox image.

Need help with the setup? Google will gladly assist — or check out this helpful YouTube guide:
How to Install Kali Linux on VirtualBox


Heads up: Sometimes, things don't go as smoothly as in the video. If Kali doesn't magically appear in VirtualBox after downloading, unzipping and clicking, don't panic. (Like I did when it first happened.) Just import it manually like we are also going to do in the next step:

VirtualBox → File → Import Appliance -> Choose the right file

That's it! You're almost there.


3. Import the Target Machine

Ok, let's bring in our target! We'll be importing a pre-configured vulnerable server that you'll be testing during the simulation.

The server is called DaVivianCode-Server, and it's waiting for you to unleash your inner hacker. Download the virtual machine file (.ova) below and import it into VirtualBox.

Once downloaded:

  1. Open VirtualBox
  2. Go to File → Import Appliance
  3. Importing
  4. Select the downloaded file
  5. Click Finish

Smooth, right? You just added your target machine to the lab. Just like that.

Right now we are here:

Virtualization

On our host machine we're running VirtualBox—a Type-2 hypervisor and virtualization platform—which hosts two VMs: Kali Linux and the DaVivianCode-Server, which is very much an Ubuntu server.

Problem: Currently Kali and DaVivian are like party guests on opposite sides of the room — time to connect the NAT network so they can mingle.


4. Create a NAT Network

Alright, time for a little VirtualBox magic. This step lets Kali and our target server finally talk to each other inside your lab.

  1. Open VirtualBox → Click ToolsNetwork
  2. VirtualBox
  3. Enable Network Adapter
  4. Select NAT Networks → Click + to create a new one
  5. Give your network a nice name (Because why not? Mine is so lame. It's sad.)
  6. Set IPv4 to something like: 192.168.30.0/24
  7. Make sure DHCP is enabled
  8. Click Apply
  9. VirtualBox_NAT

Nice! You've created your NAT network. But right now, your VMs are still like “uh... what's happening?” So let's plug them into the network. If your VMs are running, power them off first so we can adjust their settings safely.

  1. Select DaVivianCode-Server in VirtualBox
  2. Go to Settings
  3. Go to Network
  4. Choose NAT Networks
  5. Pick the NAT network you just created
  6. Click OK
  7. NetworkSettings
  8. Repeat the same for your Kali Linux machine
  9. Then hit that green Start button on both VMs and bring them back to life

Boom! Now both machines are on the same private network. They can chat with each other, but they're cut off from the outside world. Perfect for our safe and controlled hacking playground. Here's what your setup now looks like:

NAT

All Set?

Ok, we are good to go!