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/

Site içinde arama yapın
Kategoriler
Read More
Tech
Amazon Fire TV Blocks Sideloaded Apps in 2026: What You Need to Know
Amazon has started blocking the installation of certain sideloaded applications on Fire TV...
By techhub 2026-02-27 13:15:45 0 515
Tech
Elon Musk’s Grok AI Chatbot Ranks Worst in Countering Antisemitic Content, ADL Study Finds
A recent independent study by the Anti-Defamation League (ADL) has found that Elon Musk’s Grok...
By techhub 2026-02-27 13:15:46 0 751
Tech
Under Armour Investigates Major Data Breach Affecting Millions of Customers
Clothing and athletic gear company Under Armour is investigating a significant data breach that...
By techhub 2026-02-27 13:15:46 0 609
Tech
How to Install Fonts in Windows 11
Installing fonts in Windows 11 allows you to use new typefaces in applications like Microsoft...
By techhub 2026-02-27 13:15:43 0 465
Tech
Google Dork Cheatsheet
DisclaimerUSE AT YOUR OWN RISK! Google Dorking can be used for Cybersecurity, Penetration, and...
By Luckyy 2026-02-26 18:16:17 0 352