Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to start msfconsole
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Fulgurance
Veteran
Veteran


Joined: 15 Feb 2017
Posts: 1198

PostPosted: Tue Aug 16, 2022 9:06 pm    Post subject: Failed to start msfconsole Reply with quote

Hello, recently I emerged metasploit from pentoo overlay. This is all details about the ebuild:

Code:
[I] net-analyzer/metasploit [1]
     Available versions: 
     (6.0)  (~)6.0.50^s
     (6.1)  (**)6.1.25^s
     (9999) (**)9999*l^s
       {development +java nexpose oracle +pcap test RUBY_TARGETS="ruby26 ruby27"}
     Installed versions:  9999(9999)*l^s(15:46:31 12/08/22)(development java nexpose oracle pcap -test RUBY_TARGETS="ruby27")
     Homepage:            http://www.metasploit.org/
     Description:         Advanced framework for developing, testing, and using vulnerability exploit code


But when I start msfconsole, ruby complain about missing gems and ask to run a bundle install command.

Code:
zohran@alienware-m17-r3 ~ $ msfconsole
Could not find redcarpet-3.5.1, yard-0.9.28, pry-byebug-3.9.0, octokit-4.25.1, memory_profiler-1.0.0, ruby-prof-1.4.2, factory_bot_rails-6.2.0, fivemat-1.3.7, rake-13.0.6, rspec-rails-5.1.2, rspec-rerun-1.1.0, rubocop-1.31.1, activerecord-6.1.6, activesupport-6.1.6, actionpack-6.1.6, bcrypt-3.1.18, jsobfu-0.4.2, json-2.6.2, metasm-1.0.5, metasploit-concern-4.0.4, metasploit-credential-5.0.8, metasploit_data_models-5.0.5, metasploit-model-4.0.5, metasploit-payloads-2.0.94, metasploit_payloads-mettle-1.0.18, msgpack-1.5.3, network_interface-0.0.2, rubyntlm-0.6.3, nokogiri-1.13.6, packetfu-1.1.13, pcaprub-0.13.1, pg-1.4.1, railties-6.1.6, recog-2.3.23, openssl-ccm-1.2.3, patch_finder-1.0.2, puma-5.6.4, thin-1.8.1, sinatra-2.2.0, warden-1.2.9, swagger-blocks-3.0.0, em-http-request-1.1.7, sshkey-2.0.0, windows_error-0.1.4, xmlrpc-0.3.2, http-cookie-1.0.5, unix-crypt-1.3.0, pdf-reader-2.10.0, ruby-macho-3.0.0, bson-4.15.0, dnsruby-1.61.9, mqtt-0.5.0, net-ssh-7.0.1, ed25519-1.3.0, bcrypt_pbkdf-1.1.0, ruby_smb-3.1.7, net-ldap-0.17.1, net-smtp-0.3.1, winrm-2.3.6, rex-core-0.1.28, rex-text-0.2.38, rex-random_identifier-0.1.8, rex-powershell-0.1.96, rex-zip-0.1.4, rex-registry-0.1.4, rex-java-0.1.6, rex-struct2-0.1.3, rex-arch-0.1.14, rex-ole-0.1.7, rex-mime-0.1.7, rex-nop-0.1.2, rex-bin_tools-0.1.8, rex-socket-0.1.40, rex-sslscan-0.1.7, rex-rop_builder-0.1.4, rex-encoder-0.1.6, rex-exploitation-0.1.33, rb-readline-0.5.5, rubyzip-2.3.2, sqlite3-1.4.4, tzinfo-2.0.4, filesize-0.2.0, nexpose-7.3.0, xdr-3.0.3, faker-2.21.0, concurrent-ruby-1.0.5, hrr_rb_ssh-ed25519-0.4.2, irb-1.3.6, reline-0.2.5, aws-sdk-s3-1.114.0, aws-sdk-ec2-1.320.0, aws-sdk-iam-1.69.0, faye-websocket-0.11.1, eventmachine-1.2.7, faraday-2.3.0, faraday-retry-2.0.0, win32api-0.1.0, zeitwerk-2.6.0, webrick-1.7.0, byebug-11.1.3, pry-0.13.1, sawyer-0.9.2, factory_bot-6.2.1, rspec-core-3.11.0, rspec-expectations-3.11.0, rspec-mocks-3.11.1, rspec-support-3.11.0, rspec-3.11.0, parallel-1.22.1, parser-3.1.2.0, rainbow-3.1.1, regexp_parser-2.5.0, rexml-3.2.5, rubocop-ast-1.18.0, ruby-progressbar-1.11.0, unicode-display_width-2.2.0, activemodel-6.1.6, i18n-1.10.0, minitest-5.16.1, actionview-6.1.6, rack-2.2.4, rack-test-2.0.2, rails-dom-testing-2.0.3, rails-html-sanitizer-1.4.3, rkelly-remix-0.0.7, arel-helpers-2.14.0, mini_portile2-2.8.0, racc-1.6.0, method_source-1.0.0, thor-1.2.1, nio4r-2.5.8, daemons-1.4.1, mustermann-1.1.1, rack-protection-2.2.0, tilt-2.0.10, addressable-2.8.0, cookiejar-0.3.3, em-socksify-0.3.2, http_parser.rb-0.8.0, domain_name-0.5.20190701, Ascii85-1.1.0, afm-0.2.2, hashery-2.1.2, ruby-rc4-0.1.5, ttfunk-1.7.0, simpleidn-0.2.1, bindata-2.4.10, openssl-cmac-2.0.2, digest-3.1.0, net-protocol-0.1.3, timeout-0.3.0, builder-3.2.4, erubi-1.10.0, gssapi-1.3.1, gyoku-1.4.0, httpclient-2.8.3, logging-2.3.1, nori-2.6.0, hrr_rb_ssh-0.4.2, io-console-0.5.11, aws-sdk-core-3.131.2, aws-sdk-kms-1.57.0, aws-sigv4-1.5.0, websocket-driver-0.7.5, faraday-net_http-2.0.3, ruby2_keywords-0.0.5, coderay-1.1.3, diff-lcs-1.5.0, ast-2.4.2, loofah-2.18.0, public_suffix-4.0.7, unf-0.1.4, ffi-1.15.5, little-plugger-1.1.4, multi_json-1.15.0, aws-eventstream-1.2.0, aws-partitions-1.602.0, jmespath-1.6.1, websocket-extensions-0.1.5, crass-1.0.6, unf_ext-0.0.8.2 in any of the sources
Run `bundle install` to install missing gems.


The thing strange is, when I emerged metasploit, it installed already this gems. And if I do the bundle install, in which directory I have to do that ?

Any idea ?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3878

PostPosted: Wed Aug 17, 2022 5:02 pm    Post subject: Reply with quote

Hi
try
Code:


Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.


or appropriate directory.
Plz run
Code:

eqf metasploit

and locate the relevant directory.
Found it here
https://github.com/rapid7/metasploit-framework/issues/11597
_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum