forked from AFLplusplus/AFL-Snapshot-LKM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
32 lines (26 loc) · 778 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/focal64"
config.vm.provider "virtualbox" do |vb|
vb.name = "AFL Snapshot LKM"
vb.memory = 4096
vb.cpus = 4
vb.customize ["modifyvm", :id, "--uart1", "0x3F8", "4"]
vb.customize ["modifyvm", :id, "--uartmode1", "tcpserver", "2023"]
end
config.vm.provision "shell", inline: <<-'SHELL'
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y \
build-essential \
flex bison \
libncurses-dev \
libssl-dev \
libelf-dev
sed -i \
's/\(GRUB_CMDLINE_LINUX\)="\(.*\)"/\1="kgdboc=ttyS0,115200 nokaslr no_hash_pointers"/' \
/etc/default/grub
update-grub
SHELL
end