Debian Codegraph @

fuzzing/get-afl.sh

raw
1 #!/usr/bin/env bash
2 cd "${0%/*}"
3
4 AFL_VERSION="$(wget --quiet -O - "https://api.github.com/repos/AFLplusplus/AFLplusplus/releases/latest" | jq -r .tag_name)"
5 AFL_FILENAME="$AFL_VERSION.tar.gz"
6 AFL_URL="https://github.com/AFLplusplus/AFLplusplus/archive/refs/tags/$AFL_FILENAME"
7
8 rm $AFL_FILENAME
9 wget $AFL_URL || exit
10 tar -xzvf $AFL_FILENAME
11 rm $AFL_FILENAME
12 cd AFLplusplus-*
13 make source-only || exit
14 cd ..
15 rm -rf afl
16 mv AFLplusplus-* afl