Installing Metasploit on Mac OS X

Starting with version 10.4, the Metasploit Framework will function out of the box on Mac OS X. However, due to some deficiencies in the native Ruby install, we recommend that Fink or Darwin Ports be used to build a new version of Ruby. Due to our own experience with Fink, we suggest that you use Darwin Ports.

Darwin Ports

Once Darwin Ports has been configured, you can build a new version of Ruby with the following command:

root# port install ruby

This command will download and build Ruby, Readline, and any library dependencies needed to support them. Once the new Ruby binary has been built, download Ruby Gems, extract the tarball, and execute the following command:

rubygems-0.9.2 root# ruby setup install

Finally, use the "gems" command to install the correct version of Rails:

root# gem install -v=1.2.2 rails

Metasploit

Once Ruby, Ruby Gems, and Rails have been properly installed, download the Unix tarball from the Framework Website and extract it to the directory of your choice. Change into the framework3 directory and execute the appropriate interface (msfconsole, msfweb, etc).