Fedora 19上的Metasploit msfconsole method_missing [英] Metasploit msfconsole method_missing on Fedora 19

查看:115
本文介绍了Fedora 19上的Metasploit msfconsole method_missing的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用来自fedora的指南在我的Fedora 19上安装了metasploit.完成所有步骤后,我运行 msfconsole 并得到以下错误:

I installed metasploit on my Fedora 19 using this guide from fedora. After finishing all the steps I run msfconsole and get the following error:

/usr/local/share/ruby/site_ruby/rubygems/specification.rb:1888:in 'method_missing': undefined local variable or method 'ext_dir' for #<Gem::Specification:0xecbd78 json-1.8.0> (NameError) from /usr/share/gems/gems/bundler-1.3.1/lib/bundler/rubygems_ext.rb:42:in 'load_paths' from /usr/share/gems/gems/bundler-1.3.1/lib/bundler/runtime.rb:37:in 'block in setup' from /usr/share/gems/gems/bundler-1.3.1/lib/bundler/runtime.rb:19:in .setup' from /usr/share/gems/gems/bundler-1.3.1/lib/bundler.rb:120:in 'setup' from /usr/share/gems/gems/bundler-1.3.1/lib/bundler/setup.rb:7:in ''top (required)>' from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:135:in 'require' from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:135:in 'rescue in require' from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:144:in 'require' from /opt/metasploit/msf/lib/fastlib.rb:374:in 'require' from /opt/metasploit/msf/lib/msfenv.rb:7:in '<top (required)>' from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in 'require' from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in 'require' from /opt/metasploit/msf/lib/fastlib.rb:374:in 'require' from /usr/local/bin/msfconsole:21:in '<main>'

/usr/local/share/ruby/site_ruby/rubygems/specification.rb:1888:in 'method_missing': undefined local variable or method 'ext_dir' for #<Gem::Specification:0xecbd78 json-1.8.0> (NameError) from /usr/share/gems/gems/bundler-1.3.1/lib/bundler/rubygems_ext.rb:42:in 'load_paths' from /usr/share/gems/gems/bundler-1.3.1/lib/bundler/runtime.rb:37:in 'block in setup' from /usr/share/gems/gems/bundler-1.3.1/lib/bundler/runtime.rb:19:in .setup' from /usr/share/gems/gems/bundler-1.3.1/lib/bundler.rb:120:in 'setup' from /usr/share/gems/gems/bundler-1.3.1/lib/bundler/setup.rb:7:in ''top (required)>' from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:135:in 'require' from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:135:in 'rescue in require' from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:144:in 'require' from /opt/metasploit/msf/lib/fastlib.rb:374:in 'require' from /opt/metasploit/msf/lib/msfenv.rb:7:in '<top (required)>' from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in 'require' from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in 'require' from /opt/metasploit/msf/lib/fastlib.rb:374:in 'require' from /usr/local/bin/msfconsole:21:in '<main>'

有什么办法解决此问题吗?它说method_missing:未定义的局部变量或方法"ext_dir",所以这看起来像某种Ruby依赖问题.

Any ideas how to fix this? It says method_missing: undefined local variable or method "ext_dir" so this looks like some kind of Ruby dependency issue.

更新: msfupdate 成功运行.

推荐答案

您是否正在运行64位版本的fedora?如果是这样,我建议您从Rapid7网站下载软件包.它的可靠性更高,并且在安装时任何依赖关系的问题都将得到解决.使用64bt linux,您还可以将metasploit与Nexpose的免费扫描仪结合使用.这两个工具是并行的.您看到的问题看起来像是版本问题.如果您不介意运行VM,建议您下载Kali linux以满足您的安全测试需求,这将立即可用+为您提供更多工具.

Are you running a 64bit version of fedora? If so I would suggest you download the packages from rapid7 website. Its more dependable, and when installed any dependency issues will be resolved. With 64bt linux you can also couple metasploit with Nexpose their free scanner. These two tools work hand in hand. The issue you are seeing looks like a version problem. If you don't mind running a VM I would suggest you download Kali linux for your security testing needs which will work out of the box + give you a ton more tools.

这篇关于Fedora 19上的Metasploit msfconsole method_missing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