Wednesday, June 6, 2012

Install Metasploit on Ubuntu 12.04

So I have a new Ubuntu 12.04 box I am playing with and I decided I wanted to install the Metasploit framework to do some testing with.  I found a few guides on the internet on how to install MSF 4 on Ubuntu, but the guides were slightly out of date.  Here is what I did to install Metasploit framework 4 on my Ubuntu 12.04 box.

Launch a terminal and type the following command:
wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-installer.run

After the download completes, make the file executable:
chmod +x metasploit-latest-linux-installer.run

Now execute the installer:
sudo ./metasploit-latest-linux-installer.run

Setup will walk you through the install process.

Now you can update the Metasploit framework by typing this command:
sudo msfupdate

After the update, I launched Metasploit using sudo so the database tables could be created:
sudo msfconsole

And that is it!  You should have Metasploit up and running on Ubuntu 12.04.