Guide · Beginner · Start to finish
This guide explains all of Hack The Planet Labs in one place — from sign-up to Unit 04 and Labs 01–03. Come here as a beginner, read, understand, and then open the lab and solve it yourself. There is no video — it is written, so you can read at your own pace, come back, and re-read whatever you did not understand.
How to use this guide
Remember: every lab has a quiz and a challenge. The quiz checks your concepts, the challenge proves you can do it by hand. Together they give 100 XP — and in the units, capturing the flag unlocks a free product.
1 · Sign up
You need an account to solve the labs — your XP and progress are saved to it. Signing up is simple:
Right now it is email + code only — there is no Google or Facebook login yet, that comes later. After you sign in, your name and avatar appear in the header. Click the avatar to open the menu: your email, Manage account and Sign out. Manage account opens Account/Security — there you can change your password and see your active devices.
Tip: if you press a lab's Start Lab button without signing in, the sign-in modal opens first — and after you sign in, the same lab you picked opens. You do not have to find it again.
Privacy: your email is only used when a new lab arrives — no spam. Your progress syncs with your account. If you do a lab while signed out, your progress is saved only on that device.
2 · Hub
The hub (home page) has three things — Cyber-Range Units, Classic Labs, and Recon Bay. The telemetry bar at the top shows: Active Modules 04, Engine Client-WASM, and the Reward Vault (0/4 to 4/4).
HTP{...}).These are the real hands-on units — every unit has a flag and a free product:
These are the learning labs — every lab has lessons, a quiz and a practical challenge:
In every Classic Lab: quiz pass = 30 XP, challenge = 50 XP, lab complete = 20 XP — 100 XP per lab in total. Ranks: 0 XP = New Recruit, 1+ = Rookie, 100+ = Explorer, 200+ = Operator, 300+ = Field Ready. There are achievements too: First Steps (complete Lab 01), Network Explorer (Lab 02), Terminal Operator (Lab 03), Knowledge Seeker (pass all three quizzes), Field Ready (complete all three labs).
The Classic Labs unlock in sequence: Lab 01 is always open, Lab 02 opens when you complete Lab 01, Lab 03 opens when you complete Lab 02. If you open a locked lab's direct link, you get a "This lab is locked" notice. The Units (01–04) have no such sequence — all four are Online, you only need to sign in.
The right order: do Lab 01 → Lab 02 → Lab 03 first (they teach the concepts), then Units 01 → 02 → 03 → 04 (they put the concepts to work). That way a beginner does not get stuck — learn first, then fight.
3 · Lab 01 — Beginner · 25–35 min
Mission: understand how a browser and a web server talk over HTTP — well enough to read a real request and explain every part of it.
GET means "send me this"), Path (what you want — /search?q=cybersecurity), Version (HTTP/1.1), Host (which website — training.local), Headers (extra facts — who is asking, which format you accept, cookies), Body (data sent with the request — a GET has no body, a POST carries its data here).GET — retrieve something (safe, it changes nothing on the server); POST — submit data (login, comment, upload); PUT — replace a resource entirely; PATCH — change part of a resource; DELETE — remove a resource.A training browser sent this request to a fictional server. Identify the five parts: the method, the path, the host, the user-agent and the cookie. Click a part of the request, then click the label that matches it.
The method: read the request line by line. In the first line, the first word is the method, then comes the path, and the version is at the end. The first word of every next line tells you what it is — the Host: line is the host, the User-Agent: line is the user-agent, the Cookie: line is the cookie.
Worked example — look at this first: in the lab's Module 2 request, GET /search?q=cybersecurity HTTP/1.1 — here GET is the method, /search?q=cybersecurity is the path, Host: training.local is the host, User-Agent: HTP-Lab-Browser/1.0 is the user-agent, and Cookie: session=demo_session is the cookie. The challenge request follows exactly the same pattern, only the values are different. Learn the pattern, then solve the challenge yourself.
The quiz has 6 questions, you need 4 correct to pass (30 XP). It checks: the difference between GET and POST, the status code groups (2xx/3xx/4xx/5xx), what a cookie does, and how HTTPS differs from HTTP. If you read the concepts above, the quiz is easy.
GET changes data — GET only retrieves, it never changes anything. POST/PUT/PATCH change data.4 · Lab 02 — Beginner · 30–40 min
Mission: learn how a domain name becomes an IP address — and trace the whole lookup from the browser to the server. By the end you will understand what happens behind a name you type, and where to look first when a site does not open.
The browser wants to open shop.example.test. The 8 steps of the lookup are given out of order — you have to click them in the right order.
The method: always think from the start. First the browser checks its own memory (cache). Then it asks the resolver. Then the hierarchy walks down — root, then TLD, then the authoritative server. Then the answer comes back up, and finally the browser connects.
Hints: (1) Every lookup starts in the browser's own memory (cache). (2) The browser never talks to the root server — it asks the resolver first. (3) Every step depends on the previous one — you can only ask the TLD after the root points the way, and you only get the IP after reaching the authoritative server.
The quiz has 6 scenario-based questions, you need 4 correct to pass (30 XP). It checks: the order of the resolution chain, what the record types mean, and what ports do.
5 · Lab 03 — Beginner–Intermediate · 35–45 min
Mission: learn the Linux command line — move around the system, inspect it, and lock a folder with permissions — then prove it all in a simulated terminal mission.
/ (root). pwd — where you are, ls — what is inside, cd — go somewhere. An absolute path starts with /, a relative path starts from the current folder.cat read, touch/mkdir create, cp copy, mv move/rename, rm delete (permanent — there is no recycle bin).whoami/id (who you are), uname (which system), ps/top (what is running).chmod. Never use 777 — it gives everyone everything and kills security.You are the user learner, starting in /home/learner. 7 objectives, in this order:
pwd — confirm where you are.cd mission — go into the mission folder.ls — find flag.txt.cat flag.txt — read the file.mkdir vault — create a folder.chmod 700 vault — lock it to owner-only.ls -l — verify that vault shows drwx------.The method: check after every step — first confirm your location, then move, then read, then create, then lock, and finally verify.
Hints: (1) If you get "No such file", run pwd first — you are in the wrong folder. (2) Not cd /mission, but cd mission — the leading slash takes you to the root, where mission does not exist. (3) mkdir first, then chmod — you cannot change the permissions of a folder that does not exist yet; and do not call it done without verifying with ls -l.
The quiz has 6 questions, you need 4 correct to pass (30 XP). It checks: navigation commands, file operations, and the permission numbers (755/644/700/600).
cd /mission — you need a relative path, not an absolute one.cat flag.txt from the wrong folder — confirm your location with pwd first.chmod before mkdir — create first, then lock.chmod 777, which destroys security.6 · Unit 01 — Beginner · 20–30 min
Mission: get inside a hacked web server (10.0.0.10) and find its leak. By the end you will understand how to read files and logs from a Linux terminal, and how to pull a leaked API key out of server logs.
A terminal like a real one (xterm.js) opens inside the browser — the prompt is agent@htp-node01:~$. You type Linux commands: ls, cd, pwd, cat, grep, find, echo, whoami, scan, clear, help. Up/Down arrows bring back old commands. The server's whole filesystem is simulated: /var/www/html (website files), /var/log/apache2/ (access.log and error.log), /home/agent/ (notes.txt, todo.txt), /etc/ and /tmp/. The scan command runs an nmap-style scan — it shows open ports 22 (ssh), 80 (http), 443 (https).
ls -la to see the home directory, then cat notes.txt — the notes say there was a probe on /admin-9f2/ and the leak is in the Apache access log.cd /var/log/apache2/ then cat access.log — or run grep -r 'HTP{' /var/log/apache2/ directly.GET /api/v1/keys?leak=1 — the leaked API key (the flag, in HTP{...} format) is written in that same line.Hints: (1) Hidden files start with a dot — ls does not show them, ls -la is essential. (2) The logs are in /var/log/apache2/ — grep is the fastest way. (3) grep -r 'HTP{' /var/log/apache2/ takes you straight to the leak.
ls does not show hidden files — a beginner thinks the directory is empty. Always use ls -la.grep on a directory without -r gives an "Is a directory" error — forgetting -r is a common mistake.tokens.txt is revoked, the password in config.php is REDACTED, .config/session is expired — the real leak is only in access.log.scan runs, the terminal takes no input (only Ctrl+C cancels it) — it looks like the terminal hung, but the scan is running.Reward: the correct flag unlocks Free Product #1 and the Reward Vault count goes up (0/4 to 1/4).
7 · Unit 02 — Intermediate · 30–45 min
Mission: a rogue node is hiding in the company network, quietly sending data out. By the end you will understand how to read an attack path from a 3D network map and how to pull exfiltrated data out of a packet capture (pcap).
There are two tabs. Topology: a 3D graph with 7 nodes — Firewall (10.0.0.1), Web Server (10.0.0.10), Mail Server, DNS Server, Database (10.0.0.20), Admin PC (10.0.0.24) and a red Rogue Exfil Node (185.220.101.47). The red lines are the attack path: Firewall → Web → Database → Rogue, and Admin PC → Rogue. Click a node to open its logs in the side panel. The graph keeps rotating (orbit) — drag to rotate, scroll to zoom, click to stop the rotation. Packet Hunt: a table of a real pcap file — every packet's Time, Source, Destination, Protocol, Length and Info. There is a filter bar at the top (All / TCP / DNS / HTTP / Rogue IP chips) and a search box. Rows with the rogue IP are highlighted red. Click a packet to open a drawer with the HTTP payload (text) and a hex dump.
Hints: (1) Follow the red path — the node with traffic to an unknown outside IP is the rogue one. (2) Do not scroll the whole packet table — filter by Rogue IP first, then open the HTTP POST. (3) The Admin PC logs say "smoking gun" — that POST packet is the real answer.
Reward: the correct flag unlocks Free Product #2 and the Reward Vault count goes up.
8 · Unit 03 — Intermediate · 30–45 min
Mission: a Linux machine was hacked and the attacker tried to hide their tracks. Boot the machine and find the evidence — a suspicious process, a scheduled job, and a hidden root-level artifact.
This is a REAL Linux running inside your browser — the v86 emulator (WebAssembly) boots Buildroot Linux. The screen shows an old-style VGA terminal; click the screen first so the keyboard focuses, then you are straight in the Linux shell (the /root% prompt). The useful commands are crontab -l, ps, ls -l and cat. The telemetry strip at the top shows STATE, ARCH (x86), GUEST (Buildroot Linux) and ARTIFACTS; there are RESET VM and SAVE SNAPSHOT buttons too.
crontab -l — one job runs every 5 minutes and points to /usr/local/bin/syscheck.sh.ps to see what processes are running — the same script shows up in the background too.ls -l /usr/local/bin/syscheck.sh — its permissions are 777 (everyone allowed everything — that loose permission is the weakness).cat /usr/local/bin/syscheck.sh — read what the script does.ls -la /root/.cache/, then read it with cat.Hints: (1) Something is running on a schedule — check cron and running processes. (2) Root-owned files with loose permissions often hide things in "plain sight". (3) Hidden files do not show with ls — use ls -la.
#, it is /root% — a % prompt means the shell is live.Reward: the correct flag unlocks Free Product #3 and the Reward Vault count goes up.
9 · Unit 04 — Intermediate · 35–50 min
Mission: a vulnerable local script sits in a Debian sandbox — app.py. Read it line by line, find the logic flaw in its input check, and give it an input that makes the script print the verification token itself.
This is also REAL Debian — it runs in the browser through CheerpX (WebVM). The 6 boot stages show in the sidebar (engine load → disk backend → image hydrate → filesystem mount → writing the script → shell start). The terminal is xterm.js — drag the handle at the bottom to resize it, use the button at the top for fullscreen (Esc to exit). The shell is bash, the user is user (uid 1000), home is /home/user. app.py is there — copied from /data/app.py. Useful commands: pwd, ls, cat app.py, python3 app.py ....
cat app.py — read the whole script. It is an access-check script: it takes one argument and checks whether the input starts with an expected prefix.python3 app.py HTP-ACCESS-anything — write anything after the prefix, it works.ACCESS GRANTED and below it a verification token:.Hints: (1) The flaw is in the input check — read the script line by line, understand every if. (2) When you give the right input, the script prints the token itself — there is no need to look for the token anywhere else. (3) The footer has a hint too: first cat app.py, then try the input with the prefix.
cat app.py may need scrolling down — the terminal auto-scrolls, but if the last lines are not visible, scroll down with the mouse.Reward: the correct flag unlocks Free Product #4 and the Reward Vault count goes up.
10 · Recon Bay
Recon Bay is Live on the hub and open without sign-in. Write a domain, pick a record type, and a DNS-over-HTTPS lookup runs (dns.google, fallback Cloudflare) — DNS records are shown, and if the name does not exist you get NXDOMAIN. There is no server-side scanning and no data is stored.
How to use it: write a domain name (for example example.com), pick a record type (A, AAAA, MX, TXT, NS), and press lookup. The records that are found are shown. This is how you see the DNS records from Lab 02 in the real world.
11 · What is next?
After completing all three Classic Labs and all four Units, you will have: an understanding of HTTP, DNS and Linux, practice reading terminals and logs, the method to find exfiltration in a packet capture, and the experience of finding a logic flaw in a vulnerable script — plus 300 XP, 5 achievements, and 4 free products in the Reward Vault.
The next step: the Ethical Hacking: From Basics to Advanced course on the main site — these labs are its practical part. The course teaches the same concepts in more depth, and takes you further toward bug bounty and penetration testing.