Security operations

How to Learn Ethical Hacking: A Beginner Roadmap That Works

Ethical hacking is authorized testing, not guessing passwords. Build networking, Linux, and Python basics, then practice in labs and earn one cert at a time.

Cysoro Security TeamPublished · 7 min read
$ nmap -sV target22/tcp open ssh80/tcp open http443/tcp open https$ whoami — student TryHackMeHack The Box SECURITY OPERATIONS Ethicalhacking Learn it legally, step by step.
Quick answer

To learn ethical hacking, start with networking, Linux, and basic Python, then study web security and the OWASP Top 10, practice every week in legal labs such as TryHackMe and Hack The Box, build a home lab with virtual machines, and earn certifications in order: Security+, then eJPT or PenTest+, then CEH or OSCP. Only ever test systems you own or have written permission to test.

Key takeaways

  • Ethical hacking is authorized testing only — written permission is the line between a career and a crime.
  • Networking, Linux, and Python come before tools; tools are useless without the fundamentals underneath them.
  • Hands-on labs and one certification at a time beat collecting courses — employers hire proof, not playlists.

Ethical hacking sounds like a movie job: break into systems, find the holes, get paid. The real job is slower and more disciplined. You learn how networks and software actually work, you practice in legal labs, and you write reports that help someone fix what you found.

What is ethical hacking?

Ethical hacking, also called white-hat hacking or penetration testing, is authorized testing of computer systems, networks, or applications to find security weaknesses before criminals do. The word "ethical" is the whole job: you have permission, a defined scope, and a report at the end.

Penetration testing is one specific discipline under that umbrella: simulating real attacks against defined, scoped systems. Ethical hacking also covers vulnerability assessment, web application testing, and red team work, but every one of them starts with written permission.

Without permission, the same techniques are a crime. Unauthorized access is illegal under the US Computer Fraud and Abuse Act and equivalent laws elsewhere, even if you meant well or found a real bug. Always get scope and permission in writing first, and never test a live system you do not own.

What skills do you need to learn ethical hacking?

Six skills carry almost all beginner work: networking, Linux, Python scripting, web security, vulnerability scanning, and clear reporting. Tools change every year; these six do not.

Networking is the bedrock. Learn TCP/IP, DNS, HTTP and HTTPS, ports and protocols, and the OSI model. You cannot hack what you do not understand at the packet level, and most interview questions start here.

Linux is your workspace. Most hacking tools run on Linux, usually Kali Linux, and nearly every tool runs from the terminal. Learn basic commands, file permissions, process management, and Bash scripting. Windows fundamentals matter too, because most targets run Windows.

Python is the scripting language to learn first. You will automate scans, parse results, and build small tools. You do not need to build full applications; a working port scanner in about 20 lines is a realistic first project. Add basic SQL, because web attacks often target databases.

What is a realistic roadmap for learning ethical hacking?

A realistic roadmap has four phases: foundations, core hacking skills, penetration testing, and specialization. Most beginners need 6 to 12 months of steady practice to reach a junior level, with a few hours a week.

Phase one is foundations: networking, Linux, and security concepts such as the CIA triad, authentication, and encryption. Phase two is core skills: vulnerability scanning, the OWASP Top 10 for web applications, and basic scripting. Phase three is penetration testing: methodology, exploitation, privilege escalation, and reporting. Phase four is a specialty: web, network, cloud, or Active Directory testing.

Do not try to learn everything at once. Pick one phase, finish it, and prove it with a lab result or a short write-up before moving on. Employers hire proof, not playlists.

The ethical hacking roadmap 1Foundationsnetworking, Linux,security concepts,Python basics 2Core skillsOWASP Top 10,scanning, Nmap,Wireshark 3Pentestingmethodology, exploit,privilege escalation,reporting 4Specializeweb, network,cloud, or ActiveDirectory One phase at a time. Prove each phase in a lab before moving on.
Four phases, in order, with the skills each one builds. Illustration by Cysoro.

What does a 12-week self-study plan look like?

Weeks 1 to 3 are foundations. Install VirtualBox, Kali Linux, and a vulnerable target such as Metasploitable 2, all free. Study networking, and use Wireshark to watch real packets, DNS queries, and TCP handshakes happen.

