Cybrary ForgeCYBRARY / FORGE

Metasploit Framework

v6.4.9Rapid7

The best-known exploitation framework: a module library, payload generator (msfvenom), handlers and post modules. Defenders use it to reproduce an attack and confirm a detection fires. The range simulates the console, module search and the telemetry a run would produce — the artifacts a SOC would then hunt for.

Category
Exploitation frameworks
Package
metasploit-framework
Runs on
Linux · Windows
Commands
msfconsole, msfvenom, msfdb, searchsploit

Non-interactive: modules and payloads are described and their telemetry is generated. Nothing is compiled, launched or delivered.

Install it

The scripts below install the real Rapid7 package on your own machine — read them first, and run them somewhere you are allowed to change. Inside the range, one press puts the simulated package on your next machine.

Linux installer (shell script)
install-metasploit.sh
Windows installer (PowerShell)
Install-metasploit.ps1
On a range machine
Add it to your kit and every machine you launch comes with it.

On Linux

Debian, Ubuntu, Kali (apt)

  1. Refresh the package lists
    sudo apt update
  2. Install Metasploit Framework
    sudo apt install -y metasploit-framework

RHEL, Fedora (dnf)

  1. Install Metasploit Framework
    sudo dnf install -y metasploit-framework

    Package names drift between distributions; search first if this one misses.

Arch (pacman)

  1. Install Metasploit Framework
    sudo pacman -S --noconfirm metasploit-framework

Alpine (apk)

  1. Install Metasploit Framework
    sudo apk add metasploit-framework

    Package names drift between distributions; search first if this one misses.

Check it worked

  1. Confirm it landed on PATH
    which msfconsole
  2. Check the version
    msfconsole --version

    The range reports 6.4.9.

Remove it

  1. Take it off again
    sudo apt remove --purge metasploit-framework

On Windows

Windows Package Manager (winget)

  1. Search the catalog
    winget search metasploit-framework
  2. Install Metasploit Framework
    winget install --id metasploit-framework -e

    Package names drift between distributions; search first if this one misses.

Chocolatey (choco)

  1. Install Metasploit Framework
    choco install metasploit-framework -y

    Run the shell as administrator.

Check it worked

  1. Confirm it resolves
    where msfconsole
  2. Check the version
    msfconsole --version

    The range reports 6.4.9.

Remove it

  1. Take it off again
    winget uninstall --id metasploit-framework

Inside the range

  1. Tick it on the launch screen

    Under Metasploit Framework's category on the advanced tool shelf. A lab that depends on it locks the toggle on and says why.

  2. Or install it from a range terminal
    sudo apt install -y metasploit-framework

    The simulated package manager seeds the same binaries, config and receipt the shelf toggle does.

  3. Everything here is simulated

    No software is downloaded and nothing executes — the range answers from authored fixtures.

Labs that use Metasploit Framework

No lab locks this one on yet — tick it on the launch screen and take it into any scenario.