Free platforms to learn hacking legally: where to start and in what order
The free, legal places to practise hacking, what each one is good for, the order I'd do them in, and a first-30-days plan you can actually follow.
If you want to learn ethical hacking free and legally, start with TryHackMe, move to PortSwigger's Web Security Academy, then OverTheWire's Bandit, then HackTheBox. That's the order. Everything else in this post explains why, what each platform actually gives you for nothing, and what to do in your first 30 days.
I started about a year ago with no plan and a browser full of tabs, bouncing between platforms that were too hard, then too easy, then too hard again. This is the post I wish someone had handed me.
The one rule before you touch anything
The only systems you are allowed to attack are the platforms below, machines you own, and systems where you have written permission from the owner. Not "my college's Wi-Fi, they won't mind". Not a friend's app because they said "sure" on WhatsApp.
A lab box is built to be broken. A real server isn't, and scanning or probing it without permission is a crime in most countries, including India, regardless of your intent. "I was just learning" is not a defence anyone has ever been glad they relied on.
The platforms, and what each one is for
TryHackMe is the best first stop. It's built around "rooms": guided lessons where you read a short explanation, run a command, answer a question, and move on. The free tier gives you a large set of rooms, including beginner paths covering Linux basics, networking, and your first attack tools, mostly runnable from an attack box in the browser, so there's nothing to set up on day one. Level: complete beginner to early intermediate. What it's bad at: it holds your hand, and at some point you need to let go.
PortSwigger Web Security Academy is, in my opinion, the best free web security course that exists, and I'd say that even if it cost money. It's made by the people who build Burp Suite. Every vulnerability class (SQL injection, cross-site scripting, access control, SSRF, and many more) has a written explanation, then a set of labs that get harder. All of it is free, every lab. Level: beginner to advanced, in one place. What it's bad at: it's web only. If you want networks, Active Directory or Linux privilege escalation, look elsewhere.
OverTheWire is a set of wargames played over SSH. Start with Bandit. Each level gives you a password for the next, and getting it means learning one Linux thing: file permissions, pipes, find, grep, a bit of networking with nc. Entirely free. Level: beginner, but it assumes you can open a terminal. What it's bad at: it's narrow. It teaches Linux, not hacking in the broad sense.
picoCTF is a capture-the-flag platform run by Carnegie Mellon, aimed at school and university students. The challenges are small and self-contained: web, cryptography, reverse engineering, forensics. Free, with a permanent practice area and an annual competition. Level: beginner. What it's bad at: puzzles train your thinking, not your workflow against a real server. Ritika's post on CTFs for beginners covers how to approach that style without drowning.
HackTheBox is the step up. Machines are closer to real servers: you get an IP address, and the rest is up to you. The free tier gives you access to a rotating set of active machines and a learning platform (HTB Academy) with some free modules. Level: intermediate upward. What it's bad at: if you go here first you will bounce off. I did. Come back after TryHackMe and Bandit and it's a challenge instead of a wall.
VulnHub is a library of deliberately vulnerable virtual machines you download and run yourself, usually in VirtualBox or VMware. Free. Level: intermediate, partly because you have to manage your own lab network. What it's bad at: setup. Some images are old and fiddly. But it teaches you how to build and isolate a lab of your own, which the hosted platforms don't.
DVWA and OWASP Juice Shop are deliberately vulnerable web apps you run locally. DVWA (Damn Vulnerable Web Application) is a plain PHP app with difficulty levels per vulnerability. Juice Shop is a modern JavaScript app from the OWASP project with a built-in scoreboard of challenges. Both free and open source. Level: beginner to intermediate. What they're bad at: web only, and you'll spend some time with Docker first. That time is not wasted.
Where to learn ethical hacking free, in order
Here's the sequence I'd give a past version of myself.
- TryHackMe's beginner paths, until the terminal stops feeling scary.
- OverTheWire Bandit, all the way through. It's shorter than it looks.
- PortSwigger Web Security Academy, starting with SQL injection, XSS and access control. Kushagra's SQL injection explainer is a good read before the first lab.
- Juice Shop locally, so you learn to run a lab yourself and apply what PortSwigger taught you on a different app.
- HackTheBox, starting with the easiest active machines and retired ones if you can get at them.
- picoCTF and VulnHub whenever you want variety or a break.
Each step assumes a skill the previous one taught. Bandit assumes nothing. PortSwigger assumes you can read a request. Juice Shop assumes you can run Docker. HackTheBox assumes all of that plus patience.
Your first 30 days
A plan, not a promise. If you miss days, pick up where you left off rather than restarting.
| Days | Do this | You should be able to |
|---|---|---|
| 1 to 7 | TryHackMe beginner path, one or two rooms a day | Move around Linux, read an IP address and a port, run nmap against a lab box |
| 8 to 14 | OverTheWire Bandit, a few levels a day | Chain commands, read files you weren't meant to, use SSH confidently |
| 15 to 24 | PortSwigger: SQL injection, XSS, access control labs | Read an HTTP request in Burp, change it, and explain why the change worked |
| 25 to 30 | Install Docker, run Juice Shop, solve the first few scoreboard challenges | Set up your own lab and attack it without a guide |
Keep notes from day one. A plain text file per platform, with what you tried, what worked, and the command you'll forget by next week. That file becomes your reference, and later, the raw material for a portfolio.
Thirty days on one platform beats five days each on six. Breadth comes later.
What this doesn't cover
This post is about practice platforms. It doesn't tell you which concepts to learn in which order; that's the cybersecurity roadmap I wrote earlier. It doesn't cover certifications; I'm not the right person to ask about them yet.
Platforms change what's free fairly often, so if something described here has moved behind a paywall by the time you read this, that's why. The order still holds.
Frequently asked questions
Is it legal to practise hacking on these platforms? Yes. Every platform listed here is built to be attacked and says so in its terms. The line is the platform's boundary: attacking the lab machine is fine, attacking the platform's own website or other users is not, and that's usually written down explicitly in the rules.
Do I need Kali Linux to start? No. TryHackMe gives you a browser-based attack machine, OverTheWire only needs an SSH client, and PortSwigger runs in your browser with Burp Suite Community Edition. Install Kali, or any Linux, when you reach Juice Shop and HackTheBox and need a local toolkit.
How much programming do I need? Less than you fear, more than none. Being able to read Python and JavaScript, and write a short script, makes PortSwigger and HackTheBox far less painful. You don't need to be a developer, just not frightened by code.
Should I pay for a subscription? Not in your first month. Do the free material until you hit a wall you can clearly name. Then you'll know which paid tier would actually help, instead of guessing.
Can I put this on my CV? You can put what you can explain. "Completed Bandit" means little; "I can explain how I escalated privileges on three lab machines and what the misconfiguration was each time" means a lot. Keep the notes file.
Make a TryHackMe account today, finish the first room, and write one line in your notes file about what you did. That's day one.