Skip to content

Instantly share code, notes, and snippets.

@richinseattle
Last active May 25, 2019 11:56
Show Gist options
  • Save richinseattle/83c6579affdc4e8578e7ccea769326b3 to your computer and use it in GitHub Desktop.
Save richinseattle/83c6579affdc4e8578e7ccea769326b3 to your computer and use it in GitHub Desktop.
sudo apt install build-essential git vim
sudo apt install pip python-lz4 libpython-dev xdot python-psutil
pip install --upgrade pip
sudo pip install setuptools mmh3
git clone https://github.com/richinseattle/kAFL
cd kAFL
bash install.sh
sudo apt install qemu-utils
qemu-img create -f qcow2 vm.qcow2 10G
qemu-img create -f raw ~/vm/winfuzz.raw 20G
exec qemu-system-x86_64 -enable-kvm \
-cpu host \
-drive file=msedge.box \
-net nic -net user,hostname=winfuzz \
-m 1G \
-monitor stdio \
-name "Windows" \
$@
sudo qemu-system-x86_64 -enable-kvm -m 1024 -smp 1 -drive file=vm.qcow2,if=virtio -usb -usbdevice disk:/dev/sdb -boot menu=on
qemu-system-x86_64 -bios /usr/share/ovmf/OFVM.fd -enable-kvm -cpu host -smp 4 -m 2048 -net nic,model=virtio -net user -usb -usbdevice disk:/dev/sdb -drive file=~/vm/winfuzz.raw,format=raw,if=virtio -vga qxl -drive file=~/Downloads/virtio-win-0.1.126.iso,index=1,media=cdrom
# Running
qemu-system-x86_64 -bios /usr/share/ovmf/OFVM.fd -enable-kvm -cpu host -smp 4 -m 4096 -net nic,model=virtio -net user -drive file=~/vm/winfuzz.raw,if=virtio -vga qxl \
-drive file=~/Downloads/virtio-win-0.1.126.iso,index=1,media=cdrom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment