googleprojectzero / winafl

A fork of AFL for fuzzing Windows binaries
Apache License 2.0
2.35k stars 534 forks source link

Problem Compiling #158

Open jeffreyroberts opened 5 years ago

jeffreyroberts commented 5 years ago

I can't get past the first part here...


Visual Studio 2017 Developer Command Prompt v15.9.6 Copyright (c) 2017 Microsoft Corporation


[vcvarsall.bat] Environment initialized for: 'x64'

c:\Users\jeffr\Projects\Fuzzing\winafl\build64>cmake -G"Visual Studio 15 2017 Win64" .. -DDynamoRIO_DIR=........\Downloads\DynamoRIO-Windows-7.0.0-RC1\DynamoRIO-Windows-7.0.0-RC1\cmake -DINTELPT=1 CMake Warning (dev) at CMakeLists.txt:15 (add_subdirectory): The source directory

C:/Users/jeffr/Projects/Fuzzing/winafl/third_party/processor-trace

does not contain a CMakeLists.txt file.

CMake does not support this case but it used to work accidentally and is being allowed for compatibility.

Policy CMP0014 is not set: Input directories must have CMakeLists.txt. Run "cmake --help-policy CMP0014" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning at CMakeLists.txt:149 (find_package): By not providing "FindDynamoRIO.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "DynamoRIO", but CMake did not find one.

Could not find a package configuration file provided by "DynamoRIO" with any of the following names:

DynamoRIOConfig.cmake
dynamorio-config.cmake

Add the installation prefix of "DynamoRIO" to CMAKE_PREFIX_PATH or set "DynamoRIO_DIR" to a directory containing one of the above files. If "DynamoRIO" provides a separate development package or SDK, be sure it has been installed.

CMake Error at CMakeLists.txt:151 (message): DynamoRIO package required to build

-- Configuring incomplete, errors occurred! See also "C:/Users/jeffr/Projects/Fuzzing/winafl/build64/CMakeFiles/CMakeOutput.log".

c:\Users\jeffr\Projects\Fuzzing\winafl\build64>

jeffreyroberts commented 5 years ago

I am a big fan of AFL for linux, figured I would give it a try for windows =]

ifratric commented 5 years ago

Hey, I see two problems here

Note also that WinAFL includes prebuilt binaries in bin32/bin64 folders. :-)

jeffreyroberts commented 5 years ago

Gracias!

AnassZbair commented 2 years ago

1- Don't use the repo from github, just download dynamorio from official website and unzip it. 2- open x64 native tools command prompt and type :