View Issue Details

IDProjectCategoryView StatusLast Update
0007383Kali LinuxKali Package Bugpublic2021-10-14 08:06
ReporterDober Assigned Todaniruiz  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version2021.3 
Summary0007383: Metasploit crashing on start
Description

Package: metasploit-framework
Version: 6.1.8-0kali1

/usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/loader/callbacks.rb:18:in `on_file_autoloaded': expected file /usr/share/metasploit-framework/lib/msf/core/auxiliary/msrp.rb to define constant Msf::Auxiliary::Msrp, but didn't (Zeitwerk::NameError)

Steps To Reproduce

$ sudo msfdb init && msfconsole
[+] Starting database
[i] The database appears to be already configured, skipping initialization
Traceback (most recent call last):
35: from /usr/bin/msfconsole:18:in <main>' 34: from /usr/bin/msfconsole:18:inrequire'
33: from /usr/share/metasploit-framework/lib/msfenv.rb:17:in <top (required)>' 32: from /usr/share/metasploit-framework/lib/msfenv.rb:17:inrequire'
31: from /usr/share/metasploit-framework/config/environment.rb:4:in <top (required)>' 30: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.1/lib/rails/railtie.rb:207:inmethod_missing'
29: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.1/lib/rails/railtie.rb:207:in public_send' 28: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.1/lib/rails/application.rb:391:ininitialize!'
27: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.1/lib/rails/initializable.rb:60:in run_initializers' 26: from /usr/lib/ruby/2.7.0/tsort.rb:205:intsort_each'
25: from /usr/lib/ruby/2.7.0/tsort.rb:226:in tsort_each' 24: from /usr/lib/ruby/2.7.0/tsort.rb:347:ineach_strongly_connected_component'
23: from /usr/lib/ruby/2.7.0/tsort.rb:347:in call' 22: from /usr/lib/ruby/2.7.0/tsort.rb:347:ineach'
21: from /usr/lib/ruby/2.7.0/tsort.rb:349:in block in each_strongly_connected_component' 20: from /usr/lib/ruby/2.7.0/tsort.rb:431:ineach_strongly_connected_component_from'
19: from /usr/lib/ruby/2.7.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' 18: from /usr/lib/ruby/2.7.0/tsort.rb:228:inblock in tsort_each'
17: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.1/lib/rails/initializable.rb:61:in block in run_initializers' 16: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:inrun'
15: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in instance_exec' 14: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.1/lib/rails/application/finisher.rb:133:inblock in <module:Finisher>'
13: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/loader.rb:508:in eager_load_all' 12: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/loader.rb:508:ineach'
11: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/loader.rb:393:in eager_load' 10: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/loader.rb:393:insynchronize'
9: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/loader.rb:404:in block in eager_load' 8: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/loader.rb:725:inls'
7: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/loader.rb:725:in foreach' 6: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/loader.rb:733:inblock in ls'
5: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/loader.rb:409:in block (2 levels) in eager_load' 4: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/loader.rb:409:inconst_get'
3: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:26:in require' 2: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:26:intap'
1: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:27:in block in require' /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/loader/callbacks.rb:18:inon_file_autoloaded': expected file /usr/share/metasploit-framework/lib/msf/core/auxiliary/msrp.rb to define constant Msf::Auxiliary::Msrp, but didn't (Zeitwerk::NameError)

Additional Information

gem env 127 тип
RubyGems Environment:

  • RUBYGEMS VERSION: 3.2.27
  • RUBY VERSION: 2.7.4 (2021-07-07 patchlevel 191) [x86_64-linux-gnu]
  • INSTALLATION DIRECTORY: /var/lib/gems/2.7.0
  • USER INSTALLATION DIRECTORY: /root/.gem/ruby/2.7.0
  • RUBY EXECUTABLE: /usr/bin/ruby2.7
  • GIT EXECUTABLE: /usr/bin/git
  • EXECUTABLE DIRECTORY: /usr/local/bin
  • SPEC CACHE DIRECTORY: /root/.gem/specs
  • SYSTEM CONFIGURATION DIRECTORY: /etc
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86_64-linux
  • GEM PATHS:
    • /var/lib/gems/2.7.0
    • /root/.gem/ruby/2.7.0
    • /usr/local/lib/ruby/gems/2.7.0
    • /usr/lib/ruby/gems/2.7.0
    • /usr/lib/x86_64-linux-gnu/ruby/gems/2.7.0
    • /usr/share/rubygems-integration/2.7.0
    • /usr/share/rubygems-integration/all
    • /usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:
  • SHELL PATH:
    • /usr/local/sbin
    • /usr/local/bin
    • /usr/sbin
    • /usr/bin
    • /sbin
    • /bin
    • /root/.dotnet/tools
    • /bin
    • /root/GO/bin

Activities

Dober

Dober

2021-10-14 07:05

reporter   ~0015287

I apologize for my mistake, this problem caused by third-party module Viproy-voipkit. It seems that the Viproy-voipkit is no longer compatible with the MSF 6.1.x
After deleting the module files, everything works fine.
Pls, close this issue.

Issue History

Date Modified Username Field Change
2021-10-11 08:21 Dober New Issue
2021-10-14 07:05 Dober Note Added: 0015287
2021-10-14 08:06 daniruiz Assigned To => daniruiz
2021-10-14 08:06 daniruiz Status new => closed
2021-10-14 08:06 daniruiz Resolution open => no change required