Weeks 4 to 6 are Linux and scripting. Work through the OverTheWire Bandit wargame, then learn Python basics. Write your first tool: a short port scanner using the socket library. By the end of week 6 you should be comfortable in a terminal.

Weeks 7 to 9 are web hacking. Set up DVWA, a deliberately vulnerable web application, and work through the OWASP Top 10 hands-on. PortSwigger's free Web Security Academy is better than most paid courses; finish its Apprentice labs.

Weeks 10 to 12 put it together. Sign up for TryHackMe and Hack The Box. Your goal is to root three easy retired machines on your own, documenting your methodology for each. By week 12 you should be able to explain every layer of the OSI model, exploit DVWA at medium security, and own three machines independently.

Which tools should a beginner learn first?

Learn five tools well, not twenty badly: Nmap, Wireshark, Burp Suite, Metasploit, and a vulnerability scanner. Each one teaches a different skill, and together they cover most beginner work.

ToolWhat it doesLearn it for
NmapFinds devices, open ports, and services on a networkReconnaissance and scanning
WiresharkCaptures and dissects network trafficUnderstanding protocols and spotting odd traffic
Burp SuiteIntercepts and tests web application trafficWeb testing and the OWASP Top 10
MetasploitFramework for running known exploitsExploitation, used only in legal labs
Nessus or OpenVASScans for known vulnerabilitiesVulnerability assessment and reporting

Kali Linux ships with most of these already installed, which is why it is the standard beginner distribution. Learn what each tool actually does before you run it, and read its output instead of copying commands blindly. A scanner that finds a vulnerability is only useful if you understand what the finding means.

Where can you practice ethical hacking legally?

Practice only in places built for it: TryHackMe, Hack The Box, PortSwigger Web Security Academy, OverTheWire, and vulnerable apps such as DVWA and WebGoat. These are legal, safe, and designed to teach.

TryHackMe is the friendliest start, with guided paths for beginners. The same 12-week shape applies there too: foundations, then Linux and scripting, then web hacking, then three machines on your own.

Protect your own accounts while you learn: use unique passwords, as explained in our guide to how to know if your phone is hacked, and turn on multi-factor authentication everywhere it matters.

Build your own home lab too. Use VirtualBox or VMware to run Kali Linux as your attacker machine and a vulnerable target such as Metasploitable 2 or DVWA as your victim. Keep the lab on a private virtual network, separate from your home network, so nothing you test can touch a real system.

Only test what you own or have written permission to testNever scan, probe, or test a website, network, or device without permission. Even a simple port scan can be treated as unauthorized access. Lab platforms and your own virtual machines are the safe place to learn.

Which ethical hacking certifications matter?

Certifications are not always mandatory, but CompTIA Security+ is widely expected at entry level — CompTIA recommends it as the first cybersecurity certification to earn — and CEH is commonly listed in job postings. Take them in the order in the table below: Security+ as a baseline, then PenTest+ or CEH, with OSCP as the hands-on standard.

CertificationIssuerFormatWho it is for
CompTIA Security+CompTIAUp to 90 questions, 90 minutesEntry baseline; two years in a security or systems role recommended
eJPTINE48-hour hands-on practical, 45 questionsBeginners with little to no experience
CompTIA PenTest+CompTIAUp to 90 questions, 165 minutes, pass at 750 of 900Intermediate; 3 to 4 years as a penetration tester recommended
CEH v13EC-Council125 questions, 4 hours; optional 6-hour practical (20 challenges)Intermediate; 2 years of security work or official training
OSCP+OffSecAbout 24 hours hands-on plus a written reportAdvanced; attempt it last, after real lab experience

Take them in that order. Security+ first as the baseline, eJPT as the best beginner hands-on exam, then PenTest+ or CEH, and OSCP last. OSCP is the industry standard for hands-on proof, but it is brutal and respected precisely because it expects you to break into machines against the clock. Exam fees change often, so check each issuer's own price page before you commit.

How do you get your first ethical hacking job?

In a first role you will most likely support more experienced testers, run vulnerability scans, learn testing methodology, and get hands-on familiarity in controlled environments. Early-career roles include junior penetration tester, SOC analyst, and security analyst, and many people move in from network, helpdesk, or systems administration.

