How to Install Metasploit (msfconsole) on Ubuntu (2026 Guide)

0
461

Metasploit Framework is a powerful penetration testing framework used for vulnerability validation, exploit development, and lab-based security research. The main interface is msfconsole.

This guide shows the correct way to install Metasploit on Ubuntu using the official Rapid7 installer.


Update Your System

Start by updating your packages:

sudo apt update
sudo apt upgrade -y

Install Metasploit (Official Method – Recommended)

Download the official installer from Rapid7:

curl https://downloads.metasploit.com/data/releases/metasploit-latest-linux-x64-installer.run -o metasploit-installer.run

Make it executable:

chmod +x metasploit-installer.run

Run the installer:

sudo ./metasploit-installer.run

Follow the on-screen setup prompts.


Verify Installation

After installation completes, check the version:

msfconsole --version

Launch Metasploit:

msfconsole

You should see the Metasploit banner load successfully.


Initialize the Database (Recommended)

Metasploit uses PostgreSQL for storing scan results and workspace data.

Start PostgreSQL:

sudo systemctl start postgresql

Initialize the Metasploit database:

sudo msfdb init

Inside msfconsole, confirm connection:

db_status

It should show PostgreSQL connected.


Basic msfconsole Usage

Search for modules:

search wordpress

Select a module:

use exploit/unix/webapp/wp_admin_shell_upload

View options:

show options

Set required parameters:

set RHOSTS 192.168.1.10
set RPORT 80

Run the module:

exploit

Updating Metasploit

To update Metasploit:

sudo msfupdate

Or re-run the installer when a new release is available.



Read the full article: https://luckyy.uk/how-to-install-metasploit-msfconsole-on-ubuntu-2026-guide/

Поиск
Категории
Больше
Tech
How to Change Your Wallpaper
Right-click anywhere on the desktop. Click Personalize. Select Background. Choose...
От Luckyy 2025-11-23 21:49:46 0 870
Tech
The Hidden Dangers of Not Stripping Metadata
When we share a photo, document, or video online, most of us focus on what’s visible. The...
От Luckyy 2025-12-24 10:01:05 0 2Кб
Tech
How to Turn Off BitLocker in Windows 11
BitLocker is Windows’ built-in drive encryption feature. It protects your data if your laptop is...
От techhub 2026-02-27 13:15:42 0 485
Tech
Windows Notepad Zero-Day Vulnerability (CVE-2026-20841)
Overview and How It Worked In February 2026, Microsoft released security updates...
От techhub 2026-02-27 13:15:45 0 468
Tech
100+ Platform Username OSINT Checker
I’ve released a lightweight Python-based Username OSINT Checker designed to quickly identify...
От techhub 2026-02-27 13:15:44 0 374