prosyslab / DAFL-artifact

35 stars 3 forks source link

How to run DAFL locally? #5

Closed 5hEn918 closed 7 months ago

5hEn918 commented 7 months ago

Hi. Currently all the experiments are conducted in the docker environment. Is it ok to run DAFL on the local machine? Is it any installation script for DAFL? Or can u kindly provide the environment dependencies DAFL need?

goodtaeeun commented 7 months ago

Hi, it is possible to run DAFL on your local machine. However, the installation process may vary depending on your system.

All the scripts that are used to set up the Docker environment are provided in the project. You may refer to those scripts to set up your local environment for DAFL. I will be happy to help with the troubleshooting.

5hEn918 commented 7 months ago

Thanks for your quick response! I will try the provided docker first.

5hEn918 commented 7 months ago

I pulled the docker and tried to run the scripts provided in the repo and it worked well. And I also copied the docker components into my local machine, as showed in the picture: image

I have some questions need to be helped: Can u share the llvm version u used? How to build the sparrow and does it have some dependencies to instsall? Also I would to know how the smake-out directory to be generated which is the input for static analyzer sparrow.

Thanks!

goodtaeeun commented 7 months ago

Hi,

  1. We used llvm version 12 for DAFL, but different versions for other fuzzers due to their dependencies. Refer to our script that we used to setup our llvm. For llvm used for other fuzzers, refer to their setup scripts and build scripts in https://github.com/prosyslab/DAFL-artifact/tree/main/docker-setup
  2. Please refer our script that we used to set up Sparrow.
  3. smake-out directory contains the preprocessed files (*.i files) that are emitted during the compilation. We use our tool smake to hook up the make process and snatch out the preprocessed files. Refer to our script where we generate the contents for the smake-out directory.
5hEn918 commented 7 months ago

Thanks for your response!