8/23/2011

Installing Metasploit 4.0.0 on Ubuntu 10.04 LTS

Installing metasploit is quite easy. I have documented the installation instructions that I used below, however its just as simple to follow the more comprehensive instructions from the Rapid7/Metasploit site[1] (https://community.rapid7.com/docs/DOC-1296).



  1. sudo apt-get install -y ruby libopenssl-ruby libyaml-ruby libdl-ruby libiconv-ruby libreadline-ruby irb ri rubygems
  2. wget http://updates.metasploit.com/data/releases/framework-4.0.0.tar.bz2
  3. sudo mkdir /opt/metasploit4
  4. sudo bunzip framework-4.0.0.tar.bz2
  5. sudo tar xvf framework-4.0.0.tar
  6. sudo mv msf3 /opt/metasploit4
  7. sudo chown -R root:root /opt/metasploit4/msf3
  8. sudo ln -s /opt/metasploit4/msf3/msf* /usr/local/bin
  9. cd /opt/metasploit4/msf3
  10. sudo svn update
  11. sudo crontab -e -u root # Enter "1 * * * * * /usr/bin/svn update  /opt/metasploit4/msf3/ >> /var/log/msf3update.log 2>&1"
  12. sudo apt-get install -y mysql-server
  13. sudo apt-get install -y rubygems libmysqlclient-dev
  14. sudo apt-get install -y ruby-dev
  15. sudo gem install mysql


References:
  1. https://community.rapid7.com/docs/DOC-1296


4 comments:

  1. wget http://updates.metasploit.com/data/releases/framework-4.0.0.tar.bz2
    --2012-08-01 14:44:06-- http://updates.metasploit.com/data/releases/framework-4.0.0.tar.bz2
    Resolving updates.metasploit.com... 184.154.104.2
    Connecting to updates.metasploit.com|184.154.104.2|:80... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: http://downloads.metasploit.com/data/releases/framework-4.0.0.tar.bz2 [following]
    --2012-08-01 14:44:13-- http://downloads.metasploit.com/data/releases/framework-4.0.0.tar.bz2
    Resolving downloads.metasploit.com... 107.6.133.250
    Connecting to downloads.metasploit.com|107.6.133.250|:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2012-08-01 14:44:19 ERROR 404: Not Found.


    For Step2. this was the result.....Please dont publish such bullshit in future....

    ReplyDelete
    Replies
    1. Hi Rony,

      Thanks for your comment. You are getting the error because download link is broken. I suspect because Rapid7 have updated their website. Additionally, the post is over a year old and since then, we have had updated releases of both Ubuntu and Metasploit.

      You can find the latest version of the Metasploit source code at http://downloads.metasploit.com/data/releases/framework-latest.tar.bz2

      Also more resent documentation can be located at https://community.rapid7.com/community/metasploit/content?filterID=content~category[documentation]

      Cheers
      K

      Delete
  2. rony seems like the kinda person that really doesn't need to be running a tool like this.

    ReplyDelete
    Replies
    1. Hi Daniel,

      Thanks for the comment.

      Regarding Rony's comments, "To each his own"

      Cheers
      K

      Delete