Metasploit on Ubuntu


Metasploit is a computer security project that provides valuable information about the security vulnerabilities of a system. It can also help a system admin penetration testing and IDS signature development. With Metasploit, security teams can not only verify the vulnerabilities but also manage security calculations and improves security awareness; it can allow the team to stay ahead of the attackers with strong defense.

Metasploit uses Ruby at its core. Ruby is a powerful interpreted language. Metasploit is available in 2 editions – open-source (community edition) and paid (Metasploit Pro, Express).

As a Linux enthusiast, let’s check out the free, open-source version of Metasploit into our Ubuntu system!

Installing Metasploit

  • Installing dependencies

At first, we have to make sure that the system is ready for the installation.

Update all the system components –

Now, it’s time to install all the dependencies.

  • Installing Metasploit

Now, time to finally install Metasploit. Run the following command –

Firing Metasploit

Metasploit offers various ways of enjoying the service – GUI (Cobal Strike and Armitage) and CLI (msfcli and msfconsole). Metasploit also offers various APIs for controlling Metasploit from a remote computer. It can also be a great solution for scripting, especially performing automated tasks.

Let’s check out firing “msfconsole”. At first, we need the PostgreSQL service to run.

Time to start Metasploit!

You’ll see the Metasploit console running.

For all the available commands, type help or “?” (without quotes).

For exiting the console, run the following command –


Spread the love
  • 14

PS. If you like this post please share it with your friends on the social networks using the buttons above.Thanks.


Please enter your comment!
Please enter your name here