Phase 00.07 · A Safe Place to Practice

Building a Practice Lab

Every other lesson in this track repeats the same rule: you may only attack systems you own or have written permission to test. There is a clean, permanent answer to that rule — build your own lab. A self-contained environment where you own every machine lets you practice the entire track legally and safely, with no one's permission to ask but your own. This lesson shows you the pieces, the isolation rules that keep the lab from becoming a liability, the free and legal targets to point it at, and a minimal first build to get you ready for Phase 01.

00

The permission problem, solved

By now you have heard the rule enough times that it should feel automatic: you may only attack systems you own or have explicit, written permission to test. Running a port scanner, an exploit, or a password cracker against a machine you do not control is not "practice" — in most places it is a crime, and good intentions are not a defense.

That rule sounds like it leaves you nowhere to learn. It does not. The answer is to build a lab: a small, self-contained environment of virtual machines running on your own computer, where you own every host on the network. Inside that boundary you can scan, exploit, escalate, pivot, and crack to your heart's content, because the only systems involved are yours. The lab turns "you may only attack what you own" from a restriction into a workshop.

This is non-negotiable. Never practice the techniques in this track against systems you do not control — not a friend's server, not your employer's network, not a random host on the internet "just to see." Build the lab, stay inside it, and you stay both safe and legal. Every later phase assumes you have one.
Lesson
00.07
Phase
Foundations
You'll need
A hypervisor
01

The pieces of a home lab

A practice lab is just a handful of virtual machines on an isolated virtual network, all running on a single physical computer. Four pieces make up the whole thing:

It all lives on one machine. You do not need a server rack or a second computer. A modern laptop or desktop with enough RAM (8 GB is workable, 16 GB comfortable) can run a hypervisor, an attacker VM, and a target or two at the same time — an entire network on a single device.
02

Isolation and safety

A lab full of intentionally broken machines is useful precisely because those machines are insecure — which is also exactly why you must keep them sealed off. These are the rules that stop your lab from becoming a liability:

Isolation first, always. If you remember one thing from this lesson, make it this: a deliberately vulnerable VM belongs on a host-only or internal network, never bridged to anything real. Get the networking wrong and a practice target becomes a genuine hole in your defenses.
03

Free, legal targets and ranges

You do not have to build vulnerable machines yourself — an entire ecosystem exists to give you safe things to attack. Some are VMs you download and run inside your own lab; others are hosted online ranges that are legal to attack by design, because the owners built them expressly for you to break into. The key idea is the same across all of them: these are explicitly authorized targets, and that authorization is exactly what makes practicing on them safe.

TargetTypeWhat you practice
Metasploitable 2 / 3Vulnerable VMA deliberately broken Linux server stuffed with weak services. The classic first target for service enumeration and exploitation in your own lab.
DVWAVulnerable web app"Damn Vulnerable Web Application" — a tunable web app for practicing SQL injection, XSS, file upload, and other web attacks at adjustable difficulty.
OWASP Juice ShopVulnerable web appA modern single-page web app riddled with realistic flaws and gamified challenges — great for current-style web attacks.
WebGoatVulnerable web appAn OWASP teaching app with guided lessons that walk you through web vulnerabilities one concept at a time.
VulnHubVulnerable VMsA library of free, downloadable "boot-to-root" VMs. Drop one into your lab and work it from initial foothold to full compromise.
TryHackMeHosted rangeGuided rooms hosted online and legal to attack by design. Beginner-friendly, with structured paths and built-in hints.
Hack The BoxHosted rangeHosted machines and challenges, authorized by the platform. Ranges from approachable to brutal; strong for hands-on skill building.
PortSwigger Web Security AcademyHosted labsFree, in-browser web-security labs from the makers of Burp Suite — arguably the best structured web-attack training available.
OverTheWireWargamesSSH-accessible "wargames" that teach Linux, scripting, and exploitation fundamentals through progressive level-by-level puzzles.

Notice the two categories. Downloadable targets — Metasploitable, DVWA, Juice Shop, WebGoat, VulnHub — run inside the isolated lab you built in the last two sections, so isolation rules apply. Hosted ranges — TryHackMe, Hack The Box, PortSwigger, OverTheWire — you connect to over the internet, and they are safe to attack only because the platform authorizes it. Both categories share the one principle that runs through this entire track: practice only against targets you own or have been explicitly given permission to attack.

04

A minimal first build

You do not need the whole ecosystem to start — you need one attacker and one target on an isolated network. Here is the shortest path from nothing to a working lab:

That's a real lab. Two VMs, one isolated network, snapshots taken, connectivity confirmed — and you are ready for Phase 01. You can always add more targets later, but everything that follows in this track is designed to be practiced in exactly this kind of environment.

From here, the rest of the Offensive Security track unfolds against the lab you just built. The next phase begins where every engagement begins: reconnaissance — learning everything you can about a target before you ever send it a packet. Spin up the lab, and let's get started.