# Network configuration file for VirtualBox # Each section contains the configuration for a single # virtual network interface # # The following values can be set for each interface: # # name - Name of the interface (e.g. "vboxnet0") # address - IP address of the interface (e.g. "192.168.56.1") # netmask - Netmask of the interface (e.g. "255.255.255.0") # dhcp - Enable or disable DHCP for the interface (e.g. "on" or "off") # # Example configuration: # # [vboxnet0] # name = vboxnet0 # address = 192.168.56.1 # netmask = 255.255.255.0 # dhcp = on
[vboxnet0] name = vboxnet0 address = 172.28.128.3 netmask = 255.255.255.255 dhcp = on
[vboxnet1] name = vboxnet1 address = 192.168.56.0 netmask = 255.255.248.0 dhcp = on
拉脚本运行
1 2 3
$ mkdir metasploitable3-workspace $ cd metasploitable3-workspace $ curl -O https://raw.githubusercontent.com/rapid7/metasploitable3/master/Vagrantfile && vagrant up