Skip to content

Ethical Hacking & Penetration Testing

Find weaknesses legally, in your lab, and help fix them.

Learn how professional penetration testers work, strictly within the law and with written authorization. You build an isolated lab first, then practise recon, scanning, web testing, and reporting against deliberately vulnerable machines you own, always pairing each finding with its remediation.

01Ethics, law & lab setup

Permission first, then a safe place to practise.

  1. Ethics, law & responsible disclosureTesting someone else's systems without written permission is a crime in most countries, regardless of intent. Ethical hacking is defined by authorization: a signed agreement makes the same actions legal. Responsible disclosure governs how found issues are reported.10 min
  2. Scope, authorization & rules of engagementThe scope lists exactly which systems may be tested, and the rules of engagement set the conditions: when, how, and what is forbidden. A clear, signed document protects both tester and client and prevents accidental harm.9 min
  3. Pentest phases & methodologiesA penetration test follows recognised phases so nothing is missed and work is repeatable. Standards like PTES and the OWASP Web Security Testing Guide give structure, and the test type (black, grey or white box) sets how much the tester knows upfront.9 min
  4. Build an isolated labPractising safely means an isolated lab that cannot reach real systems. A hypervisor runs Kali alongside deliberately vulnerable VMs on a host-only network, and snapshots let you reset instantly after each exercise.9 min
  5. Practice platforms: TryHackMe, HTB, Juice Shop, DVWAHosted platforms like TryHackMe and Hack The Box provide legal targets over a VPN, and local apps like OWASP Juice Shop and DVWA run deliberately vulnerable web apps on your own machine. Each has rules you must read and follow.9 min

02Reconnaissance & OSINT

Learn about an in-scope target before testing it.

  1. Passive recon & OSINTPassive reconnaissance gathers information about an authorized target from public sources without sending it any traffic. It builds a picture from WHOIS records, public documents and search engines, leaving no trace on the target.9 min
  2. DNS & subdomain discoveryDNS enumeration maps an in-scope domain's hosts by querying its records and discovering subdomains. Within the agreed scope it reveals servers and services worth examining later, and it is a staple of the recon phase.9 min
  3. Footprinting an authorized targetFootprinting assembles recon findings into a clear picture of an authorized target's technology and exposure. Identifying frameworks, exposed services and the overall attack surface tells you where to focus the later, active phases.9 min

03Scanning & enumeration

Map lab hosts and services with nmap.

  1. Host discovery & port scanningScanning begins by finding which lab hosts are live, then which ports are open. nmap is the standard tool: host discovery identifies responsive machines, and port scanning reveals the services to examine, all kept inside the authorized scope.11 min
  2. Service & version enumerationOnce ports are known, enumeration identifies the exact service and version behind each one. nmap's version detection and safe NSE scripts gather this detail on lab hosts, which later maps to known vulnerabilities.9 min
  3. Mapping findings to known vulnerabilitiesWith services and versions enumerated, you match them to publicly known vulnerabilities and rate each by CVSS. In the lab you confirm relevance rather than assume it, then prioritise by realistic risk for the report.10 min

04Web application testing

Test deliberately vulnerable web apps with Burp Suite.

  1. Burp Suite workflowBurp Suite sits between your browser and a lab web app as an intercepting proxy, letting you inspect, modify and replay requests. Mapping the app, intercepting a request and using Repeater to test changes is the core manual web testing workflow.3 min
  2. Testing authentication & sessionsAuthentication testing probes how a lab app handles logins, lockout and sessions. Weaknesses like missing lockout, insecure cookies or sessions that never expire are noted, each paired with a concrete server-side fix.3 min
  3. Injection & XSS in the labIn a lab app like Juice Shop or DVWA you can safely demonstrate injection and XSS, then explain the server-side fix. The point is to understand why the flaw exists and how parameterisation, output encoding and CSP eliminate it.3 min
  4. Access control & business logic flawsAccess control testing checks whether a lab app enforces who can do what on the server. IDOR, forced browsing and logic flaws are found by manipulating requests, and every finding is paired with a server-side authorization fix.3 min

05Common vulnerability classes

