What Ethical Hacking Actually Is
Let's clear up the biggest misconception right away: ethical hacking isn't about breaking into systems for fun or profit. It's about finding vulnerabilities BEFORE malicious hackers do and helping organisations fix them. Ethical hackers (also called penetration testers or white-hat hackers) are paid to think like attackers so they can defend like experts.
I got interested in cybersecurity after building my first web application and realising how many ways it could be compromised. That sparked a journey into ethical hacking that I'm still on today currently working towards my CEH (Certified Ethical Hacker) certification.
The Ethical Hacking Mindset
Before touching any tools, you need the right mindset:
- Always have permission Never test systems you don't own or have explicit written authorisation to test. This isn't optional it's the law
- Think like an attacker What would you do if you wanted to break in? What's the weakest link?
- Document everything Every step, every finding, every successful and failed attempt. Professional pentesters write detailed reports
- Never cause damage The goal is to find vulnerabilities, not exploit them destructively
The Five Phases of Penetration Testing
Every ethical hacking engagement follows this standard methodology:
1. Reconnaissance
Gathering information about the target publicly available data, DNS records, employee names, technology stack, server details. This is done passively (without touching the target) and actively (direct interaction).
# Example: DNS lookup using Python
import socket
target = "example.com"
ip = socket.gethostbyname(target)
print(f"IP Address: {ip}")
# Reverse DNS
try:
hostname = socket.gethostbyaddr(ip)
print(f"Hostname: {hostname[0]}")
except socket.herror:
print("Reverse DNS failed")
2. Scanning
Actively probing the target for open ports, running services, and potential vulnerabilities. Nmap is the industry-standard tool for this:
# Basic port scan concepts (on YOUR OWN systems only)
# Nmap command examples:
# nmap -sV target_ip (service version detection)
# nmap -O target_ip (OS detection)
# nmap -p 1-1000 target_ip (scan specific port range)
3. Gaining Access
Using discovered vulnerabilities to establish access. This could involve exploiting unpatched software, weak passwords, misconfigured services, or social engineering vectors.
4. Maintaining Access
Testing whether the vulnerability allows persistent access can an attacker stay in the system undetected? This phase helps organisations understand the real-world impact of a vulnerability.
5. Reporting
The most important phase. A vulnerability you find but don't report clearly is a vulnerability that won't get fixed. Professional reports include severity ratings, reproduction steps, and remediation recommendations.
Essential Tools for Beginners
- Kali Linux A Linux distribution built specifically for security testing, pre-loaded with hundreds of tools
- Nmap Network scanner for discovering hosts, services, and open ports
- Wireshark Network protocol analyser for inspecting traffic in real-time
- Burp Suite Web application security testing platform (the free Community Edition is enough to start)
- Metasploit Penetration testing framework with a massive database of known exploits
- Python For writing custom scripts, automating tasks, and building your own tools
Where to Practice Legally
Never practise on systems you don't have permission to access. Use these purpose-built platforms instead:
- TryHackMe Guided, beginner-friendly cybersecurity labs (start here)
- Hack The Box More challenging machines for intermediate learners
- OWASP WebGoat A deliberately insecure web application for learning web security
- OverTheWire Wargames that teach security concepts through puzzles
- VulnHub Downloadable vulnerable VMs you can attack locally
My Learning Path So Far
- Started with basic networking understanding TCP/IP, DNS, HTTP, and how the internet actually works
- Learned Linux command line essential for using most security tools
- Built web applications understanding how apps work helps you understand how they break
- Practised on TryHackMe completing beginner paths and capture-the-flag challenges
- Currently preparing for CEH certification structured study covering all domains of ethical hacking
The Bottom Line
Cybersecurity is one of the fastest-growing fields in tech, and ethical hacking is at its core. Every company with a digital presence needs people who can think like hackers and defend like experts. If you're interested, start with the fundamentals networking, Linux, and one practice platform. Build from there.
And always remember: the "ethical" in ethical hacking isn't optional. It's the entire point.
I can help review your web application for common security vulnerabilities.
Get in Touch '