Skip to content

Instantly share code, notes, and snippets.

@jhertz
Last active September 26, 2016 06:11
Show Gist options
  • Save jhertz/e51ee778733f0214a5c54297e9ec5b1e to your computer and use it in GitHub Desktop.
Save jhertz/e51ee778733f0214a5c54297e9ec5b1e to your computer and use it in GitHub Desktop.
vagrantfile to setup a VM for fuzzing using AFL
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.provider "virtualbox" do |vb|
vb.memory = "4096"
vb.cpus = 2
end
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y git cmake build-essential wget nano python screen
wget http://lcamtuf.coredump.cx/afl/releases/afl-latest.tgz
tar xf afl-latest.tgz
cd afl-*
make
make install
cd ..
# To avoid having crashes misinterpreted as hangs (recommended by afl-fuzz when first run)
echo core > /proc/sys/kernel/core_pattern
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment