Skip to content

Instantly share code, notes, and snippets.

@yaci
Last active August 2, 2017 22:23
Show Gist options
  • Save yaci/90808b46e68a6cdc15f24dcdc9f58aed to your computer and use it in GitHub Desktop.
Save yaci/90808b46e68a6cdc15f24dcdc9f58aed to your computer and use it in GitHub Desktop.
Vagrantfile for Arachni Scanner on Ubuntu
# -*- mode: ruby -*-
# vi: set ft=ruby :
arachniDownloadUrl = 'https://github.com/Arachni/arachni/releases/download/v1.5.1/arachni-1.5.1-0.5.12-linux-x86_64.tar.gz'
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/precise64"
config.vm.box_check_update = false
config.vm.network :forwarded_port, guest: 9292, host_ip: "127.0.0.1", host: 9292, id: "arachni", auto_correct: true
config.vm.provision :shell, privileged: false, :args => [arachniDownloadUrl], inline: <<-SHELL
arachniDownloadUrl=$1
arachniFile="${arachniDownloadUrl##*/}"
echo "Installing system updates, this may take a while..."
sudo apt-get -qq update
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq upgrade
echo "Downloading arachni..."
wget $arachniDownloadUrl
echo "Unpacking arachni..."
mkdir -p arachni
tar -xf $arachniFile -C ./arachni --strip-components 1
rm $arachniFile
SHELL
config.vm.post_up_message = "Done! (if there were no errors above)\nNow you can just type:\nvagrant ssh\ncd arachni/bin ./arachni_web --host 0.0.0.0"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment