Kali linux + Metasploitable 2 + virtual win7下载安装联网

不知为什么用vmware免费版连不了网,所以改用了virtualBox

•下载Kali linux(32 bit):https://www.kali.org/downloads/
•新建虚拟机,储存->添加光盘,选择文件
•网络->设置为桥接
•登录账户:root 密码:toor
•联网:打开Terminal ,输入nano /etc/network/interfaces,修改为
auto eth0
iface eth0 inet static
address 192.168.1.39
netmask 255.255.255.0
gateway 192.168.1.1
(address和gateway是根据自己主机的网段设置的。查看网段方法:控制面板->网络和Internet->网络连接->WLAN右键->状态->详细信息->IPv4地址和IPv4地址默认网关,网关要和主机一样,address前三个数字要和主机一样,最后一个要改成别的数字)
输入命令/etc/init.d/networking restart ,然后用ifconfig查看网络连接信息
ping www.baidu.com测试能否正常联网

•下载Metasploitable 2:http://sourceforge.net/projects/metasploitable/files/Metasploitable2/
•新建虚拟机,储存->添加光盘,选择文件
•网络->设置为桥接
•登录账户:msfadmin密码:msfadmin
•联网:
修改/etc/network/interfaces权限:sudo chmod 777 /etc/network/interfaces
输入nano /etc/network/interfaces,修改为
auto eth0
iface eth0 inet static
address 192.168.1.68(最后一个数字和之前linux和自己主机的要不同)
netmask 255.255.255.0
gateway 192.168.1.1
设置DNS,修改/etc/resolv.conf权限:sudo chmod 777 /etc/resolv.conf
nano /etc/resolv.conf,修改为:
nameserver 192.168.1.1
输入命令/etc/init.d/networking restart ,然后用ifconfig查看网络连接信息

•下载virtual win7:https://dev.windows.com/en-us/microsoft-edge/tools/vms/windows/
•新建虚拟机,储存->添加光盘,选择文件
•网络->设置为桥接
•联网:Control Panel->network and internet->network and sharing center-> Local Area Connection2->Properties->internet protocol version 4->Properties->Use the following IP address->设置ip、mask、gateway、DNS

你可能感兴趣的:(ways)