Results 1 to 3 of 3

Thread: Kali 1.10 - Ruby 2.1.5, Metasploit needed for SET to work.

  1. #1
    Join Date
    2015-Mar
    Posts
    1

    Kali 1.10 - Ruby 2.1.5, Metasploit needed for SET to work.

    I was attempting to use the SET application, and found it severely lacking (it does not work!), under Kali 1.10.

    Apparently Metasploit has updated their requirements for Ruby 2.1.5, while Kali has 1.9.

    Perform the usual:

    apt-get update
    apt-get upgrade

    does not resolve the issues.

    Any suggestions?

  2. #2
    Try updating Metasploit to 4.11.1-2015031001.
    Else, wait for kali 1.1.0a to be released.
    This is a Kali-Linux support forum - not general IT/infosec help.

    Useful Commands: OS, Networking, Hardware, Wi-Fi
    Troubleshooting: Kali-Linux Installation, Repository, Wi-Fi Cards (Official Docs)
    Hardware: Recommended 802.11 Wireless Cards

    Documentation: http://docs.kali.org/ (Offline PDF version)
    Bugs Reporting & Tool Requests: https://bugs.kali.org/
    Kali Tool List, Versions & Man Pages: https://tools.kali.org/

  3. #3
    Join Date
    2014-Dec
    Posts
    2
    I am experiencing the same problem. I updated my Kali to 1.1.0a and the problem still persists. In 1.1.0a Ruby is still 1.9. It would be great if someone can help!

    Edit:
    When I try to use Metasploit Browser Exploit Method in setoolkit, setoolkit crashes with the following error:
    "Could not find rake-10.4.2 in any of the sources
    Run `bundle install` to install missing gems."
    So I ran bundle install in /usr/share/metasploit-framework/, but some gems required ruby 2. Kali has only 1.9, so I had to update it. Here is what I did:

    1. apt-get -y install build-essential zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev locate libreadline6-dev libcurl4-openssl-dev git-core libssl-dev libyaml-dev openssl autoconf libtool ncurses-dev bison curl wget xsel postgresql postgresql-contrib libpq-dev libapr1 libaprutil1 libsvn1 libpcap-dev libsqlite3-dev
    2. curl -sSL https://rvm.io/mpapis.asc | gpg --import -
    3. curl -L https://get.rvm.io | bash -s stable --autolibs=enabled --ruby=2.1.5
    4. source /usr/local/rvm/scripts/rvm
    5. ruby -v # See that it's 2.1.5
    6. cd /usr/share/metasploit-framework/
    7. gem install bundler
    8. in the terminal choose Edit > Profile Preferences > Title and Command > check "Run command as a login shell" in order to use ruby 2.1.5 in every terminal
    9. (BUNDLEJOBS=$(expr $(cat /proc/cpuinfo | grep vendor_id | wc -l) - 1) && bundle config --global jobs $BUNDLEJOBS)
    10. bundle install
    11. setoolkit

    Run setoolkit only from the terminal, if you want to use the Metasploit Browser Exploit Method. Otherwise, you can run it from the Kali menu. This method does not replace the ruby installed in Kali, which still remains 1.9. If someone has a better solution, I will gladly accept it! It will be a good thing if the developers get to know about this issue and maybe release an update with a fix.

    EDIT2:
    The issue has been fixed in SET 6.3 which is now in the Kali repositories.
    Last edited by 50cent2513; 2015-04-15 at 13:07. Reason: Found a fix to the issue.

Similar Threads

  1. cant load ruby modules in metasploit
    By cryptoacid in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2020-02-29, 22:20
  2. Metasploit & Oracle (ruby-oci8) not working together
    By deadl0ck in forum General Archive
    Replies: 3
    Last Post: 2016-05-02, 22:19
  3. Missing Ruby Gem breaks Metasploit Framework?
    By factgasm in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2014-08-01, 11:09
  4. Metasploit Ruby Error?
    By Radesh in forum General Archive
    Replies: 1
    Last Post: 2014-07-15, 07:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •