Due to the unflattering operation efficiency of Kali in virtual machines, it is determined to upgrade MSF in BT5. The main purpose of the upgrade is that the built-in MSF of bt5r3 is updated using SVN, however, the new version of MSF has stopped updating through SVN. Instead, you must reinstall it. I found a lot of ways on the Internet. I saw that the upgrade was successful in my post, but I was always unable to install it successfully because it was stuck in PG (0.15.0, I personally think 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 very old ...... Therefore, upgrading the ruby version of the system will not help, but follow the steps below to update MSF to the latest version. When running msfupdate, you can use git to update the system.
1. APT-Get update
2. APT-Get install metasploit
3. Modify the file:/opt/metasploit/Ruby/lib/Ruby/1.9.1/i686-linux/rbconfig. Rb
Changed the line => config ["librubyarg_static"] = "-wl,-r-wl, $ (libdir)-L $ (ruby_so_name) -Static "by => config [" librubyarg_static "] ="-wl,-r-wl, $ (libdir)-L $ (libdir) "(actually remove-L $ (ruby_so_name)-static)
4. Switch to/opt/metasploit/msf3 and run/opt/metasploit/Ruby/bin/bundle install
5. msfupdate
The test is successful. It will no longer be stuck in PG (0.15.0) and cannot be installed successfully.