Skip to content
Tutorials Center
My learning

Topics

Lesson 1 of 37 ยท Getting Started

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.

The Metasploit Framework is an open-source platform for security testing. It collects thousands of ready-made modules (scanners, exploit code, payloads, post-exploitation helpers) behind one consistent interface, so a tester does not have to learn a new tool for every vulnerability. It is written mostly in Ruby, it is maintained by Rapid7 and a large community, and it is installed by default on security-focused Linux distributions.

This course teaches Metasploit the way professionals use it: inside an authorized engagement, against systems you own or have written permission to test, with a strong focus on what defenders can learn from every step. Nothing here targets third parties, and no lesson ships working malware.

Using Metasploit against systems you do not own, or without written scope, is a crime in most countries, even when "nothing was damaged". Read the lab and scope lesson before you run any command.

Why one framework?

Before frameworks, public exploit code was a pile of scripts: different languages, different arguments, different quality. A tester spent more time making tools run than learning about the target. Metasploit solved this with three ideas.

  • A common module API. Every module declares its name, description, references and options in the same way, so you set options with the same commands whatever the module does.
  • Reusable components. A payload (what runs after a flaw is triggered) is separate from the exploit (how the flaw is triggered). Any compatible pair can be combined.
  • Shared state. Hosts, services, credentials and notes found by one module are stored in a database and are available to the next one.

What Metasploit gives you

Modules One interface for thousands of checks.
Database Hosts, services and loot in one place.
Evidence Reproducible steps for reports.

A framework, not a single tool.

1 / 2

The editions

  • Metasploit Framework is the free, open-source command-line edition. This course uses it.
  • Metasploit Pro is the commercial edition with a web interface, team features, reporting and automation.
  • Community releases and older GUIs (such as Armitage) exist but are not maintained as the main path.

You will mostly work in msfconsole, the interactive shell. Other programs in the same package include msfvenom (payload generation) and msfdb (database management), covered in the next lessons.

Where it fits in a test

Security assessments follow a rough cycle. Metasploit mainly helps in the middle.

flowchart LR
    A["Scope and permission"] --> B["Information gathering"]
    B --> C["Vulnerability analysis"]
    C --> D["Exploitation (proof)"]
    D --> E["Post-exploitation"]
    E --> F["Report and fix"]

The cycle is the same whatever tools you use. The report at the end is the actual product.

A good tester spends more time on the first and last box than on exploitation. Exploiting something is only valuable when it proves a risk to the owner so that it can be fixed.

The defender's reason to learn it

Defenders use Metasploit because attackers use similar techniques. If you run the same module against your own test server, you learn what the logs look like, whether the antivirus noticed, and whether the patch really closed the hole. Many organizations run a regular "purple team" exercise: testers run a technique, defenders check whether they saw it.

A first look at the vocabulary

A few terms appear in every lesson. The stand-in below does not touch any real system; it only models the vocabulary by tagging sample module names with their type, the way msfconsole lists them. The names are invented, just shaped like real ones.

Python Module names have a type prefix

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The first path component is the module type. You will meet each type properly in module types.

What this course covers

  1. Getting started: lab, install, console, database.
  2. Architecture and modules: how the framework is organized.
  3. Information gathering: recon you do before anything else.
  4. Exploits and payloads: how they work, and how defenders see them.
  5. Later chapters: post-exploitation, scanning, defence and detection, ethics, and projects.

Every chapter ends with the defensive angle: which patch, configuration or detection closes the door you just looked at.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is Metasploit mainly?

    Metasploit is a framework: shared interface, modules, database and components.
  2. 2. When is it acceptable to run Metasploit against a system?

    Authorization and scope make a test legal; technique does not.
  3. 3. Which edition does this course use?

    The free Framework edition with msfconsole is the one used throughout.
  4. 4. Why do defenders learn Metasploit?

    Running the same technique against your own test systems shows what you can detect and fix.

Summary

  • Metasploit is an open-source framework of modules, a database and a consistent console.
  • It is used by penetration testers, red teams, blue teams and students.
  • Exploitation is one step; scoping and reporting matter more.
  • Only test systems you own or are authorized in writing to test.

Next: Scope, Law and Lab Setup