-1

我正在尝试在 Raspberry Pi 模型 B+ 上安装 Metasploit

因为我是 Metasploit 和 Gems 环境的新手,所以我一直在关注此链接中的详细信息在Raspberry 上安装 Metasploit ,在我进行捆绑之前一切正常

root@ raspberrypi: ~/msf3# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
sh: 1: cannot create /2015110401 / null: Directory nonexistent
fatal: Not a git repository(or any of the parent directories): .git
Fetching gem metadata from https: //rubygems.org/.........
  Fetching version metadata from https: //rubygems.org/..
  Resolving dependencies............................................................................
Using rake 10.4.2
Using i18n 0.7.0
Using minitest 4.7.5
Using multi_json 1.11.2
Using thread_safe 0.3.5
Using tzinfo 0.3.44
Using activesupport 4.0.13
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.5
Using rack - test 0.6.3
Using actionpack 4.0.13
Using mime - types 2.6.1
Using mail 2.6.3
Using actionmailer 4.0.13
Using activemodel 4.0.13
Using activerecord - deprecated_finders 1.0.4
Using arel 4.0.2
Using activerecord 4.0.13
Using arel - helpers 2.1.0
Using ffi 1.9.8
Using childprocess 0.5.5
Using diff - lcs 1.2.5
Using gherkin 2.12.2
Using multi_test 0.1.2
Using cucumber 1.3.19
Using rspec - expectations 2.99.2
Using aruba 0.6.2
Using bcrypt 3.1.10
Using bundler 1.10.6
Using mini_portile 0.6.2
Using nokogiri 1.6.6.2
Using xpath 2.0.0
Using capybara 2.4.4
Using coderay 1.1.0
Using thor 0.19.1
Using railties 4.0.13
Using hike 1.2.3
Using tilt 1.4.1
Using sprockets 2.12.3
Using sprockets - rails 2.2.4
Using rails 4.0.13
Using cucumber - rails 1.4.2
Using docile 1.1.5
Using factory_girl 4.5.0
Using factory_girl_rails 4.5.0
Using fivemat 1.2.1
Using rkelly - remix 0.0.6
Using jsobfu 0.2.1
Using json 1.8.3
Using metasm 1.0.2
Installing metasploit - concern 1.0.0

Gem::InstallError: metasploit - concern requires Ruby version >= 2.1.
An error occurred
while installing metasploit - concern(1.0.0), and Bundler
cannot
continue.
Make sure that `gem install metasploit-concern -v '1.0.0'`
succeeds before
bundling.

所以它说我应该安装 metasploit-concern v 1.0.0

然后我尝试使用以下两个代码gem install metasploit-concern -v '1.0.0'gem install metasploit-concern

ERROR:  Error installing metasploit-concern:
    metasploit-concern requires Ruby version >= 2.1.

所以然后我尝试安装 Ruby 2.1 和 ruby

root@raspberrypi:~/msf3# gem install Ruby -v '2.1' ERROR: Could not find a valid gem 'Ruby' (= 2.1) in any repository ERROR: Possible alternatives: ruby

root@raspberrypi:~/msf3# gem install ruby ERROR: Could not find a valid gem 'ruby' (>= 0) in any repository ERROR: Possible alternatives: ruby

现在你可以看到它是一个漏洞,我被卡住了

ps * 也已经安装了 ruby​​-dev * 每次都尝试在 ruby​​ 和 ruby​​ 之间切换*捆绑时它说(使用)而不是(安装),因为我尝试重新运行捆绑以查看它是否可以工作)* 我也尝试采购gem sources -a https://rubygems.org. 和gem sources -a https://rubygems.org

我试图提供所有可能的信息,也许它有用,也许它不是......以防万一

我将非常感谢您的帮助在此先感谢

干杯班达尔

4

1 回答 1

0

红宝石不是宝石。Ruby 是编程语言。

错误告诉您的是您机器上的 Ruby 版本(尝试运行ruby --version)低于您尝试安装的应用程序所需的版本。

我特别不熟悉 Metasploit,但您的选择似乎是:

  1. 尝试升级您已安装的 ( apt-get update && apt-get upgrade),

  2. 如果您使用的是存储库中可用的最新版本的 Ruby,请尝试使用Ruby 版本管理器(我的偏好是 rbenv,但每个都有其优点),或者

  3. 源代码编译 Ruby

于 2015-11-13T16:09:04.120 回答