Skip to content

Instantly share code, notes, and snippets.

@Peleke
Created February 19, 2020 18:21
Show Gist options
  • Save Peleke/759f990ca4ab64414550b681a9f66f0e to your computer and use it in GitHub Desktop.
Save Peleke/759f990ca4ab64414550b681a9f66f0e to your computer and use it in GitHub Desktop.
$machineName = 'cybersecurity/linux-scavenger'
$provider = 'hyperv'
$destinationDir = '~/Documents/LinuxScavenger'
$vagrantfileUri = 'https://gist.githubusercontent.com/Peleke/f1a4ad0d5f921fdb64ba7efec08a744a/raw/8cc70b515148c179fb2d5fdc6861fa3ac0dec83b/LinuxScavengerHuntVagrantfile'
$vagrantfileName = 'Vagrantfile'
# Create Vagrantfile & Lift Machine
vagrant box add $machineName --provider=$provider
mkdir $destinationDir
cd $destinationDir
Invoke-WebRequest -uri $vagrantfileUri -UseBasicParsing -OutFile $vagrantfileName
vagrant up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment