Last active
September 26, 2016 06:11
-
-
Save jhertz/e51ee778733f0214a5c54297e9ec5b1e to your computer and use it in GitHub Desktop.
vagrantfile to setup a VM for fuzzing using AFL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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