Kali-Linux
每次執行命令時,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
但是我如何進一步分解它以確切地了解使用所有這些記憶體的確切內容?我目前只有四個終端視窗和一個打開的瀏覽器,在瀏覽器視窗中關閉選項卡似乎沒有任何改善。
Ran:
ps aux --sort -rss
這向我展示了導致問題的原因。儘管 VM 被列為單個程序很煩人,因為它佔 CPU 使用率的 90% 以上。