Installing Metasploit from svn on FreeBSD
  Apr 04, 2010

Since Metasploit is so dynamic and still changing frequently with full time employees, it is best to just sync a local file tree to the latest code branch when you plan to use it. You can use the /usr/ports/security/metasploit port, but you will find it lagged far behind the latest SVN tree.

Anyways, we need to install subversion to download the Metasploit Framework.

  1. # cd /usr/ports/devel/subversion
  2. # make install clean distclean

Now make room for Metasploit and download the tree.

  1. $ mkdir ~/.msf3
  2. $ cd ~/.msf3
  3. $ svn co https://www.metasploit.com/svn/framework3/trunk framework

Finally, drag in Ruby and a few supporting modules.

  1. # cd /usr/ports/databases/rubygem-activerecord
  2. # make install clean distclean
  3. # cd /usr/ports/devel/ruby-rreadline
  4. # make install

Also, if you want to interface Metaspoit with a database backend (and you will), just install database server of choice (MySQL, Postgres, Sqlite3) and supporting Ruby module.

  1. # cd /usr/ports/databases/mysql51-server
  2. # make install clean distclean
  3. # cd /usr/ports/databases/ruby-mysql
  4. # make install
  1. # cd /usr/ports/databases/sqlite
  2. # make install clean distclean
  3. # cd /usr/ports/databases/rubygem-sqlite3
  4. # make install

If you want to use the Web interface, you will have to install yet another Ruby module.

  1. # cd /usr/ports/www/rubygem-rails
  2. # make install clean distclean



Post a New Comment

Name

Message

Security
Code

        (case insensitive & space between words)