通过darkoperator/MSF-Installer安装Metasploit后尝试启动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 `<main>'
使用:
Linux ubuntu 3.13.0-32-generic
有人有想法吗?
答案 0 :(得分:16)
对我而言,它有助于追随:
sudo chmod o+r /var/lib/gems/1.9.1/gems/robots-0.10.1/lib/robots.rb
之后用户可以运行metasploit。
答案 1 :(得分:3)
作为user4170357但由于以下原因略有不同:Mac OS X 10.9.5
修复,运行:
sudo chmod o+r /Library/Ruby/Gems/2.0.0/gems/robots-0.10.1/lib/robots.rb
(路径与原始答案略有不同)
答案 2 :(得分:2)
这是内核中的文件系统变为只读或随机无法访问的错误。阅读更多here。
修复刚刚重新启动,它将被修复。
答案 3 :(得分:0)
来自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' 来自/ 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无法加载此类文件 - 机器人。
也许这可以帮助你开始
答案 4 :(得分:-1)
这可能是因为您以root身份捆绑或安装了metasploit,您可能需要获得root访问才能运行metasploit