What is penetration testing and how to become a pentester – a guide from zero

Penetration testing means seeing a system through an attacker's eyes – with permission. Types, stages, skills, certifications and how to start from zero.

Compstyle teamOctober 28, 2026 · 4 min read

Imagine a bank is about to launch a new mobile app. Before releasing it, the question the bank cares about most is: “Could an attacker get in?” To answer that question, they bring in a pentester.

Penetration testing (pentesting) means looking at a company’s systems through a real attacker’s eyes – with the company’s written permission – finding the weak spots before someone with bad intentions does, and showing how to close them. A specialist who does this professionally is called a pentester, sometimes an “ethical hacker”.

Pentesting vs. a vulnerability scanner

An automated scanner gives you a list of problems that might exist. A pentester goes one step further: they prove a vulnerability can actually be exploited and explain what that means for the business.

Vulnerability scannerAn automated check. Lots of “might be” warnings, including false alarms. Doesn’t connect weaknesses to each other.
Penetration testHuman thinking. Turns small weaknesses into a chain, proves the real impact and gives concrete recommendations for fixing it.

Types of penetration tests

Depending on how much the pentester is told in advance, there are three approaches:

  • Black box – the pentester knows nothing about the system and starts like an outside attacker.
  • Grey box – partial information is given, for example a regular user account.
  • White box – the code, architecture and documentation are open; this is the deepest kind of test.

Tests also differ by target: web applications, external and internal networks, mobile apps, cloud environments and even people themselves – social engineering (for example, sending employees a simulated phishing email and checking how they react).

How a penetration test works

A professional pentest always follows the same sequence:

  • 1Agreement and scope. What will be tested, when and how is defined in writing. Testing without permission is illegal.
  • 2Reconnaissance. Information about the target is gathered from open sources (OSINT): domains, subdomains, technologies.
  • 3Scanning and enumeration. Open ports, services and versions are identified (Nmap, Burp Suite).
  • 4Exploitation. The vulnerability found is proven to actually work, in a controlled way.
  • 5Privilege escalation. How far one can get – from a regular user to administrator – is tested.
  • 6Reporting. Every finding is written up with its risk level, evidence and a fix recommendation.
  • 7Retest. After the company applies fixes, the pentester checks that the problem is really closed.

Note that half of the job isn’t the attack – it’s the report. Even the best finding changes nothing if it isn’t written in language the company can understand.

What would you do?

During a pentest you notice an open vulnerability on another server that belongs to the company but isn’t in the agreed scope. What do you do? A) Test it right away – it’s the company’s anyway B) Stop and notify the client in writing

See the answer

B. Going outside the agreed scope counts as unauthorized access, even with good intentions. A professional pentester notes what they found, reports it to the client and continues only after written permission.

Are pentesting and Red Team the same thing?

They’re close, but not the same. A penetration test tries to find as many vulnerabilities as possible within a set time and scope. A Red Team operation imitates a real attack group: it moves stealthily toward a concrete goal (for example, reaching the customer database) and tests whether the company’s defenders can detect the attack. The path usually starts with pentesting and moves to Red Team with experience.

What it takes to become a pentester

Technical foundation:

  • networking – how TCP/IP, DNS and HTTP work;
  • Linux and Windows – the terminal, permissions, how the system works inside;
  • web applications – the OWASP Top 10 vulnerabilities;
  • scripting – automating work with Python or Bash.

Character: curiosity, patience and often asking “what if we…?”. The strongest pentesters are those who, on top of technical skills, can write and explain clearly.

Certifications: eJPT is a practical entry-level exam. OSCP is the field’s best-known certification, with a 24-hour hands-on exam. You’ll also see CEH in many job postings. Certifications matter, but they don’t replace a portfolio and real skills.

How to start from zero

  1. Foundation: networking and Linux basics – 1–2 months.
  2. Practice platforms: TryHackMe teaches step by step, HackTheBox is more realistic, and PortSwigger Web Security Academy is the best free resource for web attacks.
  3. Your own lab: set up Kali Linux and intentionally vulnerable systems in virtual machines – and practise only in your own environment.
  4. Write: write a short report for every machine you solve. That’s both a skill and your portfolio.

A detailed plan with free resources for this path is in our cybersecurity roadmap.

A final word: pentesting skills are a powerful tool, and their value is measured by permission and ethics. Our student Ali’s story of the vulnerability he found at AZTU is a real example: finding a flaw is a skill – reporting it responsibly is professionalism.

Want to become a pentester?

In the Red Team course you start from networking fundamentals and learn reconnaissance, web and network attacks, privilege escalation, Active Directory and, most importantly, how to write a professional pentest report – from zero. Online, in a group or one-to-one, taught in Azerbaijani.

More articles

View all →