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.

9 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. also make sure you install nmap as well
    for 64 bit system use this
    wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-x64-installer.run
    chmod +x metasploit-latest-linux-x64-installer.run
    sudo ./metasploit-latest-linux-x64-installer.run
    i made a quick video and will put a link to your page
    http://www.youtube.com/watch?v=2NhTq2JTQqg&feature=youtu.be
    great site btw i like the layout

    ReplyDelete
  3. "has no VFS data to start up"

    ReplyDelete
  4. Thank u man! great tutorial (:

    ReplyDelete
  5. Thanks Eric, many thanks for this post. I have completed the installation but am stuck at the registration stage. I am asked to visit a link which I did using lynx. No go, the registration did not complete. I am running ubuntu in a virtual machine and do not have any graphics subsystems installed.

    ReplyDelete
  6. Warning: For your protection, access to Metasploit is limited to the local host until the initial user account has been configured. The initial user account can be created manually by launching the "diagnostic_shell" script in the base of the installation and executing "ruby [INSTALL_PATH]/apps/pro/ui/script/createuser".


    Can you help me resolv this problem!

    ReplyDelete
  7. You actualy need an application called wine from the ubuntu software center.
    It has a box of tools as its logo in the center. Download metasploit from the site and right click, properties, and tick the box in permissions column and in the application column make wine as your default application. Then go to terminal cd Downloads, and then type sudo ./metasploit-latest-linux-installer.run YOu can replace metasploit-latest-linux-installer.run with the name of the metasploit installer

    ReplyDelete