Skip to content
Tutorials Center
My learning

Topics

Metasploit Framework Tutorial

Learn Metasploit Framework step by step: 37 lessons in 9 chapters with examples, quizzes, diagrams and projects.

Start learning →

of lessons completed

Getting Started

  1. 1 What Is the Metasploit Framework? Learn what the Metasploit Framework is, who uses it, how it fits into authorized penetration testing and defence, and what this course will and will not cover.
  2. 2 Scope, Law and Building a Safe Lab Before you run a single Metasploit command: understand authorization, scope and rules of engagement, and plan an isolated lab network so practice stays legal and safe.
  3. 3 Installing Metasploit and Starting the Database Install the Metasploit Framework on Kali, Linux or Windows, initialise its PostgreSQL database with msfdb, update safely, and check that everything works.
  4. 4 msfconsole Basics: Commands, Search and Help Learn the msfconsole interface: help, search with filters, use, info, show options, back, tab completion, logging with spool, and reading the prompt.
  5. 5 Workspaces, Hosts, Services and Loot Organise an engagement with Metasploit workspaces and read the database commands hosts, services, vulns, creds, notes and loot, then export data for reports.

Architecture and Modules

  1. 6 The Metasploit Architecture: Libraries, Interfaces and Modules Understand how the Metasploit Framework is built: the Rex library, the MSF core, interfaces like msfconsole, the module tree, plugins, tools and where files live on disk.
  2. 7 Module Types: Exploits, Auxiliary, Post, Payloads and More Learn each Metasploit module type, exploit, auxiliary, post, payload, encoder, nop and evasion: what it does, when you use it and how defenders think about each.
  3. 8 Anatomy of a Metasploit Module: Reading the Ruby Safely Learn how a Metasploit module is structured in Ruby: metadata, references, options, the run or check method, and how to read a module's code to understand what it does.
  4. 9 Options, the Datastore, setg and Resource Scripts Master Metasploit options: module-level set versus global setg, the datastore, saving settings, and resource scripts that make a lab or test fully repeatable.

Information Gathering

  1. 10 Reconnaissance Methodology: Passive and Active Information Gathering Learn how authorized testers gather information: passive versus active recon, what to collect, how to stay in scope, and how defenders reduce what an attacker can learn.
  2. 11 Nmap, db_nmap and Importing Scan Results Use Nmap together with Metasploit: run db_nmap, import XML, read host and service tables, choose sensible scan options, and understand how defenders spot scans.
  3. 12 Service Enumeration with Auxiliary Scanner Modules Use Metasploit auxiliary scanner modules to identify services such as SSH, HTTP, SMB and databases, read version banners, and understand what defenders log.
  4. 13 Parsing and Summarising Scan Results with Python Turn raw scan output into a prioritised table with Python: parse services, group by host, rank findings by risk, and produce a short report section from lab data.

Exploits and Payloads

  1. 14 Exploit Modules Explained: Targets, Ranks, Check and Run Understand how Metasploit exploit modules work conceptually: vulnerability classes, targets, ranks, the check method, safe use in a lab, and what defenders see and patch.
  2. 15 Payloads: Singles, Stagers and Stages Explained Learn how Metasploit payloads are named and built: singles versus staged payloads, reverse versus bind connections, architectures, and how defenders detect each kind.
  3. 16 Handlers, Jobs and Sessions: Managing Connections Learn how Metasploit receives payload connections: the multi/handler listener, background jobs, the sessions command, session types, and how defenders find and close them.
  4. 17 Vulnerability Research: CVEs, Advisories and Matching Modules Learn to connect findings to vulnerabilities: reading CVE entries and CVSS scores, using search cve filters, vendor advisories, and prioritising what to patch first.
  5. 18 Encoders, Evasion Testing and the Defender's View Understand what encoders and evasion modules do, why encoding is not real protection, how signature and behaviour detection work, and how to test your own defences.

Meterpreter and Post-exploitation

  1. 19 Meterpreter Overview: Sessions and Staging Understand what Meterpreter is, how staged and stageless payloads differ, and how sessions are tracked, from a defender's and an authorized tester's viewpoint.
  2. 20 Meterpreter Commands and File System Work A tour of core Meterpreter commands for system facts, files and processes, with read-only sample output and a Python stand-in for a command dispatcher.
  3. 21 Post-exploitation Modules Learn how Metasploit post modules work, how to run them against a session, which kinds of facts they gather, and how defenders limit what they can find.
  4. 22 Pivoting and Routing Concepts Understand pivoting, routes and port forwards in Metasploit as network concepts, and see how segmentation and egress filtering stop lateral movement.
  5. 23 Privilege Escalation Concepts and Hardening Learn why privilege escalation matters in a penetration test, the common weakness classes, and how to audit and harden your own systems against them.

Auxiliary and Scanning

  1. 24 Auxiliary Modules Learn what Metasploit auxiliary modules are, how they differ from exploits, how to find, configure and run them, and how their output ends up in the database.
  2. 25 Port Scanning with Auxiliary Modules Understand how TCP connect and SYN port scans work, how Metasploit's portscan modules and db_nmap report results, and build a loopback scanner in Node.js.
  3. 26 Service Version Scanners and Banner Grabbing Learn how version scanners and banner grabbing identify services, what Metasploit's SSH, HTTP and SMB scanners report, and how to hide or verify banners.
  4. 27 Credential Auditing with Login Scanners How Metasploit login scanners test credentials in an authorized audit, how the creds database stores results, and how lockout and MFA defeat guessing attacks.

Defence and Detection

  1. 28 Detecting Metasploit Activity How defenders spot Metasploit-style activity: network beacons, scan patterns, endpoint telemetry and log clues, with Python stand-ins for beacon and scan detection.
  2. 29 Writing Detection Signatures Learn how detection rules are structured in Suricata, Snort and Sigma, and write a small signature engine in Python to test rules against sample events.
  3. 30 Hardening Against Exploitation A practical hardening guide: patch management, attack-surface reduction, exploit mitigations like ASLR, least privilege and configuration baselines you can script.
  4. 31 Logging and Incident Response What to log, how to build a timeline from events, and the incident response phases that follow an exploited host, with a Python timeline and triage stand-in.

Labs and Ethics

  1. 32 Law, Ethics and Authorization Why written authorization matters, what computer-misuse laws cover, how scope and consent work, and a professional code of conduct for using Metasploit.
  2. 33 Building a Home Lab Safely Design an isolated home lab for practising Metasploit: virtualisation, host-only networks, snapshots, intentionally vulnerable targets and rules that keep it contained.
  3. 34 Rules of Engagement and Reporting Follow a penetration-test methodology from planning to report: phases, evidence handling, severity ratings with CVSS, and writing findings clients can act on.

Projects and Practice

  1. 35 Project: A Safe Loopback Port Scanner Build a small TCP scanner in Node.js that refuses out-of-scope targets, grabs banners from local test services, and prints a findings report you can compare with a policy.
  2. 36 Project: A Log Analyzer for Scan and Brute-Force Detection Build a Python log analyzer that parses firewall and authentication logs, flags port scans, brute force and spraying, and writes a prioritised alert list.
  3. 37 Practice: A Full Assessment Walkthrough Walk through a complete authorized assessment in a lab: scope, scanning, findings, post-exploitation proof, defence recommendations, plus exercises to test yourself.