metasploit更新后msfconsole报错的解决方法

 时间:2024-10-12 21:13:09

1、首先更新apt程序库apt update

metasploit更新后msfconsole报错的解决方法

2、更新metasploit 框架apt install metasploit-framework

metasploit更新后msfconsole报错的解决方法

3、运行msfconsole发现报错了,报错信息为/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecatedCould not find io-console-0.5.6 in any of the sourcesRun `bundle install` to install missing gems提示需要执行bundle install

metasploit更新后msfconsole报错的解决方法

4、安装的bundler版本需要大于等于Gemfile.lock中要求的版本cd /usr/share/metasploit-framework/cat Gemfile.lock | grep -A 1 "BUNDLED"

5、进行gem更新gem update --system

metasploit更新后msfconsole报错的解决方法

6、安装对应版本的bundlergem install bundler -v 2.1.4

metasploit更新后msfconsole报错的解决方法

7、经过测试需要安装这些依赖apt-get install ruby-devapt-get installpostgresqlapt-get installlibpcap-devapt-get install oracle*apt-get install libsqlite3-dev

metasploit更新后msfconsole报错的解决方法

8、进入metasploit目录,执行bundle install 安装cd /usr/share/metasploit-framework/bundle install

metasploit更新后msfconsole报错的解决方法
metasploit更新后msfconsole报错的解决方法

9、执行msfconsole成功启动,但会出现下面警告提示。/usr/lib/rub鲻戟缒男y/vendor_ruby/rubygems/defaults/op髫潋啜缅erating_system.rb:10: warning: constant Gem::ConfigMap is deprecated

metasploit更新后msfconsole报错的解决方法

10、通过下面方式可以解决警告提示的问题。sed -i "s#Gem::ConfigMap\[:arch\]#RbConfig::CON僻棍募暖FIG\['arch'\]#g;s#Gem::ConfigMap\[:ruby_version\]#RbConfig::CONFIG\['ruby_version'\]#g" /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb

metasploit更新后msfconsole报错的解决方法
  • 如果 和 如果真
  • gal图书馆怎么用
  • 云帮手面板安装和使用图文教程
  • iPhone关闭允许“阿里云盘”访问使用本地网络
  • 热门搜索
    传统文化手抄报内容 劳动节手抄报的文字 溺水手抄报简单又漂亮 祖国在我心中手抄报内容 小学生手抄报内容 宪法手抄报内容 中秋节手抄报图片大全 春节英语手抄报内容 关于花的手抄报 庆祝六一手抄报