Building Your Lab
Before you touch a single hacking tool, you need somewhere safe to use it. This section helps you build a virtual lab — a set of computers that live inside your real computer, completely walled off from your home network and the internet.
What you'll achieve in this section: a working install of VirtualBox and a private, isolated network that your attack machine and targets will share — and nothing else can reach.
Why a virtual lab?
Penetration testing involves running real exploits against real (but deliberately broken) systems. You must never do this on machines you don't own, or on a network connected to other people. A virtual lab solves this perfectly:
- Safe — vulnerable targets are sealed off from your real devices and the internet.
- Legal — you own every machine in the lab, so you can attack them freely.
- Disposable — broke something? Restore a snapshot or rebuild the VM in minutes.
- Free — every tool we use is free and open source.
What is virtualisation?
A hypervisor like VirtualBox lets one physical computer (the host) run several virtual computers (guests) at the same time. Each guest has its own virtual CPU, memory, disk, and network card, and behaves like a real, separate machine. We'll run our Kali attack box and our vulnerable targets as guests on your everyday computer.
What's in this section
Install VirtualBox
Download, verify, and install Oracle VirtualBox and its Extension Pack on your computer.
1.2Lab Networking & Isolation
Create a host-only network so your lab can talk to itself — but never to the outside world.
The plan
- Install the VirtualBox hypervisor (guide 1.1).
- Create an isolated host-only network (guide 1.2).
- Move on to Section 02 to build your Kali attack machine.
- Then Section 03 to add vulnerable targets.