After istallation of Metaploit via darkoperator/MSF-Installer try to start the msfconsole and it return:
通过darkoperator / MSF-Installer对Metaploit进行istallation尝试启动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>'
using:
Linux ubuntu 3.13.0-32-generic
Have someone an idea?
有人有个主意吗?
5 个解决方案
#1
16
For me it helped following:
对我来说它有助于以下方面
sudo chmod o+r /var/lib/gems/1.9.1/gems/robots-0.10.1/lib/robots.rb
sudo chmod o + r /var/lib/gems/1.9.1/gems/robots-0.10.1/lib/robots.rb
after that user is able to run metasploit.
之后该用户可以运行metasploit。
#2
3
As user4170357 but with a slight difference due to: Mac OS X 10.9.5
作为user4170357但由于:Mac OS X 10.9.5略有不同
to fix, run:
修复,运行:
sudo chmod o+r /Library/Ruby/Gems/2.0.0/gems/robots-0.10.1/lib/robots.rb
(path is a little bit different than original answer)
(路径与原始答案略有不同)
#3
2
This is a bug in the kernel where file-system becomes read-only or inaccessible randomly. Read more here.
这是内核中的文件系统变为只读或随机无法访问的错误。在这里阅读更多。
To fix Just reboot and it will be fixed.
要修复刚重启,它将被修复。
#4
0
From 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 `'$ msfconsole /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require':无法从/ usr / lib /加载此类文件 - / usr / local / bin / config / boot(LoadError) ruby / 1.9.1 / rubygems / custom_require.rb:36:inrequire'来自/ usr / local / bin / msfconsole:23:in''
What I did was to edit /usr/local/bin/msfconsole line 23, and replace that line with:
require File.expand_path('/usr/local/share/metasploit-framework/config/boot.rb', __FILE__)
我做的是编辑/ usr / local / bin / msfconsole第23行,并将该行替换为:require File.expand_path('/ usr / local / share / metasploit-framework / config / boot.rb',__ FILE__)
Make sure that the path for config/boot.rb is correct for your system.
确保config / boot.rb的路径对于您的系统是正确的。
Now, when I run msfconsole again, it gives me some warning of missing permission to write some log file.
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.
现在,当我再次运行msfconsole时,它会给我一些警告,即缺少写入某些日志文件的权限。 Rails错误:无法访问日志文件。请确保/usr/local/share/metasploit-framework/log/production.log存在并且是chmod 0666.日志级别已提升为WARN,输出将定向到STDERR,直到问题得到解决。
So I need to create the directory and make sure it is accessible.
所以我需要创建目录并确保它是可访问的。
$ cd /usr/local/share/metasploit-framework/
$ cd / usr / local / share / metasploit-framework /
$ mkdir log
$ mkdir日志
$ chmod 777 log
$ chmod 777日志
Now, I can run msfconsole. Before reaching the prompt, however, I got the following warning:
现在,我可以运行msfconsole。然而,在到达提示之前,我收到以下警告:
[-] WARNING! The following modules could not be loaded!
[-] 警告!无法加载以下模块!
[-] /usr/local/share/metasploit-framework/modules/auxiliary/scanner/smb/smb_login.rb: LoadError cannot load such file -- robots`
[ - ] /usr/local/share/metasploit-framework/modules/auxiliary/scanner/smb/smb_login.rb:LoadError无法加载此类文件 - 机器人
Maybe that can help you get started
也许这可以帮助你开始
#5
-1
this might be becuase you bundled or installed metasploit as root you might need to get root access to run metasploit
这可能是因为你以root身份捆绑或安装了metasploit,你可能需要获得root访问才能运行metasploit
#1
16
For me it helped following:
对我来说它有助于以下方面
sudo chmod o+r /var/lib/gems/1.9.1/gems/robots-0.10.1/lib/robots.rb
sudo chmod o + r /var/lib/gems/1.9.1/gems/robots-0.10.1/lib/robots.rb
after that user is able to run metasploit.
之后该用户可以运行metasploit。
#2
3
As user4170357 but with a slight difference due to: Mac OS X 10.9.5
作为user4170357但由于:Mac OS X 10.9.5略有不同
to fix, run:
修复,运行:
sudo chmod o+r /Library/Ruby/Gems/2.0.0/gems/robots-0.10.1/lib/robots.rb
(path is a little bit different than original answer)
(路径与原始答案略有不同)
#3
2
This is a bug in the kernel where file-system becomes read-only or inaccessible randomly. Read more here.
这是内核中的文件系统变为只读或随机无法访问的错误。在这里阅读更多。
To fix Just reboot and it will be fixed.
要修复刚重启,它将被修复。
#4
0
From 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 `'$ msfconsole /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require':无法从/ usr / lib /加载此类文件 - / usr / local / bin / config / boot(LoadError) ruby / 1.9.1 / rubygems / custom_require.rb:36:inrequire'来自/ usr / local / bin / msfconsole:23:in''
What I did was to edit /usr/local/bin/msfconsole line 23, and replace that line with:
require File.expand_path('/usr/local/share/metasploit-framework/config/boot.rb', __FILE__)
我做的是编辑/ usr / local / bin / msfconsole第23行,并将该行替换为:require File.expand_path('/ usr / local / share / metasploit-framework / config / boot.rb',__ FILE__)
Make sure that the path for config/boot.rb is correct for your system.
确保config / boot.rb的路径对于您的系统是正确的。
Now, when I run msfconsole again, it gives me some warning of missing permission to write some log file.
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.
现在,当我再次运行msfconsole时,它会给我一些警告,即缺少写入某些日志文件的权限。 Rails错误:无法访问日志文件。请确保/usr/local/share/metasploit-framework/log/production.log存在并且是chmod 0666.日志级别已提升为WARN,输出将定向到STDERR,直到问题得到解决。
So I need to create the directory and make sure it is accessible.
所以我需要创建目录并确保它是可访问的。
$ cd /usr/local/share/metasploit-framework/
$ cd / usr / local / share / metasploit-framework /
$ mkdir log
$ mkdir日志
$ chmod 777 log
$ chmod 777日志
Now, I can run msfconsole. Before reaching the prompt, however, I got the following warning:
现在,我可以运行msfconsole。然而,在到达提示之前,我收到以下警告:
[-] WARNING! The following modules could not be loaded!
[-] 警告!无法加载以下模块!
[-] /usr/local/share/metasploit-framework/modules/auxiliary/scanner/smb/smb_login.rb: LoadError cannot load such file -- robots`
[ - ] /usr/local/share/metasploit-framework/modules/auxiliary/scanner/smb/smb_login.rb:LoadError无法加载此类文件 - 机器人
Maybe that can help you get started
也许这可以帮助你开始
#5
-1
this might be becuase you bundled or installed metasploit as root you might need to get root access to run metasploit
这可能是因为你以root身份捆绑或安装了metasploit,你可能需要获得root访问才能运行metasploit