up to date linux/sql_injection

This commit is contained in:
wchen-r7 2017-04-18 15:02:01 -05:00
commit 8e2d05d2c8
2 changed files with 11 additions and 1 deletions

6
Vagrantfile vendored
View File

@ -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"

View 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
)