rapid7 / metasploit-framework

Metasploit Framework
https://www.metasploit.com/
Other
34.03k stars 13.94k forks source link

Metasploit crashes directly after start #9690

Closed hanshaze closed 6 years ago

hanshaze commented 6 years ago

sudo msfconsole

cowsay++


< metasploit >

   \   ,__,
    \  (oo)____
       (__)    )\
          ||--|| *

   =[ metasploit v4.16.43-dev                         ]
  • -- --=[ 1741 exploits - 992 auxiliary - 301 post ]
  • -- --=[ 526 payloads - 40 encoders - 10 nops ]
  • -- --=[ Free Metasploit Pro trial: http://r-7.co/trymsp ]

/usr/share/metasploit-framework/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/core_ext/kernel/agnostics.rb:7:in ': Cannot allocate memory - infocmp (Errno::ENOMEM) from /usr/share/metasploit-framework/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/core_ext/kernel/agnostics.rb:7:in' from /usr/share/metasploit-framework/vendor/bundle/ruby/2.3.0/gems/rb-readline-0.5.5/lib/rbreadline.rb:1815:in get_term_capabilities' from /usr/share/metasploit-framework/vendor/bundle/ruby/2.3.0/gems/rb-readline-0.5.5/lib/rbreadline.rb:2027:in_rl_init_terminal_io' from /usr/share/metasploit-framework/vendor/bundle/ruby/2.3.0/gems/rb-readline-0.5.5/lib/rbreadline.rb:2564:in readline_initialize_everything' from /usr/share/metasploit-framework/vendor/bundle/ruby/2.3.0/gems/rb-readline-0.5.5/lib/rbreadline.rb:3849:inrl_initialize' from /usr/share/metasploit-framework/vendor/bundle/ruby/2.3.0/gems/rb-readline-0.5.5/lib/rbreadline.rb:4868:in readline' from /usr/share/metasploit-framework/lib/rex/ui/text/input/readline.rb:162:inreadline_with_output' from /usr/share/metasploit-framework/lib/rex/ui/text/input/readline.rb:100:in pgets' from /usr/share/metasploit-framework/lib/rex/ui/text/shell.rb:375:inget_input_line' from /usr/share/metasploit-framework/lib/rex/ui/text/shell.rb:191:in run' from /usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:48:instart' from /usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:82:in start' from msfconsole:48:in

'

Someone know how to fix? I reinstalled Metasploit and Ruby as well, but didnt work...... by the way,

Linux raspberrypi 4.9.78+ #1084 Thu Jan 25 17:40:10 GMT 2018 armv6l

bcoles commented 6 years ago

Errno::ENOMEM means there's not enough memory.

Looks like null-byte managed to get it working about a year ago -- https://null-byte.wonderhowto.com/how-to/raspberry-pi-metasploit-0167798/

hanshaze commented 6 years ago

ok, then i suppose it's the easiest to reinstall the OS... i guess i'll try minibian ..... #Errno::ENOMEM lol but thanks for help anyway

pbarry-r7 commented 6 years ago

Yeah, the "smaller" computers (like RPi) can struggle to fulfill the necessary resources for running Metasploit Framework, but many people do use them in this way. Good luck!

python2015ajax commented 5 years ago

apt-get purge metasploit-framework

curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \ chmod 755 msfinstall && \ ./msfinstall