Thursday, February 18, 2010

Getting the latest Metasploit 3.3 branch to work on Mac OS X 10.6.1 (Ruby 1.9.1)

A very basic post just to help new users getting Metasploit to work with the latest OS X version:

cd ~/Desktop/
mkdir ruby
cd ./ruby
- Download the latest Ruby stable svn snapshot (at the time I am writing this article, it is 1.9.1) svn co
- Compile it:
cd ruby_1_9_1
./configure --enable-pthread
make test
sudo make install
cd ./../../
rm -rf ./ruby
ruby -v
ruby 1.9.1p420 (2010-02-04 revision 26571) [i386-darwin10.2.0]

cd ~/Desktop/
mkdir msf
cd msf

- download either the latest stable version:
- or the latest dev version:
svn co
cd trunk



  1. What if Ruby won't install the latest version.. I got my mac in 08 and it won't update ruby even if I put the code in exactly as you did. My mac is up to date and it works perfectly besides the fact that metasploit keeps coming up with the message: Ruby interpreter is contaminated. After I get the latest stable snapshot and try to install it it still doesn't work.

  2. What is your error message? Did you install XCode before ? If not you should, it contains severall stuff you need to compile programs on Mac OS X.