diff --git a/Vagrantfile b/Vagrantfile index 45e4907..a7ad814 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -126,6 +126,10 @@ Vagrant.configure("2") do |config| win2k8.vm.provision :shell, path: "scripts/installs/install_elasticsearch.bat" win2k8.vm.provision :shell, inline: "rm C:\\tmp\\vagrant-shell.bat" # Hack for this bug: https://github.com/mitchellh/vagrant/issues/7614 + # Insecure share from the Linux machine + win2k8.vm.provision :shell, path: "scripts/installs/setup_linux_share.bat" + win2k8.vm.provision :shell, inline: "rm C:\\tmp\\vagrant-shell.bat" # Hack for this bug: https://github.com/mitchellh/vagrant/issues/7614 + # Configure flags win2k8.vm.provision :shell, path: "scripts/installs/install_flags.bat" win2k8.vm.provision :shell, inline: "rm C:\\tmp\\vagrant-shell.bat" # Hack for this bug: https://github.com/mitchellh/vagrant/issues/7614a @@ -135,7 +139,7 @@ Vagrant.configure("2") do |config| trusty.vm.box = "rsginc/ubuntu64-14-04-1" trusty.vm.hostname = "metasploitableUB" - trusty.vm.network "private_network", type: "dhcp" + trusty.vm.network "private_network", ip: '172.28.128.3' trusty.vm.provider "virtualbox" do |v| v.name = "MetasploitableUB" diff --git a/scripts/installs/setup_linux_share.bat b/scripts/installs/setup_linux_share.bat new file mode 100644 index 0000000..16ea77b --- /dev/null +++ b/scripts/installs/setup_linux_share.bat @@ -0,0 +1,6 @@ +@echo off +ping -n 1 -4 172.28.128.3 | find /i "TTL=" > nul +IF ERRORLEVEL 1 (echo "Linux host not available.") ELSE ( + cmdkey /add:172.28.128.3 /user:chewbacca /pass:rwaaaaawr5 + net use W: \\172.28.128.3\public /savecred /p:yes +)