Understand the bug categories conceptually, with their fixes.

  1. Memory safety issues (concepts)Memory safety bugs happen when a program reads or writes memory it should not, as with a buffer overflow or use-after-free. Understanding them conceptually explains many severe vulnerabilities, while mitigations and memory-safe languages reduce their impact.3 min
  2. Injection vulnerabilities (concepts)Injection vulnerabilities share one root cause across SQL, command and template contexts: untrusted data is interpreted as code. The prevention is always to keep data and code separate with parameterisation, allowlists and least privilege.3 min
  3. Misconfiguration & default credentialsMisconfiguration turns otherwise secure software into an easy target: insecure defaults, exposed admin interfaces and default or reused credentials. The fix is a hardened, documented baseline applied consistently.3 min
  4. Cryptographic failures (concepts)Cryptographic failures expose data through weak algorithms, missing transport encryption, or secrets left in source code. The fixes are well established: use vetted libraries, strong modern algorithms, TLS everywhere, and a secrets manager.3 min

06Exploitation in the lab

Use Metasploit against your own vulnerable machines to understand impact.

  1. Metasploit concepts & lab useThe Metasploit Framework is used, against vulnerable machines you own, to demonstrate the real impact of a finding. It organises modules, payloads and sessions so you can show that a vulnerability matters, then clean up and document it.3 min
  2. Demonstrating impact responsiblyProof of impact is the minimum evidence that a finding is real, captured without damaging systems or exposing sensitive data. A screenshot of limited access is enough; destructive actions and data exfiltration are not part of an ethical test.3 min
  3. From finding to remediationA finding is only useful if the owner can fix it. Each one is turned into a root cause, a concrete remediation, a severity rating and, ideally, a detection so the issue can be caught if it recurs.3 min

07Privilege escalation & post-exploitation (concepts)

How attackers go deeper, explained so defenders can stop it.

  1. Linux privilege escalation conceptsPrivilege escalation on Linux usually abuses configuration rather than exotic exploits: misconfigured sudo, dangerous SUID binaries, weak file permissions or vulnerable scheduled jobs. Knowing these paths conceptually tells defenders exactly what to harden.3 min
  2. Windows privilege escalation conceptsOn Windows, escalation commonly abuses service and permission misconfigurations such as unquoted service paths, weak service permissions, or token and privilege abuse. Understanding these conceptually shows defenders which settings to review.3 min
  3. Password attacks against lab hashesPassword attacks are practised against hashes you generate in your own lab, never real credentials. Cracking them with Hashcat or John shows why fast hashes and weak passwords fail, and why salted slow hashing plus MFA is the fix.3 min
  4. Lateral movement & persistence conceptsAfter a foothold, attackers move sideways using reused credentials and establish persistence to survive reboots. Described conceptually and mapped to ATT&CK, these behaviours tell defenders which telemetry and detections to put in place.3 min

08Wireless & Active Directory basics

Conceptual tours of two big attack surfaces.

  1. Wireless security conceptsWi-Fi security rests on the authentication handshake between a client and access point. WPA3 improves on WPA2, and rogue access points trick clients into connecting. Defenders focus on strong configuration and detecting rogue devices.3 min
  2. Active Directory attack surfaceActive Directory authenticates users and computers across a Windows domain, mainly via Kerberos. Its interconnected permissions create a large attack surface, which tools like BloodHound visualise. Defenders apply tiering and harden misconfigurations.3 min

09Capstone: lab pentest & report

Run a full engagement against your own lab and write it up professionally.

  1. Plan the engagementEven a lab engagement starts with a plan: scope, rules of engagement, goals and a timeline. Planning first keeps the test focused, sets up good note-taking, and mirrors how a real, authorized engagement begins.3 min
  2. Run the lab pentestThe hands-on capstone works a vulnerable lab machine through recon, enumeration and validated findings, capturing minimal proof for each. The emphasis is on methodical coverage and good evidence, not speed.3 min
  3. Write the professional reportThe report is the deliverable that gives the engagement value. It opens with an executive summary, then details each finding with a risk rating, evidence and concrete remediation, so both leaders and engineers can act.3 min
  4. Debrief & next stepsA debrief presents findings to the owner as you would to a client, explaining impact and priorities in plain language and planning a retest of fixes. It closes the loop and points to continued, legal practice.3 min