Introduction
Red‑teamers need a safe, isolated environment where they can practice network reconnaissance, privilege‑escalation, C2, and exfiltration without touching production systems. A personal lab also serves as a reproducible test‑bed for validating findings, testing tooling, and demonstrating TTPs during Purple‑team workshops. In Pakistan, where broadband routers, ISP‑provided ONTs, and local fintech apps (easypaisa, JazzCash) are common targets, having a lab that mirrors those components accelerates skill transfer.
Lab Architecture
Design the lab with three logical zones:
- Management network (Host‑Only or NAT) for Kali Linux, Windows Server, and auxiliary tools.
- Target subnet (Internal VLAN) containing a vulnerable Windows‑10 client, a domain controller (Windows Server 2019), and a mock‑fintech web app.
- External zone (Bridged) to simulate internet‑facing services like a fake OLX‑style marketplace portal.
VirtualBox or VMware Workstation can run all VMs on a single laptop. Use pfSense as a lightweight router/firewall to enforce segmentation and to practice lateral‑movement through ACLs.
Step‑by‑Step Build
- Install a hypervisor (VirtualBox 7.x or VMware Player) on a Windows/Linux host.
- Create a Host‑Only network and a second internal network for the target VLAN.
- Deploy Kali Linux (latest rolling) – this is your attacker workstation.
- Spin up a Windows Server 2019 – configure it as an Active Directory domain controller (e.g.,
lab.local). Add a Windows‑10 client and join it to the domain. - Add a vulnerable DVWA VM or Metasploitable3 on the target subnet for practice.
- Install pfSense as a VM, attach two NICs (Host‑Only and Internal) and configure basic firewall rules to allow ICMP, HTTP, and DNS while blocking SMB.
- Snapshot each VM after the base OS is installed, so you can reset quickly.
- Run a basic Nmap scan from Kali to verify connectivity and confirm that the target subnet is reachable only through pfSense.
Local Considerations
- Pakistani ISPs often supply GPON ONT devices with default telnet credentials. While you cannot exploit those directly in a lab, replicate the same firmware version on a separate VM to practice default‑credential attacks.
- If you intend to test mobile apps (e.g., JazzCash) remember to download the APK from a trusted source, decompile it with jadx, and place the APK on a simulated Android emulator within the lab.
Takeaway
By the end of this lesson you will have a fully isolated, multi‑tier lab that mimics a typical Pakistani enterprise environment. Use this lab to practice the full attack lifecycle, validate toolchains (Nmap, BloodHound, Cobalt Strike), and to safely experiment before touching any production system. Remember to keep the lab offline or behind a strong NAT to avoid accidental exposure to the internet.
