IntelLabs / kafl.targets

Target components for kAFL/Nyx Fuzzer
Other
26 stars 26 forks source link

Fix Windows driver and userspace target harness #21

Closed Wenzel closed 1 year ago

Wenzel commented 1 year ago

This PR fixes the windows-x86_64 and windows-x86_64-userspace example harnesses.

VM template

It first provides a Windows VM template via Packer, based on the latest Windows x64 22h2 Entreprise ISO, with the necessary tools to compile a driver and testsign it. The latest Visualstudio, SDK and WDK are installed inside the VM (via Ansible).

see templates/windows: make build

From there, the VM is exported as a vagrant box through the vagrant-post-processor, and can be imported into Vagrant: see templates/windows: make import

Provision the target harnesses

At this point, the windows template is availabel in Vagrant.

Once that's done, just fuzz the target with kafl fuzz

The image path is already set in kafl.yml