亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

BT5下metasploit升級報錯解決方法

標簽:
Ruby


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

   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) "

QQ截图20130716174856.jpg

    2、然后升级

 

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博客作者谢文东666的原创作品,如需转载,请与作者联系,否则将追究法律责任

metasploitBT5问题集锦


點擊查看更多內容
TA 點贊

若覺得本文不錯,就分享一下吧!

評論

作者其他優質文章

正在加載中
  • 推薦
  • 評論
  • 收藏
  • 共同學習,寫下你的評論
感謝您的支持,我會繼續努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦
今天注冊有機會得

100積分直接送

付費專欄免費學

大額優惠券免費領

立即參與 放棄機會
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號

舉報

0/150
提交
取消