Start here: build your practice lab
This expanded edition covers every tool in the preceding 20-module cheat sheet. It adds selected tools from the earlier tool list in an extra recognition section. Options are a practical starter set, not every switch in every release. GUI products use settings and menus rather than a universal command line. Commercial, legacy, wireless, AD, and cloud tools have additional prerequisites, identified in their sections.
Authorization: Use only your own isolated lab, purpose-built training systems, or assets covered by explicit permission. Keep scans within the agreed IPs, accounts, and time window. Examples use synthetic credentials and files. Do not point them at public systems just because an address is reachable.
Validation: Commands were reviewed against the linked project/vendor documentation; they were not executed in your environment. Expected results are illustrative, not recorded test results. Release differences, package builds, permissions, and service configurations can change output. Read local help before running each exercise.
Lab profiles
| Profile | What you need | Exercises it supports |
|---|---|---|
| A: Starter | Kali Linux VM, terminal, browser, local files | Nmap, Netcat, HTTP, hashes, metadata, YARA, crypto |
| B: Network | Kali plus Ubuntu target on the same isolated virtual network | SSH, SMB, SNMP, DNS, scanners, packet capture |
| C: Web | DVWA on Kali, bound to localhost; Burp or ZAP | Request editing, sessions, SQLmap, web scanning |
| D: Windows / AD | Disposable Windows VM; separate training domain for AD | Sysinternals, Regshot, BloodHound, Windows tools |
| E: Wireless / mobile | Spare AP and adapter; Android emulator and your test APK | Wi-Fi tools, ADB, MobSF, APKTool, Frida |
| F: Cloud / containers | Local Docker; optional test cluster and separate cloud sandbox | Trivy, kubectl, kube-bench, cloud auditing |
Set up the network
Use your preferred hypervisor and an official Kali image. Suggested starter allocation: 2 virtual CPUs and 4 GB RAM for Kali, plus 2 CPUs and 2-4 GB RAM for Ubuntu, subject to available host memory. Larger scanners and Android emulators need more. Take clean snapshots before exercises.
For two VMs, put both on the same Internal Network, for example ceh-lab. A host-only network is also usable but includes the host. Avoid bridged networking for vulnerable targets. Temporarily use NAT for trusted downloads, then disconnect it before exercises. Disable shared folders for unknown-file analysis.
Configure Kali as 192.168.56.10/24 and Ubuntu as 192.168.56.20/24, with no gateway on the isolated adapter. These are example addresses: first verify that this subnet does not conflict with your existing networks. Set addresses through each VM's network settings. Run the following in each Linux VM to identify the interface and address:
ip -br addr
ip routeOn Kali, create a workspace. All Linux commands below use Bash; do not paste them directly into Windows PowerShell. Each fresh terminal needs the variables again. Unless a section says otherwise, run commands from ~/ceh-lab, including after leaving the DVWA repository. Replace eth0 with the actual isolated interface name.
mkdir -p ~/ceh-lab/reports ~/ceh-lab/www
cd ~/ceh-lab
export TARGET=192.168.56.20
export IFACE=eth0Stop foreground exercises with Ctrl+C. sudo grants local administrative privileges; it does not grant permission to test another computer. <NAME> denotes a placeholder and must be replaced, including the angle brackets. Quotation marks keep URLs and spaces together. > writes a file and replaces existing contents; >> appends. A trailing backslash continues a Bash command on the next line.
Install the first tools
On Kali, while the temporary update connection is available:
sudo apt update
sudo apt install nmap netcat-openbsd hping3 dnsutils whois
sudo apt install tcpdump curl python3 openssl gnupgInstall other packages as you reach their sections; package names and availability may change. Use apt show PACKAGE before installation. For standalone Windows, commercial, and cloud tools, use the linked official installer. Record the installed version and the help output in your notes.
A: a local HTTP target you can build in minutes
In Kali, create harmless content. Keep this server running in terminal 1. For network exercises, first create ~/ceh-lab on Ubuntu, then run the same commands there and bind to its isolated IP, replacing 127.0.0.1 with 192.168.56.20.
cd ~/ceh-lab
mkdir -p www/admin www/docs
printf 'CEH practice homepage\n' > www/index.html
printf 'Practice admin page\n' > www/admin/index.html
printf 'Practice documentation\n' > www/docs/index.html
printf 'admin\ndocs\nmissing\n' > paths.txt
python3 -m http.server 8000 --bind 127.0.0.1 --directory wwwIn terminal 2, curl http://127.0.0.1:8000/ should return your homepage. A connection refusal usually means the server stopped or is bound to a different address. This server provides HTTP, not HTTPS, SQL, authentication, or a real vulnerability lab. Use it for discovery and request inspection.
B: target services
On a disposable Ubuntu target, install the packages while NAT is temporarily available. Disconnect NAT afterward. Create a dedicated user and choose a password used nowhere else. Allow required ports only from Kali if a firewall is enabled.
sudo apt update
sudo apt install openssh-server samba snmpd dnsmasq
sudo adduser labuser
sudo systemctl enable --now sshSMB: Create /srv/ceh-share and a readme.txt in it. Make the directory readable by labuser. Add a Samba password with sudo smbpasswd -a labuser. Append the following share stanza to /etc/samba/smb.conf, validate with sudo testparm, then restart smbd. These steps are for the disposable target, not an existing server.
[labshare]
path = /srv/ceh-share
read only = yes
valid users = labuserSNMP: Back up /etc/snmp/snmpd.conf. For the lab, configure an agent listening on the isolated target address and a read-only community restricted to Kali. Remove conflicting agentAddress entries, then restart snmpd. SNMPv2c is deliberately used here to demonstrate its cleartext community string; production deployments should use appropriate SNMPv3 protection.
agentAddress udp:192.168.56.20:161
rocommunity labpublic 192.168.56.10
sysLocation CEH-LabDNS: Create /etc/dnsmasq.d/ceh-lab.conf with the settings below. Restart dnsmasq. If port 53 is occupied, identify the listener before changing anything. This is a small lab resolver, not an authoritative zone-transfer server.
listen-address=192.168.56.20
bind-interfaces
no-resolv
address=/web.lab.test/192.168.56.20
mx-host=lab.test,mail.lab.test,10
address=/mail.lab.test/192.168.56.20Verify from Kali using the enumeration commands in modules 2 and 4. LDAP requires a separately configured LDAP directory or training AD domain; simply installing a client does not create a directory server.
C: the web application lab
Install Docker Engine and the Compose plugin using Docker's instructions. On Kali, clone the official DVWA repository, review its Compose file, and start it. Preserve its localhost-only published address. Current repository defaults use 127.0.0.1:4280; check the file if your version differs.
cd ~/ceh-lab
git clone https://github.com/digininja/DVWA.git
cd DVWA
docker compose up -d
docker compose psOpen http://127.0.0.1:4280 in the Kali browser. Follow Setup to create/reset the database, sign in with the documented training credentials, and select Low security for the exercises. Set a unique training password if supported. Stop with docker compose down in that repository. Database reset destroys lab data; export anything you want to keep first.
Ready check: You should have a working HTTP page, one known IP per VM, a snapshot, and an output folder. Start modules 3, 8, 13, and 20 with profile A. Move to profile B or C only when its prerequisites work.
Sources: Kali virtualization, Python HTTP server, DVWA setup, Docker CLI and installation navigation.