来自http://techlogbook.wordpress.com/2014/08/19/installing-metasploit-on-xubuntu-14-04/
$ msfconsole /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- /usr/local/bin/config/boot (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require' from /usr/local/bin/msfconsole:23:in `'
我所做的是编辑 /usr/local/bin/msfconsole 第 23 行,并将该行替换为:
require File.expand_path('/usr/local/share/metasploit-framework/config/boot.rb', __FILE__)
确保 config/boot.rb 的路径对于您的系统是正确的。
现在,当我再次运行 msfconsole 时,它给了我一些关于缺少写入某些日志文件的权限的警告。
Rails Error: Unable to access log file. Please ensure that /usr/local/share/metasploit-framework/log/production.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
所以我需要创建目录并确保它是可访问的。
$ cd /usr/local/share/metasploit-framework/
$ mkdir log
$ chmod 777 log
现在,我可以运行 msfconsole。但是,在到达提示之前,我收到了以下警告:
[-] 警告!无法加载以下模块!
[-] /usr/local/share/metasploit-framework/modules/auxiliary/scanner/smb/smb_login.rb: LoadError 无法加载此类文件 -- robots`
也许这可以帮助您入门