我按照https://www.darkoperator.com/installing-metasploit-in-ubunt/
上的教程进行操作我选择rbenv over rvm来安装Ruby。安装程序让我安装了ruby 2.4.2。
#ruby -v
ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
#rbenv -v
rbenv 1.1.1-28-gb943955
起初工作但后来一切都走下坡路。我觉得我只是错过了一些非常明显的东西。当我跑...我得到:
#sudo -E ./msfrpcd -U USER -P PASSWORD -a 127.0.0.1 -p 55554 -S
[!] There was an error parsing `Gemfile`:
[!] There was an error while loading `metasploit-framework.gemspec`:
can't modify frozen String. Bundler cannot continue.
# from /opt/metasploit-framework/metasploit-framework.gemspec:112
# -------------------------------------------
# # This used to be depended on by nokogiri, depended on by wmap
> if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.3.0')
# spec.add_runtime_dependency 'xmlrpc'
# -------------------------------------------
. Bundler cannot continue.
# from /opt/metasploit-framework/Gemfile:4
# -------------------------------------------
# # spec.add_runtime_dependency '<name>', [<version requirements>]
> gemspec name: 'metasploit-framework'
#
# -------------------------------------------
这也是Armitage脚本中的关键线&#34; teamserver&#34;失败了。
我差不多10年前没有Ruby on Rails以外的ruby经验。再一次,我觉得我因缺乏红宝石经验而错过了一些愚蠢的东西。如果我能提供更多信息,请告诉我。
感谢您的帮助!