rapid7 / metasploit-framework

Metasploit Framework
https://www.metasploit.com/
Other
34.14k stars 13.97k forks source link

Metasploit problem how can I fix it #14746

Closed BLUE-444 closed 3 years ago

BLUE-444 commented 3 years ago

/data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:29: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:44: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. Doing require 'backports' is deprecated and will not load any backport in the next major release. Require just the needed backports instead, or 'backports/latest'. /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/activesupport-4.2.11.3/lib/active_support/core_ext/object/duplicable.rb:111:in <class:BigDecimal>': undefined methodnew' for BigDecimal:Class (NoMethodError) from /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/activesupport-4.2.11.3/lib/active_support/core_ext/object/duplicable.rb:106:in <top (required)>' from /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/activesupport-4.2.11.3/lib/active_support/core_ext/object.rb:3:inrequire' from /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/activesupport-4.2.11.3/lib/active_support/core_ext/object.rb:3:in <top (required)>' from /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/activesupport-4.2.11.3/lib/active_support/core_ext.rb:2:inrequire' from /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/activesupport-4.2.11.3/lib/active_support/core_ext.rb:2:in block in <top (required)>' from /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/activesupport-4.2.11.3/lib/active_support/core_ext.rb:1:ineach' from /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/activesupport-4.2.11.3/lib/active_support/core_ext.rb:1:in <top (required)>' from /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/activesupport-4.2.11.3/lib/active_support/all.rb:3:inrequire' from /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/activesupport-4.2.11.3/lib/active_support/all.rb:3:in <top (required)>' from /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/metasploit_data_models-3.0.10/lib/metasploit_data_models.rb:17:inrequire' from /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/metasploit_data_models-3.0.10/lib/metasploit_data_models.rb:17:in <top (required)>' from /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/metasploit-credential-4.0.3/lib/metasploit/credential.rb:11:inrequire' from /data/data/com.termux/files/usr/lib/ruby/gems/3.0.0/gems/metasploit-credential-4.0.3/lib/metasploit/credential.rb:11:in <top (required)>' from /data/data/com.termux/files/home/metasploit-framework/lib/metasploit/framework/require.rb:22:inrequire' from /data/data/com.termux/files/home/metasploit-framework/lib/metasploit/framework/require.rb:22:in optionally' from /data/data/com.termux/files/home/metasploit-framework/lib/metasploit/framework/require.rb:68:inoptionally_include_metasploit_credential_creation' from /data/data/com.termux/files/home/metasploit-framework/lib/metasploit/framework/require.rb:115:in optionally_include_metasploit_credential_creation' from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/db_manager.rb:61:in' from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/db_manager.rb:23:in <top (required)>' from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/framework.rb:61:inrequire' from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/framework.rb:61:in <class:Framework>' from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/framework.rb:26:in' from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/framework.rb:18:in <top (required)>' from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core.rb:47:inrequire' from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core.rb:47:in <top (required)>' from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/payload/apk.rb:3:inrequire' from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/payload/apk.rb:3:in <top (required)>' from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/payload_generator.rb:2:inrequire' from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/payload_generator.rb:2:in <top (required)>' from /data/data/com.termux/files/usr/bin/msfconsole:47:inrequire' from /data/data/com.termux/files/usr/bin/msfconsole:47:in `

'

label-actions[bot] commented 3 years ago

This issue appears to be related to Ruby 3.0.0. At this time Metasploit does not support Ruby 3.0.0. Please try using Ruby 2.7.x with Metasploit.

Closing this issue as a duplicate of #14666 - which aims to track this feature request.

label-actions[bot] commented 3 years ago

Termux is not officially supported. https://github.com/rapid7/metasploit-framework/issues/11023

However, Metasploit reportedly does work with Termux.

Refer to the following for more information:

dorianmariecom commented 2 years ago

This warning is because the original poster was using an outdated version of bundler: 1.17.3, 2.3.10 is the latest https://rubygems.org/gems/bundler

You might want to update your Gemfile.lock