Ubuntu 18.04安装Metasploit Framework指南

使用安装脚本安装

从GitHub下载脚本并使其可执行。 使用-h选项进行测试以确保其正常工作

Ubuntu 18.04安装Metasploit,就是在github上clone下来安装,但是那种方式安装的话会碰到很多依赖的问题,不方便安装,下面我推荐官方的,使用安装脚本安装。

安装

首先打开终端输入
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstall

Ubuntu 18.04安装Metasploit Framework指南

之后如果你不是root用户登录的话你要输入root密码,接着你要做的是就是等待安装完成。

安装完成

接着输入msfconsole

Ubuntu 18.04安装Metasploit Framework指南

会提示你是否建立一个database,你输入yes就好

Ubuntu 18.04安装Metasploit Framework指南

接着我们建立Module database,如果不建立那么你在search一些模块的时候会提示
[!] Module database cache not built yet, using slow search

在此之前我们首先要安装postgresql
sudo apt install postgresql
安装完成之后确认下服务是否开启,如果没有开启它

Ubuntu 18.04安装Metasploit Framework指南

接着进入metasploit中,输入

msf5 > msfdb init
[*] exec: msfdb init

Ubuntu 18.04安装Metasploit Framework指南

之后输入

msf5 > db_rebuild_cache
[*] Purging and rebuilding the module cache in the background...

Ubuntu 18.04安装Metasploit Framework指南

等几分钟之后执行

search ms10

看看是不是还有

[!] Module database cache not built yet, using slow search

这个警告

如果还有那么再等一段时间再次执行,如果十分钟以后还是出现这个警告,那么可能你的步骤错了

版本查看:

Ubuntu 18.04安装Metasploit Framework指南

猜你喜欢

转载自www.linuxidc.com/Linux/2019-01/156378.htm