【问题标题】:gem install metasploit-framework-db -v '4.11.0.pre.devgem install metasploit-framework-db -v '4.11.0.pre.dev
【发布时间】:2015-02-24 18:19:36
【问题描述】:

尝试在this guide 之后在 OS X Maverick 上安装 Metasploit Framework。我到了第 15 步,但是在运行 bundle install 时,安装程​​序在尝试安装 metasploit-framework -v '4.10.1.pre.dev' 时遇到以下错误:

Errno::EACCES: Permission denied - metasploit-framework-db-4.11.0.pre.dev.gem An error occurred while installing metasploit-framework-db (4.11.0.pre.dev), and Bundler cannot continue. Make sure that gem install metasploit-framework-db -v '4.11.0.pre.dev' succeeds before bundling.

我知道this 存在,但克隆对我不起作用。运行 mfsupdate 读取:

Using metasploit-framework-db 4.11.0.pre.dev from source at .

尝试运行 rvssudo bundle install --> ./msfconsole --> Rails Error: Unable to access log file. Please ensure that /opt/msf/log/production.log exists and is chmod 0666.[*] Starting the Metasploit Framework console...[*] The initial module cache will be built in the background, this can take 2-5 minutes... /opt/msf/modules/payloads/singles/java/shell_reverse_tcp.rb:54:in initialize': No such file or directory - /opt/msf/data/java/metasploit/Payload.class (Errno::ENOENT)

担心我的 AV 软件可能会导致一些问题。在 OS X 或 Maverick 上成功安装 Metasploit 框架的人有什么想法吗?

rvmsudo 在 mfsconsole 上工作,但这次错误显示为:/opt/msf/modules/payloads/singles/java/shell_reverse_tcp.rb:54:in initialize: No such file or directory - /opt/msf/data/java/metasploit/Payload.class – aietsg Dec 31 '14 at 10:34 请参阅下文了解更多信息

【问题讨论】:

    标签: ruby macos osx-mavericks metasploit


    【解决方案1】:

    看起来 Gem 需要比您尝试安装包的任何上下文更多的访问权限。如果您像博客文章所示那样使用 RVM,那么您应该尝试使用“rvmsudo bundle install”

    【讨论】:

    • 感谢您的回复。运行 rvssudo bundle install --> ./msfconsole Rails Error: Unable to access log file. Please ensure that /opt/msf/log/production.log exists and is chmod 0666.[*] Starting the Metasploit Framework console...[*] The initial module cache will be built in the background, this can take 2-5 minutes... /opt/msf/modules/payloads/singles/java/shell_reverse_tcp.rb:54:in initialize': No such file or directory - /opt/msf/data/java/metasploit/Payload.class (Errno::ENOENT)
    • 好的,至少我们已经完成了捆绑安装。也可以在 msfconsole 上尝试 rvmsudo。我不知道为什么该指南将所有内容都放在 opt 并将其安装为 root 但无论如何。 rvmsudo 应该适用于 msfconsole 以及所有其他 msf 工具
    • rvmsudo 在 mfsconsole 上工作,但这次错误显示为:/opt/msf/modules/payloads/singles/java/shell_reverse_tcp.rb:54:in initialize: No such file or directory - /opt/msf/data/java/metasploit/Payload.class
    • 完全错误:Rails Error: Unable to access log file. Please ensure that /opt/msf/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. [*] Starting the Metasploit Framework console...|[*] The initial module cache will be built in the background, this can take 2-5 minutes... /opt/msf/modules/payloads/singles/java/shell_reverse_tcp.rb:54:in initialize: No such file or directory - /opt/msf/data/java/metasploit/Payload.class (Errno::ENOENT)
    猜你喜欢
    • 2014-12-17
    • 2014-12-11
    • 2016-04-11
    • 2013-11-08
    • 2017-02-17
    • 2015-06-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多