温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

BT5运行update、upgrade后不能运行msf的解决方法(msf升级至4.8)

发布时间:2020-07-24 11:22:51 来源:网络 阅读:1080 作者:Tar0 栏目:编程语言

一、更新

bt5_R3_64_GNOME安装在虚拟机(VM9.0.0)中的,未更新源,直接apt-getupdate和apt-getupgrade后,发现msf不能运行了。错误提示如下:

BT5运行update、upgrade后不能运行msf的解决方法(msf升级至4.8)

BT5运行update、upgrade后不能运行msf的解决方法(msf升级至4.8)

BT5运行update、upgrade后不能运行msf的解决方法(msf升级至4.8)

二、解决问题

(一)bundleinstall的提示

于是在/opt/metasploit/msf3目录下运行bundleinstall:

root@bt:/opt/metasploit/msf3#bundleinstall

又错误提示需要安装geminstallfactory_girl-v'4.2.0',运行此命令,结果又是错误提示:factory_girlrequiresRubyversion>=1.9.2.


BT5运行update、upgrade后不能运行msf的解决方法(msf升级至4.8)

需要安装版本等于高于1.9.2的ruby,那就安装ruby1.9.3吧。

(二)安装ruby1.9.3

1、curl安装检查

后面的安装要使用curl,先看是否安装了curl,检查命令:

dpkg–scurl


BT5运行update、upgrade后不能运行msf的解决方法(msf升级至4.8)

如上图,我的是安装了的,bt5_r3_32_gnome官方原版,经过update、upgrade的,是安装的。如果没有安装,就直接安装:apt-getinstallcurl。

2、安装rvm

curl-Lget.rvm.io|bash-sstable

安装完后,注意上面提示了rvm的安装路径以及使用提示,如下图:

BT5运行update、upgrade后不能运行msf的解决方法(msf升级至4.8)

路径:/usr/local/rvm/

使用提示:在使用RVM前,需运行source/etc/profile.d/rvm.sh

那就运行命令:#source/etc/profile.d/rvm.sh

3、安装ruby1.9.3

命令:

#rvminstall1.9.3


BT5运行update、upgrade后不能运行msf的解决方法(msf升级至4.8)

安装完毕后,查看一下ruby的版本:

BT5运行update、upgrade后不能运行msf的解决方法(msf升级至4.8)

(三)安装bundle

1、安装pg0.16版本(现在最新版本为0.16)

命令:root@bt:/opt/metasploit/msf3#geminstallpg-v'0.16.0'

2、安装libpq-dev

命令:#apt-getinstalllibpq-dev

3、安装bundle

命令:root@bt:/opt/metasploit/msf3#bundleinstall

注意路径是/opt/metasploit/msf3

三、运行msfconsole

现在运行msf,版本升级到4.8咯

=[metasploitv4.8.0-dev[core:4.8api:1.0]

+----=[1191exploits-650auxiliary-190post

+----=[316payloads-30encoders-8nops


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI