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:


- RUBY
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 http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1
- Compile it:
cd ruby_1_9_1
autoconf
./configure --enable-pthread
make
make test
sudo make install
cd ./../../
rm -rf ./ruby
ruby -v
ruby 1.9.1p420 (2010-02-04 revision 26571) [i386-darwin10.2.0]






- METASPLOIT
cd ~/Desktop/
mkdir msf
cd msf


- download either the latest stable version:
wget http://www.metasploit.com/releases/framework-3.3.3.tar.bz2
- or the latest dev version:
svn co https://www.metasploit.com/svn/framework3/trunk/
cd trunk
./msfconsole


ENJOY!




2 comments:

  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.

    ReplyDelete
  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.

    ReplyDelete