Metasploitでコマンドを実行するたびにメモリ不足エラーが発生します。

Metasploitでコマンドを実行するたびにメモリ不足エラーが発生します。

Metasploitコンソールで実行すると、search name:SSHコンソールは自動的に閉じます。 Metasploitで最も基本的なコマンドを実行しようとするたびに、次のメモリ不足エラーが発生します。

RHOST 95.138.166.176
/usr/share/metasploit-framework/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.13/lib/active_support/core_ext/kernel/agnostics.rb:7:in ``': Cannot allocate memory - stty 4500:5:bf:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 (Errno::ENOMEM)
    from /usr/share/metasploit-framework/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.13/lib/active_support/core_ext/kernel/agnostics.rb:7:in ``'
    from /usr/share/metasploit-framework/vendor/bundle/ruby/2.2.0/gems/rb-readline-r7-0.5.2.0/lib/rbreadline.rb:7069:in `block in rl_deprep_terminal'
    from /usr/share/metasploit-framework/vendor/bundle/ruby/2.2.0/gems/rb-readline-r7-0.5.2.0/lib/rbreadline.rb:6912:in `retry_if_interrupted'
    from /usr/share/metasploit-framework/vendor/bundle/ruby/2.2.0/gems/rb-readline-r7-0.5.2.0/lib/rbreadline.rb:7068:in `rl_deprep_terminal'
    from /usr/share/metasploit-framework/vendor/bundle/ruby/2.2.0/gems/rb-readline-r7-0.5.2.0/lib/rbreadline.rb:1512:in `rl_cleanup_after_signal'
    from /usr/share/metasploit-framework/lib/rex/ui/text/input/readline.rb:134:in `rescue in readline_with_output'
    from /usr/share/metasploit-framework/lib/rex/ui/text/input/readline.rb:131:in `readline_with_output'
    from /usr/share/metasploit-framework/lib/rex/ui/text/input/readline.rb:86:in `pgets'
    from /usr/share/metasploit-framework/lib/rex/ui/text/shell.rb:187:in `run'
    from /usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:48:in `start'
    from /usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:82:in `start'
    from /usr/bin/msfconsole:48:in `<main>'

free -h以下を出力します。

          total        used        free      shared  buff/cache   available
Mem:           2.0G        1.7G         42M         15M        222M        228M
Swap:          1.3G        1.3G        164K

しかし、どのように詳細を分析し、このメモリをすべて正確に使用しているかを確認するにはどうすればよいですか?現在は4つのターミナルウィンドウと1つのブラウザだけが開いており、ブラウザウィンドウでタブを閉じても何の改善もないようです。

ベストアンサー1

Ran:ps aux --sort -rssこれは問題の原因が何であるかを示しています。仮想マシンは単一のプロセスとしてリストされていますが、CPU使用率の90%以上を占めるので、面倒です。

おすすめ記事