An error is reported when I run the BT5 upgrade in the virtual machine. The reason is that MSF does not use the built-in RUBY of BT5, but uses the built-in RUBY. Its built-in version is 1.9.1, which is already very old ...... Therefore, upgrading the Ruby version of the system will not help, But update MSF to the latest by following the steps below.
1. Modify the following files
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 )"
650) this. width = 650; "title =" QQ20130716174856.jpg "src =" http://www.bkjia.com/uploads/allimg/131227/0646435A6-0.jpg "/>
2. Upgrade
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_pshAlready 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-framework94f8b1d..fdd5775 master -> upstream/master0acdc32..fdd5775 release -> upstream/releaseUpdating 94f8b1d..fdd5775Fast-forwardlib/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 extensionsInstalling metasploit_data_models (0.16.1)Installing msgpack (0.5.4) with native extensionsInstalling network_interface (0.0.1) with native extensionsInstalling nokogiri (1.5.9) with native extensionsInstalling packetfu (1.1.8)Installing pcaprub (0.11.3) with native extensionsInstalling redcarpet (2.2.2) with native extensionsInstalling 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)
This article is from the "Wendong Club" blog. For more information, contact the author!