BT5R3 更新Metasploit失败解决办法

独自等待 2017年5月10日19:54:44评论360 views字数 838阅读2分47秒阅读模式

最近测试一项目,需要用到BT5,由于重装过系统,所以虚拟机里面的东西也没有了,于是重新安装BT5,才解决完VPN的问题,现在又有metasploit升级的问题,还好找到了解决办法,分享之。

BT5 R3升级metasploit至最新版,会暴错,提示“Could not find pg-0.16.0 in any of the sources ”

解决办法如下:

1、apt-get update

2、apt-get install metasploit

3、修改文件:/opt/metasploit/ruby/lib/ruby/1.9.1/i686-linux/rbconfig.rb (32位)

64位的话修改文件是:/opt/metasploit/ruby/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb

changed the line => CONFIG["LIBRUBYARG_STATIC"] = "-Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static" by => CONFIG["LIBRUBYARG_STATIC"] = "-Wl,-R -Wl,$(libdir) -L$(libdir) "(其实就是去掉-l$(RUBY_SO_NAME)-static)

4、切换至/opt/metasploit/msf3然后运行/opt/metasploit/ruby/bin/bundle install(这一步我测试的时候好像没有成功,但是不影响。)

5、msfupdate

实测,完美通过,不会再卡在pg (0.16.0)无法成功安装那里。

metasploit

参考网站:

http://blog.163.com/hlz_2599/blog/static/14237847420135755335358/

http://blog.chinaunix.net/uid-13344516-id-3597709.html



from www.waitalone.cn.thanks for it.

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
独自等待
  • 本文由 发表于 2017年5月10日19:54:44
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   BT5R3 更新Metasploit失败解决办法http://cn-sec.com/archives/50098.html

发表评论

匿名网友 填写信息