BT5下metasploit升级报错解决方法

简介:

  我在虚拟机中运行的BT5升级报错,无法正常升级。原因是MSF并没有用BT5内置的RUBY,而是利用自带的RUBY,其自带的版本为1.9.1,已经很古老了……所以升级系统的Ruby版本也会无济于事,但是按照下面的步骤更新,即可将MSF更新到最新。


   1、修改文件下列文件

1
gedit /opt/metasploit/ruby/lib/ruby/1.9.1/i686-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) "

    2、然后升级

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
root@bt:/opt/metasploit/ruby/lib/ruby/1.9.1# msfupdate
[*]
[*] Attempting to update the Metasploit Framework...
[*]
HEAD is now at 94f8b1d Land #2073, psexec_psh
Already on 'master'
Your branch is ahead of 'origin/master' by 96 commits.
remote: Counting objects: 38, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 28 (delta 24), reused 6 (delta 2)
Unpacking objects: 100% (28/28), done.
From git://github.com/rapid7/metasploit-framework
94f8b1d..fdd5775  master     -> upstream/master
0acdc32..fdd5775  release    -> upstream/release
Updating 94f8b1d..fdd5775
Fast-forward
lib/msf/ui/console/command_dispatcher/core.rb |   40 +++++++++++++------------
1 files changed, 21 insertions(+), 19 deletions(-)
[*] Updating gems...
Fetching gem metadata from http://rubygems.org/.........
Fetching gem metadata from http://rubygems.org/..
Using rake (10.0.4)
Using i18n (0.6.1)
Using multi_json (1.0.4)
Using activesupport (3.2.13)
Using builder (3.0.4)
Using activemodel (3.2.13)
Using arel (3.0.2)
Using tzinfo (0.3.37)
Using activerecord (3.2.13)
Using metaclass (0.0.1)
Using mocha (0.13.3)
Using bourne (1.4.0)
Using database_cleaner (0.9.1)
Using diff-lcs (1.2.2)
Using factory_girl (4.2.0)
Using json (1.7.7)
Installing pg (0.15.1) with native extensions
Installing metasploit_data_models (0.16.1)
Installing msgpack (0.5.4) with native extensions
Installing network_interface (0.0.1) with native extensions
Installing nokogiri (1.5.9) with native extensions
Installing packetfu (1.1.8)
Installing pcaprub (0.11.3) with native extensions
Installing redcarpet (2.2.2) with native extensions
Installing robots (0.10.1)
Installing rspec-core (2.13.1)
Installing rspec-expectations (2.13.0)
Installing rspec-mocks (2.13.0)
Installing rspec (2.13.0)
Installing shoulda-matchers (1.5.2)
Installing simplecov-html (0.5.3)
Installing simplecov (0.5.4)
Installing timecop (0.6.1)
Installing yard (0.8.5.2)
Using bundler (1.1.2)

 本文转自文东会博客51CTO博客,原文链接http://blog.51cto.com/hackerwang/1250795如需转载请自行联系原作者


谢文东666

相关文章
|
6月前
|
Web App开发 存储 Linux
Linux(33)Rockchip RK3568 Ubuntu22.04上通过SSH运行Qt程序和关闭Chrome的密钥提示
Linux(33)Rockchip RK3568 Ubuntu22.04上通过SSH运行Qt程序和关闭Chrome的密钥提示
432 0
|
6月前
Metasploit -- 更新后报错处理
Metasploit -- 更新后报错处理
48 0
|
4月前
|
存储 安全 Linux
|
6月前
|
并行计算 Ubuntu
Ubuntu16.04升级到18.04--检查更新时出现问题--解决方法
Ubuntu16.04升级到18.04--检查更新时出现问题--解决方法
90 0
|
Ubuntu Linux 网络安全
使用VS Code 配置Ubuntu远程C++开发环境
1.在Ubuntu 中配置ssh远程登录 Ubuntu 配置远程登录 2.VsCode 安装 Remote-ssh 插件
378 0
|
PHP Windows
Windows下laravel/lumen中执行phpunit报phpunit: command not found解决办法
Windows下laravel/lumen中执行phpunit报phpunit: command not found解决办法
167 0
Windows下laravel/lumen中执行phpunit报phpunit: command not found解决办法
|
Ubuntu Shell Linux
OpenWRT中运行脚本报错
OpenWRT中运行脚本报错
870 0
|
缓存 NoSQL Linux
CentOS/Deepin遇到Qt系列问题的解决方案(例如error: cannot find -lGL和搜狗输入法无效等)
CentOS/Deepin遇到Qt系列问题的解决方案(例如error: cannot find -lGL和搜狗输入法无效等)
511 0
|
Windows
【Ansible】Ansible控制windows插件安装及运行error与解决方法
一、 问:因pip版本问题无法安装kerberos 答:安装提示需要先安装pip升级包 下载pip9.0.1升级包: https://pypi.python.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.
7544 0
下一篇
无影云桌面