diff options
author | van Hauser <vh@thc.org> | 2020-02-19 11:57:29 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-02-19 11:57:29 +0100 |
commit | 62b17844b92afd1a7442b05badb02abfa553133f (patch) | |
tree | 679d3342eb8c735f2c8354bf16f0b06aaaa538bf | |
parent | 8a6544f7f9a3ce46720214351d1240a19ae8845a (diff) | |
download | afl++-62b17844b92afd1a7442b05badb02abfa553133f.tar.gz |
test.sh AFL_ENTRYPOINT testcase
-rwxr-xr-x | test/test.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/test.sh b/test/test.sh index dfb79c9a..f6fa93d6 100755 --- a/test/test.sh +++ b/test/test.sh @@ -584,6 +584,23 @@ test -e ../afl-qemu-trace && { } rm -f errors + $ECHO "$GREY[*] running afl-fuzz for qemu_mode AFL_ENTRYPOINT, this will take approx 6 seconds" + { + export AFL_ENTRYPOINT=`expr 0x4$(nm test-instr | grep "T main" | awk '{print $1}' | sed 's/^.......//')` + ../afl-fuzz -m ${MEM_LIMIT} -V2 -Q -i in -o out -- ./test-instr >>errors 2>&1 + } >>errors 2>&1 + test -n "$( ls out/queue/id:000001* 2> /dev/null )" && { + $ECHO "$GREEN[+] afl-fuzz is working correctly with qemu_mode AFL_ENTRYPOINT" + RUNTIME=`grep execs_done out/fuzzer_stats | awk '{print$3}'` + } || { + echo CUT------------------------------------------------------------------CUT + cat errors + echo CUT------------------------------------------------------------------CUT + $ECHO "$RED[!] afl-fuzz is not working correctly with qemu_mode AFL_ENTRYPOINT" + CODE=1 + } + rm -f errors + test -e ../libcompcov.so && { $ECHO "$GREY[*] running afl-fuzz for qemu_mode libcompcov, this will take approx 10 seconds" { |