# EDIT: path to afl src if you do not set a symlink from ./afl to the afl directory AFL_ROOT = /usr/fuzz_pro/AFLplusplus-blogpost/AFLplusplus
...
编译安装
1 2
make make install
补充共享库路径
程序有可能因找不到共享库而报错,因此要设定库路径 /afl-dyninst: error while loading shared libraries: libdyninstAPI.so.12.3: cannot open shared object file: No such file or directory
afl-dyninst (c) 2017-2021 by Aleksandar Nikolic and Marc Heuse [https://github.com/vanhauser-thc/afl-dyninst] Apache 2.0 License Usage: ./afl-dyninst -fvxD -i <binary> -o <binary> -e <address> -E <address> -s <number> -S <funcname> -I <funcname> -m <size> -i: input binary -o: output binary -r: runtime library to instrument (path to, repeat for more than one) -e: entry point address to patch (required for stripped binaries) -E: exit point - force exit(0) at this address (repeat for more than one) -s: number of initial basic blocks to skip in binary -m: minimum size of a basic bock to instrument (default: 10) -f: fix a dyninst bug that leads to crashes (performance loss, only dyninst9) -I: only instrument this function and nothing else (repeat for more than one) -S: do not instrument this function (repeat for more than one) -D: instrument only a simple fork server and also forced exitfunctions -x: experimental performance mode (~25-50% speed improvement) -v: verbose output Note: options -l and -d have been deprecated, use -r and -D instead.