Skip to content

Instantly share code, notes, and snippets.

@marcostolosa
Created November 1, 2018 02:34
Show Gist options
  • Save marcostolosa/951b341eab739c96491e2c791ffee52f to your computer and use it in GitHub Desktop.
Save marcostolosa/951b341eab739c96491e2c791ffee52f to your computer and use it in GitHub Desktop.
Offensive-Security Official Vagrant file
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "offensive-security/kali-linux"
# Create a forwarded port
config.vm.network "forwarded_port", guest: 80, host: 8080
# Create a private network. In VirtualBox, this is a Host-Only network
config.vm.network "private_network", ip: "192.168.33.10"
# VirtualBox specific settings
config.vm.provider "virtualbox" do |vb|
# Hide the VirtualBox GUI when booting the machine
vb.gui = false
# Customize the amount of memory on the VM:
vb.memory = "4096"
end
# Provision the machine with a shell script
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get upgrade -y
apt-get install -y crowbar htop vim strace
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment