Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msfconsole throwing error after installing #6766

Closed
1 of 4 tasks
AliBawazeEer opened this issue Apr 9, 2016 · 8 comments
Closed
1 of 4 tasks

msfconsole throwing error after installing #6766

AliBawazeEer opened this issue Apr 9, 2016 · 8 comments

Comments

@AliBawazeEer
Copy link

Steps to reproduce

How'd you do it?

  1. ...
  2. ...

This section should also tell us any relevant information about the
environment; for example, if an exploit that used to work is failing,
tell us the victim operating system and service versions.

Expected behavior

What should happen?
root@debian-pentest:~# msfconsole

Metasploit Park, System Security Interface
Version 4.0.5, Alpha E
Ready...

access security
access: PERMISSION DENIED.
access security grid
access: PERMISSION DENIED.
access main security grid
access: PERMISSION DENIED....and...
YOU DIDN'T SAY THE MAGIC WORD!
YOU DIDN'T SAY THE MAGIC WORD!
YOU DIDN'T SAY THE MAGIC WORD!
YOU DIDN'T SAY THE MAGIC WORD!
YOU DIDN'T SAY THE MAGIC WORD!
YOU DIDN'T SAY THE MAGIC WORD!
YOU DIDN'T SAY THE MAGIC WORD!

   =[ metasploit v4.11.21-dev-16c599866cd501d0c619ce12248a2b0127ceaf93]
  • -- --=[ 1530 exploits - 893 auxiliary - 264 post ]
  • -- --=[ 436 payloads - 38 encoders - 8 nops ]
  • -- --=[ Free Metasploit Pro trial: http://r-7.co/trymsp ]

/opt/metasploit-framework/embedded/lib/ruby/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/core_ext/kernel/agnostics.rb:7:in ': Cannot allocate memory - infocmp (Errno::ENOMEM) from /opt/metasploit-framework/embedded/lib/ruby/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/core_ext/kernel/agnostics.rb:7:in'
from /opt/metasploit-framework/embedded/lib/ruby/gems/2.1.0/gems/rb-readline-r7-0.5.2.0/lib/rbreadline.rb:1815:in get_term_capabilities' from /opt/metasploit-framework/embedded/lib/ruby/gems/2.1.0/gems/rb-readline-r7-0.5.2.0/lib/rbreadline.rb:2027:in_rl_init_terminal_io'
from /opt/metasploit-framework/embedded/lib/ruby/gems/2.1.0/gems/rb-readline-r7-0.5.2.0/lib/rbreadline.rb:2519:in readline_initialize_everything' from /opt/metasploit-framework/embedded/lib/ruby/gems/2.1.0/gems/rb-readline-r7-0.5.2.0/lib/rbreadline.rb:3804:inrl_initialize'
from /opt/metasploit-framework/embedded/lib/ruby/gems/2.1.0/gems/rb-readline-r7-0.5.2.0/lib/rbreadline.rb:4823:in readline' from /opt/metasploit-framework/embedded/framework/lib/rex/ui/text/input/readline.rb:132:inreadline_with_output'
from /opt/metasploit-framework/embedded/framework/lib/rex/ui/text/input/readline.rb:86:in pgets' from /opt/metasploit-framework/embedded/framework/lib/rex/ui/text/shell.rb:187:inrun'
from /opt/metasploit-framework/embedded/framework/lib/metasploit/framework/command/console.rb:48:in start' from /opt/metasploit-framework/embedded/framework/lib/metasploit/framework/command/base.rb:82:instart'
from /opt/metasploit-framework/bin/../embedded/framework/msfconsole:48:in `

'

Current behavior

What happens instead?

You might also want to check the last ~1k lines of
/opt/metasploit/apps/pro/engine/config/logs/framework.log or
~/.msf4/logs/framework.log for relevant stack traces

System stuff

Metasploit version

Get this with the version command in msfconsole (or git log -1 --pretty=oneline for a source install).

I installed Metasploit with:

OS

What OS are you running Metasploit on?

ubuntu 14

@V1V1
Copy link

V1V1 commented Apr 18, 2016

You probably installed Metasploit on a system without enough memory. Create some swap space and try running msfconsole again.
Follow this guide:
https://www.optiv.com/blog/create-a-budget-friendly-virtual-private-server-with-a-metasploit-instance

He's using a DO droplet, but the steps to create swap space are the same. Follow the steps from this point "First Attempt at Running MSF (FAIL)".

@wchen-r7
Copy link
Contributor

@AliBawazeEer Nice report, but @p5i is correct - the stacktrace indicates your environment has run out of memory, so you will need to change that on your end. This doesn't look like a bug in Framework, so I will go ahead and close this ticket. But if for some reason that's not the case, feel free to ping me and I will be more than happy to reopen. Thanks.

@waffleio-r7 waffleio-r7 changed the title msfconsole throwing error after installing msfconsole throwing error after installing Apr 22, 2016
@AliBawazeEer
Copy link
Author

Hi all ,
this issue can be resolved , resolution swap file created

@vicky121998
Copy link

i have this error after install msf console
/opt/metasploit-framework/embedded/lib/ruby/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/core_ext/kernel/agnostics.rb:7:in ': Cannot allocate memory - infocmp (Errno::ENOMEM) from /opt/metasploit-framework/embedded/lib/ruby/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/core_ext/kernel/agnostics.rb:7:in '
from /opt/metasploit-framework/embedded/lib/ruby/gems/2.4.0/gems/rb-readline-0.5.5/lib/rbreadline.rb:1815:in get_term_capabilities' from /opt/metasploit-framework/embedded/lib/ruby/gems/2.4.0/gems/rb-readline-0.5.5/lib/rbreadline.rb:2027:in _rl_init_terminal_io'
from /opt/metasploit-framework/embedded/lib/ruby/gems/2.4.0/gems/rb-readline-0.5.5/lib/rbreadline.rb:2564:in readline_initialize_everything' from /opt/metasploit-framework/embedded/lib/ruby/gems/2.4.0/gems/rb-readline-0.5.5/lib/rbreadline.rb:3849:in rl_initialize'
from /opt/metasploit-framework/embedded/lib/ruby/gems/2.4.0/gems/rb-readline-0.5.5/lib/rbreadline.rb:4868:in readline' from /opt/metasploit-framework/embedded/framework/lib/rex/ui/text/input/readline.rb:162:in readline_with_output'
from /opt/metasploit-framework/embedded/framework/lib/rex/ui/text/input/readline.rb:100:in pgets' from /opt/metasploit-framework/embedded/framework/lib/rex/ui/text/shell.rb:189:in run'
from /opt/metasploit-framework/embedded/framework/lib/metasploit/framework/command/console.rb:48:in start' from /opt/metasploit-framework/embedded/framework/lib/metasploit/framework/command/base.rb:82:in start'
from /opt/metasploit-framework/bin/../embedded/framework/msfconsole:48:in `

'

@vicky121998
Copy link

how can i fix

@pbarry-r7
Copy link
Contributor

Please don't comment on closed tickets. If you read the first response above, I believe that will help find an answer for the ENOMEM your installation hit, @vicky121998.

@Neoax
Copy link

Neoax commented Sep 14, 2019

aynı hata bende de oldu yardım edebilecek var mı?

@nizar0x1f
Copy link

nizar0x1f commented Apr 24, 2020

Probleme: not enough swap space
Solution Create SWAP

free ## to check your swap space
cd /var/
ls
touch swap.img
chmod 600 s
chmod 600 swap.img
dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
mkswap /var/swap.img
swapon /var/swap.img

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants