一、环境
物理机:Windows10
虚拟机软件:VirtualBox
Metasploitable3:Ubuntu1404
安装环境:Vagrant + Virtualbox
二、依赖文件
- 安装VirtualBox,官网下载地址:https://www.virtualbox.org/
- 安装Vagrant,官网下载地址:https://www.vagrantup.com/downloads
三、安装过程
3. 下载Metasploitable3,官网下载地址:https://app.vagrantup.com/rapid7/boxes/metasploitable3-ub1404
4. 下载vagrant-vbguest
vagrant plugin install vagrant-vbguest
- 将下载好的文件重命名为metasploitable3-ub1404(下载后是一大堆乱码一样的文件名)
- 管理员模式启动PowerShell
- 进入下载的metasploitable3时文件所在的目录
- 运行如下命令
vagrant init metasploitable3-ub1404
- 上述命令会在该目录下生成一个名为 Vagrantfile 的文件,使用文本文档打开,在配置文件最后的end之前写入如下配置:
config.ssh.username = "vagrant"
config.ssh.password = "vagrant"
- 运行如下命令:
vagrant up
vagrant vbguest
vagrant reload
vagrant provision
- 使用VirtualBox登录该虚拟机,默认的账号密码相同,均为:Vagrant
- 关机时无法通过VirtualBox右上角的x按钮关闭,可以使用命令
sudo init 0
或者vagrant halt
安装完毕!!!