IP Detective 3000

How to become a hacker, the legal way

The skills, the free practice sites, and the line you can't cross, in the order that actually works.

Last checked 9 min read

Short answer

Yes, legally, and you can start free. Learn networking, Linux, the web and a little scripting first. Practise only on sites built to be attacked, such as OverTheWire, picoCTF, TryHackMe and Hack The Box, or on your own lab. Never test a system without written permission.

Cost
Free to start; TryHackMe and Hack The Box paid plans are optional
Time
A first month of basics; usually a year or two of IT work before testing roles

The steps

  1. Learn Linux on OverTheWire BanditFree way: OverTheWire, free over SSHTime: Week 1Done when: You clear levels 0 to 10 and can explain every command you used.
  2. Learn networking basicsFree way: Your own privacy scan resultsTime: Week 2Done when: You can explain your IP address, open ports, DNS and HTTP out loud.
  3. Do guided beginner challengesFree way: TryHackMe's free beginner rooms or picoCTFTime: Week 3Done when: You finish a beginner room or picoCTF's easiest category.
  4. Set up one virtual machineFree way: Home lab on an old laptopTime: Week 4Done when: A VM runs and you've written a half-page note on what you learned.
  5. Move on to Hack The BoxFree way: Hack The Box's free machines (which to start with)Time: Once guided rooms feel easyDone when: You attempt a machine, read the write-up and note what you missed.
  6. Get a foot in the door of ITFree way: Help desk, IT support or SOC analyst rolesTime: A year or two before offensive workDone when: You can explain your lab and write-ups in an interview.

Hacking, the way people who do it for a living mean the word, is understanding a system well enough to make it do something its builders didn't expect. Companies pay for that skill because they would rather hear about the weak spot from you than from a criminal.

Start with how things work, not with hacking tools

Most beginners download Kali Linux on day one, open a tool with a scary name, and stall within a week because nothing makes sense. The tools only do what you could explain by hand. So the first stretch is the boring foundation, and it is most of the job:

  • Networking. What an IP address, a port, DNS and HTTP actually are. The privacy scan shows your own IP; you should be able to explain how it got there.
  • Linux. Moving around a filesystem, reading files, permissions, users, and running commands without a mouse.
  • The web. How a browser talks to a server, what a cookie is, what a request and response look like.
  • A little scripting. Enough Python or Bash to automate something you'd otherwise do fifty times.

You do not need a degree or advanced maths for any of this. You need a few hours a week and patience with being confused.

Practise on machines built to be broken

These sites exist so you can attack something legally. Each one gives you a target and a goal, and nobody gets hurt. Work through them roughly in this order.

Platform Cost Good for
OverTheWire, Bandit Free Linux basics, one small puzzle at a time over SSH
picoCTF Free Beginner capture-the-flag puzzles, run by Carnegie Mellon
TryHackMe Free rooms, paid subscription Guided lessons in the browser, no setup
Hack The Box Free machines, paid tiers Harder, less hand-holding, closer to real work

Bandit is the right first step for almost everyone because it forces the Linux comfort that everything else assumes. When you can get through the first 15 or so levels without looking up answers, move to TryHackMe's beginner paths or picoCTF. TryHackMe vs Hack The Box compares what each one gives you free and what the paid plans add.

Hack The Box comes after. It gives you a machine and very little guidance, which is closer to what real testing feels like. Expect to get stuck, read a write-up afterwards, and learn more from the write-up than from the box.

Build a small lab of your own

At some point you will want to break things without a time limit or a subscription. An old laptop with 8 GB of memory or more can run a couple of virtual machines: one attacker (Kali Linux or Parrot) and one deliberately vulnerable target (Metasploitable or DVWA). Because you own both machines, nothing you do to them is illegal. How to build a home lab on an old laptop walks through it.

Turn the skill into a job

Very few people get hired as a "hacker" first. The usual routes in are help desk, IT support, system administration or a security operations centre (SOC) analyst role, and then moving towards offensive work once you have a year or two of real systems behind you. Defensive roles make up most security jobs, and defenders who understand attacks are valued.

Three things move you forward more than any certificate:

  1. Write up what you solve. A short public write-up of each retired machine or challenge shows how you think. Never publish write-ups for active challenges; platforms ban that.
  2. Show a lab, not a list. A small home lab you can explain beats ten course badges you can't.
  3. Learn to explain risk in plain words. The person reading your report is usually a manager, not a hacker.

Where the legal line is

Practising on the platforms above, your own lab, or a company's systems with a signed scope document is legal. Bug bounty programmes on HackerOne or Bugcrowd are also legal, but only for the targets and techniques listed in that programme's scope, and only after you've read its rules.

Scanning your school's network, poking at a friend's Instagram, or testing a website because "it looked insecure" is not legal, even with good intentions and even if you report it. People have been charged for exactly that. If you find something by accident, stop and report it through the organisation's security contact; don't keep digging to prove it.

Questions people ask

Is it legal to learn hacking?

Yes. Practising on platforms built to be attacked, on your own lab, or on a company's systems with a signed scope document is legal. Testing a system you don't own without written permission is a crime in the US, Canada, the UK and almost everywhere else, even with good intentions.

Do I need a degree to become a hacker?

No. You don't need a degree or advanced maths to learn networking, Linux, the web and basic scripting. You need a few hours a week and patience with being confused. Most people get hired through help desk, IT support or SOC work first.

How long does it take to become an ethical hacker?

A first month gets you through the basics: Bandit, networking, beginner rooms and one virtual machine. Very few people are hired as testers first. The usual route is an IT or SOC job, then moving towards offensive work after a year or two of real systems.

Should I start with Kali Linux?

Not on day one. The tools in Kali only do what you could explain by hand, so beginners who start there tend to stall within a week. Learn networking and Linux first, then use Kali as the attacker machine in your own lab.

What is the best free site for learning to hack?

OverTheWire's Bandit is the right first step for almost everyone, because it builds the Linux comfort everything else assumes. After roughly the first 15 levels, move to TryHackMe's free beginner rooms or picoCTF, which is run by Carnegie Mellon.

Next in the careers guides: TryHackMe vs Hack The Box: which to start with