November 2018

  • Fresh install of Windows 10
  • Set up Hyper-V through elevated PowerShell:
    • Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All
  • Set up Ubuntu VM, Kali 2018.4 VM, and Metasploitable 2 VM
    • Set up an Internal virtual switch through PowerShell in order to connect Kali & Metasploitable virtual machines. This switch is not connected to a physical NIC of the host. Instead, the host OS will have a virtual NIC that is connected to the virtual switch. The virtual machines that are connected to the internal virtual switch will be able to talk to the host OS, but cannot talk to the external network the host OS is connected to:
      • New-VMSwitch -SwitchName “NATSwitch” -SwitchType Internal
      • New-NetIPAddress -IPAddress 192.168.10.1 -PrefixLength 24 -InterfaceAlias “vEthernet (NATSwitch)”
        • This updates the virtual NIC that connects the host OS to the internal virtual switch. This command assigns an IP address to this virtual NIC, and this IPv4 address acts as a default gateway for the NAT network being created.
      • New-NetNat -Name “NATNetwork” -InternalIPInterfaceAddressPrefix 192.168.10.0/24
        • This configures the network address of the NAT network that will run on the virtual switch. This is the private address range used by the virtual machines connected to the virtual switch.