sudo apt-get update
sudo apt-get install -y build-essential python3-dev automake cmake git flex bison libglib2.0-dev libpixman-1-dev python3-setuptools
# try to install llvm 12 and install the distro default if that fails
sudo apt-get install -y lld-12 llvm-12 llvm-12-dev clang-12 || sudo apt-get install -y lld llvm llvm-dev clang
sudo apt-get install -y gcc-$(gcc --version|head -n1|sed 's/\\..*//'|sed 's/.* //')-plugin-dev libstdc++-$(gcc --version|head -n1|sed 's/\\..*//'|sed 's/.* //')-dev
sudo apt-get install -y ninja-build # for QEMU mode
git clone <https://github.com/AFLplusplus/AFLplusplus>
cd AFLplusplus
export LLVM_CONFIG="llvm-config-11" # llvm version: 11
make distrib # make all 또는 make source-only 사용 가능
sudo make install
# ASAN 사용하는 경우
# AFL_USE_ASAN=1 make distrib
# AFL_USE_ASAN=1 make install
정상 설치 시 afl-fuzz 결과로 위와 같이 확인 가능
[Fuzzing] WinAFL fuzzing HncAppShield (0) | 2022.07.08 |
---|---|
[Fuzzing] WinAFL 환경구축 및 사용법 (0) | 2022.07.08 |
[Fuzzing] AFL fuzzing dact (0) | 2022.06.28 |
[Fuzzing] AFL 설치 (0) | 2022.06.28 |
[Fuzzing 101] Exercise 1 - Xpdf (0) | 2022.06.27 |