October 20, 2017, 04:20:59 PM
Welcome, Guest. Please login or register.

The user's going to pick dancing pigs over security every time. -- Bruce Schneier

Author Topic: Speed up Metasploit with Ruby 2.1.5  (Read 784 times)

Offline ZEROF

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 225
  • Internets: +45/-1
    • Pentester
Speed up Metasploit with Ruby 2.1.5
« on: February 10, 2015, 04:38:19 PM »
Hi all,

I will post this tutorial here because i didn't test with other distros. If mod want to move it, no problem. We are doing some testing before pushing this to "out of box" settings.

Last news is that in the future MSF will support only newest Ruby version, from 2.1.5. But even now we can use MSF with Ruby 2.1.5 to get better performances.

# Install rbenv

Code: [Select]
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y gcc make build-essential libcurl4-openssl-dev ruby-dev libssl-dev openssl libreadline-dev
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
source ~/.bash_profile

# Install ruby

Code: [Select]
rbenv install 2.1.5
# Then set system Ruby to use 2.1.5

Code: [Select]
rbenv shell 2.1.5
And you are ready to use MSF with last supported Ruby version.

If you have issue with gems you will need to install them:

Code: [Select]
sudo gem install bundle
sudo bundle install

EDIT: Don't use this tutorial, read https://forum.backbox.org/announcements/backbox-switched-to-ruby2-1/msg8753/#new. Thank you.

Have fun!
« Last Edit: March 02, 2015, 01:31:07 AM by ZEROF »