Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyone able to get winafl working on Windows 11? #402

Open
sgodse-int opened this issue Mar 1, 2023 · 2 comments
Open

Anyone able to get winafl working on Windows 11? #402

sgodse-int opened this issue Mar 1, 2023 · 2 comments

Comments

@sgodse-int
Copy link

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 @@

@0x410c
Copy link

0x410c commented Mar 17, 2023

same issue

@yuhui518
Copy link

I also encounted this problem in win11arm virtual machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants