mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-06-30 08:45:50 +02:00
up to date linux/sql_injection
This commit is contained in:
commit
8e2d05d2c8
6
Vagrantfile
vendored
6
Vagrantfile
vendored
|
@ -126,6 +126,10 @@ Vagrant.configure("2") do |config|
|
||||||
win2k8.vm.provision :shell, path: "scripts/installs/install_elasticsearch.bat"
|
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
|
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
|
# Configure flags
|
||||||
win2k8.vm.provision :shell, path: "scripts/installs/install_flags.bat"
|
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
|
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.box = "rsginc/ubuntu64-14-04-1"
|
||||||
trusty.vm.hostname = "metasploitableUB"
|
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|
|
trusty.vm.provider "virtualbox" do |v|
|
||||||
v.name = "MetasploitableUB"
|
v.name = "MetasploitableUB"
|
||||||
|
|
6
scripts/installs/setup_linux_share.bat
Normal file
6
scripts/installs/setup_linux_share.bat
Normal file
|
@ -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
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user