Before starting the fuzzing process, set the necessary environment variables:
# Set compiler paths
export CXX="/Multi-DAFL/afl-clang-fast++"
export CC="/Multi-DAFL/afl-clang-fast"
# Define DAFL-related paths
export DAFL_DFG_SCORE="/fuzzing_benchmark/DAFL-input/dfg/jhead/"
export DAFL_SELECTIVE_COV="/fuzzing_benchmark/DAFL-input/inst-targ/jhead/"
export DAFL_FUZZ="/Multi-DAFL/afl-fuzz"Switch to the jhead-3.08 directory and compile the project with the following commands:
cd jhead-3.08
make clean
# avoid error: clang-12: unsupported argument 'auto' to option 'flto='
make CFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security" LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro" -j$(nproc)Before running the fuzzer, create an output directory:
# Do delete all the content in the /output dir before you start a new fuzzing session
mkdir outputExecute the fuzzing process using the following command:
AFL_NO_UI=1 $DAFL_FUZZ -m none -d -i ../fuzzing_benchmark/seed/jhead-3.08 -o ./output -F 6 -- ./jhead @@Before starting the fuzzing process, set the necessary environment variables:
# Set compiler paths
export CXX="/Multi-DAFL/afl-clang-fast++"
export CC="/Multi-DAFL/afl-clang-fast"
# Define DAFL-related paths
export DAFL_DFG_SCORE="/fuzzing_benchmark/DAFL-input/dfg/cscope/"
export DAFL_SELECTIVE_COV="/fuzzing_benchmark/DAFL-input/inst-targ/cscope/"
export DAFL_FUZZ="/Multi-DAFL/afl-fuzz"Switch to the cscope-15.9 directory and compile the project with the following commands:
cd cscope-15.9
make clean
make LDFLAGS="-lncurses"Before running the fuzzer, create an output directory:
# Do delete all the content in the /output dir before you start a new fuzzing session
mkdir outputExecute the fuzzing process using the following command:
$DAFL_FUZZ -m none -d -i ../fuzzing_benchmark/seed/cscope-15.9 -o ./output -F 12 -- ./src/cscope @@Before starting the fuzzing process, set the necessary environment variables:
# Set compiler paths
export CXX="/Multi-DAFL/afl-clang-fast++"
export CC="/Multi-DAFL/afl-clang-fast"
# Define DAFL-related paths
export DAFL_DFG_SCORE="/fuzzing_benchmark/DAFL-input/dfg/libtiff.a/"
export DAFL_SELECTIVE_COV="/fuzzing_benchmark/DAFL-input/inst-targ/libtiff.a/"
export DAFL_FUZZ="/Multi-DAFL/afl-fuzz"Fetch the libtiff project:
git clone https://github.com/null1024-ws/libtiff.gitSwitch to libtiff dir and compile the project with the following command:
cd libtiff
./autogen.sh
./configure --disable-shared
cd libtiff
make -j1 clean
make -j1 libtiff_fuzzerBefore running the fuzzer, create an output directory:
cd ..
mkdir outputExecute the fuzzing process using the following command:
AFL_NO_UI=1 $DAFL_FUZZ -m none -d -i ../fuzzing_benchmark/seed/libtiff-4.7.0/ -o ./output/ -F 4 -- ./libtiff/libtiff_fuzzer @@