Install Metasploit error,How to solve this problem?

1,112 views
Skip to first unread message

net....@gmail.com

unread,
Jun 22, 2017, 8:36:48 PM6/22/17
to PentestBox Forum
D:\PentestBox\bin\metasploit-framework
> msfconsole

Bundler could not find compatible versions for gem "rex-arch":
  In Gemfile:
    metasploit-framework x86-mingw32 was resolved to 4.12.20, which depends on
      rex-arch x86-mingw32

Could not find gem 'rex-arch x86-mingw32', which is required by gem 'metasploit-framework x86-mingw32', in any of the sources.


D:\PentestBox\bin\metasploit-framework
>


D:\PentestBox\bin\metasploit-framework
> gem install rex-arch
> gem install rex-arch
ERROR:  Could not find a valid gem 'rex-arch' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/latest_specs.4.8.gz)
          Unable to download data from https://rubygems.org - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/latest_specs.4.8.gz)

> curl  https://rubygems.org/
<!DOCTYPE html>
<html lang="en-us">
  <head>
    <title>RubyGems.org | your community gem host</title>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" name="viewport">
    <meta name="google-site-verification" content="AuesbWQ9MCDMmC1lbDlw25RJzyqWOcDYpuaCjgPxEZY" />
    <link rel="apple-touch-icon" href="/apple-touch-icons/apple-touch-icon.png" />
      <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icons/app
......


> gem source
*** CURRENT SOURCES ***

https://rubygems.org/
https://rubygems.org

D:\PentestBox\bin\metasploit-framework
>


D:\PentestBox\bin\metasploit-framework
> bundle install
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies....
Using rake 11.2.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.9.0
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using pkg-config 1.1.7
Using rack 1.6.4
Using arel 6.0.4 (was 6.0.3)
Using bcrypt 3.1.11 (x86-mingw32)
Using bit-struct 0.16 (was 0.15.0)
Using filesize 0.1.1
Using rkelly-remix 0.0.7 (was 0.0.6)
Using metasm 1.0.3 (was 1.0.2)
Using thor 0.19.1
Using pg 0.21.0 (x86-mingw32) (was 0.18.4)
Using pg_array_parser 0.0.9
Fetching rex-core 0.1.10
Installing rex-core 0.1.10
Using rubyntlm 0.6.2 (was 0.6.0)
Using rubyzip 1.2.1 (was 1.2.0)
Using metasploit-payloads 1.1.13
Using metasploit_payloads-mettle 0.0.6
Using msgpack 1.1.0 (x86-mingw32) (was 1.0.0)
Using net-ssh 4.1.0 (was 3.2.0)
Using network_interface 0.0.1
Using addressable 2.4.0
Using multipart-post 2.0.0
Using openssl-ccm 1.2.1
Using pcaprub 0.12.4
Using patch_finder 1.0.2
Using redcarpet 3.3.4
Fetching rex-text 0.2.15 (was 0.1.1)
Installing rex-text 0.2.15 (was 0.1.1)
Fetching rex-java 0.1.5 (was 0.1.2)
Installing rex-java 0.1.5 (was 0.1.2)
Fetching rex-registry 0.1.3 (was 0.1.0)
Installing rex-registry 0.1.3 (was 0.1.0)
Fetching rex-struct2 0.1.2 (was 0.1.0)
Installing rex-struct2 0.1.2 (was 0.1.0)
Using robots 0.10.1
Using sqlite3 1.3.13 (x86-mingw32) (was 1.3.11)
Using sshkey 1.9.0 (was 1.8.0)
Fetching windows_error 0.1.2 (was 0.0.2)
Installing windows_error 0.1.2 (was 0.0.2)
Using docile 1.1.5
Using simplecov-html 0.10.0
Using yard 0.9.0
Using coderay 1.1.1
Using method_source 0.8.2
Using slop 3.6.0
Using fivemat 1.3.2
Using rspec-support 3.5.0
Using diff-lcs 1.2.5
Using ffi 1.9.14 (x86-mingw32)
Using contracts 0.14.0
Using gherkin 4.0.0
Using cucumber-wire 0.0.1
Using multi_json 1.12.1
Using multi_test 0.1.2
Using mime-types-data 3.2016.0521
Using timecop 0.8.1
Using bundler 1.15.0
Using tzinfo 1.2.2
Fetching nokogiri 1.6.8 (x86-mingw32)
Using rack-test 0.6.3
Using jsobfu 0.4.2 (was 0.4.1)
Gem::InstallError: rex-core requires Ruby version >= 2.2.0.
An error occurred while installing rex-core (0.1.10), and Bundler
cannot continue.
Make sure that `gem install rex-core -v '0.1.10'` succeeds before bundling.

In Gemfile:
  metasploit-framework was resolved to 4.12.20, which depends on
    metasploit-credential was resolved to 2.0.10, which depends on
      rex-socket was resolved to 0.1.6, which depends on
        rex-core

D:\PentestBox\bin\metasploit-framework
>

net....@gmail.com

unread,
Jun 22, 2017, 8:42:52 PM6/22/17
to PentestBox Forum
> gem install rex-core

ERROR:  Could not find a valid gem 'rex-core' (>= 0), here is why:
Reply all
Reply to author
Forward
0 new messages