靶机Metasploitable2 vmware的搭建

0.前提:

安装好vmware

 

1.下载镜像文件:

链接:

https://sourceforge.net/projects/metasploitable/files/Metasploitable2/

靶机Metasploitable2 vmware的搭建

 

将zip文件下载下来之后,只需要打开 Metasploitable.vmx 即可。

 

2.查看下虚拟机的ip

打开 Metasploitable.vmx

执行:

ifconfig

靶机Metasploitable2 vmware的搭建

 

2.1 查看虚拟机是否能连到外网

执行:

ping www.baidu.com

靶机Metasploitable2 vmware的搭建

虚拟机成功连接到外网

 

3.查看主机ip

执行:

ifconfig

靶机Metasploitable2 vmware的搭建

靶机Metasploitable2 vmware的搭建

还看到主机上有块虚拟网卡 vmnet8 和虚拟机是在同一个网段的,说明这台虚拟机与主机的网络连接方式是 NAT

 

4.由上得出:

在主机上直接访问虚拟机的ip地址即可成功连到靶机的网页

靶机Metasploitable2 vmware的搭建

成功!