winafl
winafl copied to clipboard
Anyone able to get winafl working on Windows 11?
I followed the build procedures mentioned using Visual Studio 2022 latest compiler on Windows11. The build is successful, however tests are resulting into timeout messages.
1 Is, anyone able to get winafl working on Windows 11? 2 If so, could you please review the build instructions below for correctness? 3 Could you please provide an example test program, build instructions for thar test program and the exact winafl command line?
-sachin
My build procedure was as follows
mkdir c:\winafl
cd c:\winafl
git clone https://github.com/googleprojectzero/winafl.git .
// To enable the `Hardware tracing using Intel PT` feature
git submodule update --init --recursive
curl -LO https://github.com/DynamoRIO/dynamorio/releases/download/release_9.0.1/DynamoRIO-Windows-9.0.1.zip
tar -xf DynamoRIO-Windows-9.0.1.zip
// 32 bit build - Use "x86 Native Tools Command Prompt"
mkdir c:\winafl\build32
cd c:\winafl\build32
cmake -G"Visual Studio 17 2022" -A Win32 .. -DDynamoRIO_DIR=C:\winafl\DynamoRIO-Windows-9.0.1\cmake -DINTELPT=1 -DUSE_COLOR=1 -DUSE_DRSYMS=1
cmake --build . --config Release
// 64-bit build: - Use "x64 Native Tools Command Prompt"
mkdir c:\winafl\build64
cd c:\winafl\build64
cmake -G"Visual Studio 17 2022" -A x64 .. -DDynamoRIO_DIR=C:\winafl\DynamoRIO-Windows-9.0.1\cmake -DINTELPT=1 -DUSE_COLOR=1 -DUSE_DRSYMS=1
cmake --build . --config Release
Test for 64bit
dumpbin.exe /EXPORTS test.exe // target_offset for my test case was 0x000011E5
afl-fuzz.exe -P -i in -o out -D %DynamoRIO_PATH% -t 20000 -- -coverage_module test.exe -fuzz_iterations 5000 -target_module test.exe -target_offset <0x000011E5> -nargs 2 -- test.exe @@
same issue
I also encounted this problem in win11arm virtual machine.