Learning how to become a penetration tester is less about collecting certificates and more about proving, over and over, that you can break into a system you were hired to break into and then explain exactly how you did it. There is no single degree that opens the job, no test you pass once and never revisit. The path is a stack of concrete skills built in the order that lets each one support the next: networking, then Linux, then a scripting language, then the attacks themselves. This roadmap lays out that order, the certifications worth your money in 2026, the portfolio that gets you interviews, and how long the whole thing realistically takes. You can start building the hands-on half today in HackerDNA's Hacking 101 course, which runs entirely in the browser.
This guide is written for the career changer, the student, and the help-desk analyst who wants out of the ticket queue. It assumes you are willing to do the work but tired of vague advice like "just practice more." Every step below is specific, and each one links to a deeper walkthrough you can pick up when you reach it.
TL;DR: To become a penetration tester, build four foundations first (networking, Linux, a scripting language, and web fundamentals), then learn to attack through hands-on labs, earn a practical certification like the eJPT or OSCP, and publish a portfolio of lab and CTF write-ups that proves the skill. Most people who commit reach entry-level readiness in twelve to twenty-four months. The job is learned by doing, not by watching, and it pays a median well above $120,000 in the wider security-analyst field.
In this roadmap:
- What Does a Penetration Tester Actually Do?
- Do You Need a Degree or a Certification to Start?
- Step 1: Build the Four Foundations
- Step 2: Learn to Attack in a Lab
- Step 3: Earn a Certification That Gets You Hired
- Step 4: Build a Portfolio That Proves Skill
- Step 5: Land the First Job
- How Long It Takes and What You Will Earn
- Legal and Ethical Considerations
- Frequently Asked Questions
What Does a Penetration Tester Actually Do?
What does a penetration tester do? A penetration tester is a security professional paid to attack an organization's systems with written permission, find the weaknesses a real criminal could use, and hand over a report that ranks each flaw by risk and explains how to fix it. The job is authorized hacking with a deadline and a deliverable.
A normal week is not the movie version. You spend the first days scoping and reconnaissance, mapping what the target exposes. Then comes the hands-on assessment: scanning, finding a bug, exploiting it, escalating access, and documenting each step with screenshots as you go. The final stretch, and the part beginners underestimate, is writing. A finding that a developer cannot reproduce from your report is a finding that never gets fixed.
Penetration testing sits inside the broader discipline of ethical hacking, and it is a specific, scoped, time-boxed form of it. If you want the full picture of the engagement lifecycle before committing to the career, our penetration testing guide breaks down the five phases in depth. This roadmap focuses on the other question: how you get from wherever you are now to being the person hired to do that work.
The role also splits into specialties, and you do not learn them all at once. Web application testing is the most common entry point because every company runs web apps and all you need is a browser and a proxy. Network and Active Directory testing pays well but needs more tooling. Cloud, mobile, and hardware testing are deeper specializations you branch into later. Pick one lane first.
Do You Need a Degree or a Certification to Start?
Do you need a degree to become a penetration tester? No. A computer science degree helps and some employers list one as preferred, but the hiring path for offensive security values demonstrated skill over diplomas. Most working testers are largely self-taught, and a strong lab and CTF track record opens more doors than a transcript.
This is not a claim that credentials are worthless. A degree teaches the computer science fundamentals (operating systems, networks, data structures) that make everything else easier, and it clears automated resume filters at large enterprises. If you are early enough to choose, it is a reasonable path. But if you already have a degree in something unrelated, or none at all, you are not locked out. The field grew up on self-taught practitioners and still hires them.
Certifications occupy the middle ground. They will not make you skilled, but they prove to a hiring manager that you can perform under exam conditions, and the practical ones double as structured training. The trap is treating a certificate as the finish line. A candidate with an OSCP and no personal projects loses to a candidate with a public portfolio of thoughtful write-ups almost every time. Certifications get you past the filter; the portfolio gets you the offer.
Step 1: Build the Four Foundations
You cannot exploit what you do not understand. The single most common reason beginners stall is skipping the fundamentals to jump straight to running tools, then freezing the moment a tool's output means nothing to them. Build these four foundations first, in roughly this order.
- Networking. Learn how TCP/IP, DNS, HTTP, and the common ports actually work. When a scan reports port 445 open, you should immediately think SMB and what that implies. Our primer on what a port is is a gentle place to start if this is new.
- The Linux command line. Nearly every offensive tool runs on Linux, and many targets are Linux servers. You need to be comfortable navigating a filesystem, managing permissions, editing files, and stringing commands together in the shell without reaching for a search engine every time.
- A scripting language. Python is the standard. You are not writing production software; you are automating repetitive tasks, modifying public exploit code, and parsing output. Bash comes along for free as you live in the terminal. The bar is "able to write a fifty-line script that does something useful."
- Web fundamentals. Since web application testing is the most common first job, understand how requests and responses flow, what cookies and sessions do, and how a browser talks to a server. This is the ground the OWASP Top 10 stands on.
In practice, you do not finish one foundation before touching the next; they interleave. But the sequence matters as a center of gravity. Someone who spends their first three months genuinely comfortable in a Linux shell learns the attacks far faster than someone who memorized ten Metasploit commands and cannot tell why one failed.
Step 2: Learn to Attack in a Lab
Once the foundations hold, you start learning offense the only way it sticks: by exploiting real vulnerabilities in a legal, sandboxed environment. The learning loop that every effective tester runs is simple and you repeat it hundreds of times. Read about a vulnerability class, exploit it yourself in a lab, write down what you learned, then move to the next class.
Start with the OWASP Top 10, the list of the most critical web application risks. SQL injection, cross-site scripting, broken access control, and server-side request forgery are not academic; they are what actually gets found on real engagements. Work each one by hand before you touch an automated tool, because a scanner that finds a bug you do not understand makes you a button-pusher, not a tester. Our Web Attacks course covers this catalog hands-on, from your first injection to chaining bugs into real impact.
From there, branch into the skills a full engagement needs. Scanning and enumeration with Nmap. Content discovery to find hidden endpoints. Exploitation with an intercepting proxy. Then the phase beginners often skip: privilege escalation, turning a low-privilege foothold into full control of the box. If web is not your lane, the network penetration testing path takes you through service exploitation, lateral movement, and Active Directory instead.
A strong opinion that will save you months: do fewer tutorials and more labs. It is comfortable to watch a two-hour video of someone else hacking a machine and feel like you learned something. You did not. You watched. The skill lives in the reps, in being stuck for forty minutes and finding the way through yourself. Guided labs that walk you the first few times, then let you fly solo, are the fastest version of that loop.
Step 3: Earn a Certification That Gets You Hired
Once you can exploit a vulnerable machine end to end without hand-holding, a certification turns your skill into a line on a resume that recruiters recognize. Not all of them are worth the money. The ones that carry weight in offensive security are practical, meaning the exam makes you actually hack something rather than answer multiple-choice questions. Our full cybersecurity certifications guide compares the wider field; the table below covers the four that matter most for a pentest career.
| Certification | Level | Fully Hands-On Exam | Best For |
|---|---|---|---|
| eJPT | Entry | Yes | Your first cert and first proof you can do the work |
| PNPT | Junior to mid | Yes | A realistic, report-driven engagement including Active Directory |
| CompTIA PenTest+ | Entry to mid | Partly | Employers and government roles that want a vendor-neutral name |
| OSCP | Intermediate | Yes | The respected benchmark most job listings ask for |
The sensible order for most people is the eJPT first, because it is affordable and its hands-on exam confirms you have the basics without the pressure of a career-defining test. Then, when you can reliably compromise intermediate machines, the OSCP is the one that moves the needle on hiring. Its 24-hour practical exam has you break into a set of machines in a sandboxed network and then write a professional report, which is exactly the job.
The PNPT deserves a mention because its exam is the closest to a real engagement, ending in a full report and a debrief, and it includes an Active Directory attack path. If you already hold a role and want the cert that best mirrors day-to-day work, it is a strong pick. Whatever you choose, do not stack three certifications before you have a single project to show. One practical cert plus a public portfolio beats a wall of badges with nothing behind them.
Step 4: Build a Portfolio That Proves Skill
How do you build a penetration testing portfolio? Document what you hack. Every lab you solve and every CTF box you own becomes a write-up that shows your methodology, your thinking when you got stuck, and how you reached the flag. A public collection of these write-ups is the single most convincing thing a junior candidate can show, because it proves skill that a certificate only implies.
The portfolio does three jobs at once. It gives a hiring manager evidence, it forces you to understand what you did well enough to explain it, and it builds a searchable record of your own techniques that you will actually reference later. Keep it concrete and honest. A write-up that says "I assumed the flag was in the database, wasted an hour, then realized the real path was a misconfigured file upload" teaches more and reads as more genuine than a flawless victory lap.
- Lab and CTF write-ups. Publish them on a simple blog or a public GitHub repository. Show the commands, the output, and the reasoning, not just the answer.
- A GitHub with small tools. Even a fifty-line Python script that automates a task you got tired of doing by hand signals that you can code, which separates you from candidates who only run other people's tools.
- Bug bounty disclosures. When you are ready, a valid finding reported through a platform like HackerOne or Bugcrowd is real-world proof under authorized rules. Even a handful of low-severity, resolved reports carry weight.
- CTF standings. A profile on a practice platform with a visible history of solved challenges shows consistency, which employers read as someone who will keep learning on the job.
When testing real applications, the habit of documenting as you go is not optional; it is the deliverable. Building that habit now, on lab machines where the stakes are zero, means it is second nature by the time a client is paying for it. Treat every practice box like a real engagement and write the report you would hand a customer.
Step 5: Land the First Job
The hardest part of an offensive security career is the first role, because most pentest jobs ask for experience you do not yet have. There are two proven ways through that wall, and both are more reliable than firing resumes into the void.
The first is the lateral move. Roles like SOC analyst, IT support, system administrator, and junior security engineer are far easier to land, they pay you to build real-world experience, and they sit one step from offensive work. A SOC analyst who spends two years watching how attacks actually look in production, then studies offense on the side, becomes a very hirable junior tester. If you are still deciding whether the wider field is right for you, our honest take on whether cybersecurity is a good career lays out the trade-offs.
The second is to make your portfolio do the talking. A candidate with no security job title but a public record of CTF solves, lab write-ups, a couple of resolved bug bounty reports, and one practical certification is a real applicant, not a hopeful one. Recruiters and hiring managers in this field do look at that work. It is the closest thing to experience you can manufacture on your own.
When the interview comes, expect it to be practical. You may get a live box to compromise, a code snippet to find the flaw in, or a walk-through of a past engagement. Know your own write-ups cold, because "tell me about a machine you rooted" is a common opener, and be honest about what you do not know. In a field this deep, "I have not done Active Directory yet, but here is how I would approach it" is a stronger answer than a confident bluff a senior tester will see through in seconds.
How Long It Takes and What You Will Earn
How long does it take to become a penetration tester? For most people studying seriously alongside other commitments, reaching entry-level readiness takes roughly twelve to twenty-four months: a few months on foundations, six to twelve months learning to attack in labs, and a few more earning a practical certification and building a portfolio. Full-time and prior IT experience shorten it; sporadic effort stretches it.
The timeline is a range, not a promise, and the variable that moves it most is consistency. An hour a day, most days, beats a ten-hour weekend binge once a month, because offensive skills decay fast when unused and compound when practiced. The people who make it are rarely the most naturally gifted; they are the ones who kept showing up after the plateau where the easy wins run out.
The pay makes the effort worthwhile. The U.S. Bureau of Labor Statistics does not track "penetration tester" as its own occupation, but the closest category, information security analysts, reported a median wage of $124,910 in May 2024 and is projected to grow 29 percent through 2034, far faster than the average job. In practice, entry-level testers commonly start near $90,000, and senior specialists such as red team operators pass $200,000. Our penetration tester salary breakdown has the real numbers by level and region.
Demand underwrites all of this. The global cybersecurity workforce gap remains in the millions of unfilled roles per ISC2's annual workforce study, which is the structural reason a self-taught candidate with a real portfolio can still break in. The shortage is not a marketing line; it is why the door stays open.
Legal and Ethical Considerations
Critical reminder: Practicing your skills against systems you do not own or have written permission to test is a criminal offense, no matter how good your intentions are. In the United States the Computer Fraud and Abuse Act (CFAA, 18 USC 1030) carries penalties of up to 10 years in federal prison. The United Kingdom uses the Computer Misuse Act 1990 and the European Union enforces Directive 2013/40/EU. Always get authorization in writing before you touch a target.
Every technique in this roadmap is legal in one context and a felony in another, and the only thing that separates them is authorization. As you learn, you will feel the pull to test something real, a friend's website, your employer's login page, a service that annoyed you. Do not. The fastest way to end a security career before it starts is an unauthorized test that felt harmless to you and looked like an attack to everyone else.
There are three places you are allowed to practice, and they cover everything a beginner needs. Sandboxed lab platforms and CTF events, where the targets are owned by the platform and offered up for attack on purpose. Bug bounty programs, where the published rules grant permission to test within defined limits. And systems you own yourself, such as a home lab of virtual machines. Stay inside those three and you can build the entire skill set without ever crossing a line.
Frequently Asked Questions
Can I become a penetration tester with no experience?
Yes, but rarely by jumping straight into a pentest job. The common path is to build skills through labs and CTFs, earn a practical certification, publish a portfolio of write-ups, and often enter through an adjacent role like SOC analyst or IT support first. The experience employers want can be built on your own before anyone hires you.
How long does it take to become a penetration tester?
For most people studying seriously alongside a job or school, twelve to twenty-four months is realistic: a few months on foundations, six to twelve learning to attack in labs, and the rest on a certification and portfolio. Prior IT experience and full-time study shorten it; inconsistent effort stretches it well beyond two years.
Do I need to know how to code?
You need to read code fluently and write simple scripts, but you do not need to be a software engineer. Most testers use Python or Bash to automate repetitive work, tweak public exploit code, and read application source well enough to spot flaws. The realistic bar is comfortable reading any language and able to script in one or two.
Which certification should I get first?
Start with the eJPT. It is affordable, its exam is fully hands-on, and it confirms you have the basics without the pressure of a career-defining test. When you can reliably compromise intermediate machines, move to the OSCP, which is the certification most job listings recognize. Do not stack certificates before you have a portfolio to show alongside them.
Is penetration testing a good career in 2026?
Yes. Demand stays high because the global security workforce gap remains in the millions of unfilled roles, pay is well above the technology-sector average, and the work is varied and intellectually engaging. The trade-offs are continuous learning that never stops and the pressure of client deadlines and reports. For most people who enjoy problem-solving, it is worth it.
What is the difference between a penetration tester and an ethical hacker?
Ethical hacking is the broad practice of using offensive security skills legally. Penetration testing is a specific job within it: a scoped, time-boxed, authorized assessment that ends in a report. All penetration testing is ethical hacking, but ethical hacking also covers bug bounty hunting, red teaming, and security research.
Where can I legally practice penetration testing?
Three places: sandboxed lab platforms and CTF events where the targets are provided for attack, bug bounty programs whose rules grant permission within limits, and systems you own such as a home lab. HackerDNA's browser-based labs let you practice real exploitation with no setup and no legal risk, which removes the biggest barrier beginners hit.
Your Next Steps to Become a Penetration Tester
Knowing how to become a penetration tester is not the same as becoming one, and the gap between the two is filled entirely with reps. Read the roadmap once, then close it and go break something you are allowed to break. The foundations, the attacks, the certification, the portfolio, and the first job all follow from the single habit of showing up to a lab and finishing what you started.
Begin with HackerDNA's Hacking 101 course for the fundamentals, then move into the Web Attacks course to learn the OWASP Top 10 by exploiting it yourself. When you want the end-to-end engagement flow, the Network Penetration Testing course runs from the first scan through reporting. Absolute beginners should warm up in the Learn 101 lab first.
HackerDNA's free tier gives you browser-based labs with no credit card and no local setup, so the only thing between you and your first authorized exploit is opening a tab. Pick a lab, start hacking, and begin the portfolio that gets you hired.