Build proof, not just certificates. Keep a portfolio of lab write-ups: what the target was, how you tested it, what you found, and how to fix it. A short, clear report on three Hack The Box machines says more to a hiring manager than a list of courses.

Join a community. TryHackMe and Hack The Box both have active communities, and local security meetups and capture-the-flag events are where junior testers meet mentors and hiring managers. Share your write-ups, ask questions, and help other beginners. For the defensive side of the same skills, see our guide to the small business cybersecurity checklist.

Job-ready checklist Three lab machines rooted and written upeach write-up shows method, findings, and fixes, not just a screenshot One certification earned, one in progressSecurity+ first, then eJPT or PenTest+ — not five half-finished courses A home lab you can explainKali plus a vulnerable target, on a private virtual network A public portfolio and a communitywrite-ups, CTF events, and a meetup where people know your work
Four things that make a beginner hireable. Illustration by Cysoro.

What mistakes should beginners avoid?

The biggest mistake is collecting tools and courses instead of practicing. Watching twenty hours of video without touching a lab teaches almost nothing. Practice immediately after each concept, in a lab, the same day.

The second mistake is skipping the fundamentals. If you cannot explain DNS, TCP, or Linux permissions, no tool will save you when a lab machine behaves unexpectedly. Go back to networking whenever you feel stuck; the answer is usually there.

The third mistake is testing without permission, or sharing exploit code for live systems. Keep your work in labs, keep your scope in writing, and keep your reports focused on fixes. That discipline is what separates an ethical hacker from a criminal, and it is what employers check first.

The bottom line

Learning ethical hacking is a long, practical road: networking, Linux, and Python first, then web security and labs every week, then one certification at a time. Start with a 12-week plan, a home lab, and TryHackMe, and prove each step with a write-up.

Set up your lab today, pick one beginner path, and root your first machine this month. And protect your own accounts while you learn: use unique passwords from our password generator and turn on multi-factor authentication everywhere it matters.

Frequently asked questions

How do I start ethical hacking with no experience?

Start with networking basics, Linux, and a little Python, then use a beginner lab platform such as TryHackMe. You do not need a degree or a certification to begin, but you do need a home lab and a few hours a week of hands-on practice.

Is ethical hacking legal?

Yes, when you have written permission to test the system. Testing a system without permission is illegal in most countries, including under the US Computer Fraud and Abuse Act, even if you mean well. Always get scope and permission in writing first.

How long does it take to learn ethical hacking?

A focused beginner can reach a junior level in about 6 to 12 months of steady practice, and a 12-week plan can cover the foundations and the first labs. Certifications and a first job take longer, and learning never really stops in this field.

Do I need to know how to code to learn ethical hacking?

You do not need to be a software developer, but you need basic Python and Bash scripting. You will use scripts to automate scans, parse results, and build small tools. About 200 lines of working Python covers most beginner needs.

Which certification should I get first for ethical hacking?

Most beginners start with CompTIA Security+ as a baseline, then take a hands-on beginner exam such as eJPT, then PenTest+ or CEH. Save OSCP for last, because it is a long practical exam that expects real experience.

What is the difference between ethical hacking and penetration testing?

Ethical hacking is the umbrella term for all authorized offensive security work. Penetration testing is one discipline under it: simulating real attacks against defined, scoped systems and reporting what you found.

Can I learn ethical hacking for free?

Yes, a lot of it. Free resources include TryHackMe free rooms, Hack The Box free machines, PortSwigger Web Security Academy, OverTheWire wargames, and vulnerable apps such as DVWA and WebGoat. Paid labs and exams come later.

Sources

  1. CompTIA — Security+ V8 certification
  2. CompTIA — PenTest+ V3 certification
  3. EC-Council — Certified Ethical Hacker (CEH) v13
  4. OffSec — PEN-200: Penetration Testing with Kali Linux (OSCP+)
  5. INE — Updated eJPT certification
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against the official certification pages from CompTIA (Security+ V8 and PenTest+ V3), EC-Council (CEH v13), OffSec (PEN-200 and OSCP+), and INE (eJPT) in November 2026.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free