on master help sign in
#6, more AFL running improvements, from stack overflow
a5eced5Neil Mitchell
afl.sh+3−2
@@ -19,9 +19,10 @@ AFL_HARDEN=1 afl-clang-fast -O2 -Icbits cbits/fuzz.c -o $PWD/hexml-fuzz
19
19
20# Fuzz it
20# Fuzz it
21if ! grep -q core /proc/sys/kernel/core_pattern ; then
21if ! grep -q core /proc/sys/kernel/core_pattern ; then
22− sudo echo core > /proc/sys/kernel/core_pattern
22+ echo core | sudo tee /proc/sys/kernel/core_pattern
23fi
23fi
24−AFL_PRELOAD=/usr/local/lib/afl/libdislocator.so afl-fuzz -T hexml -x /usr/local/share/afl/dictionaries/xml.dict -i $PWD/xml -o $PWD/afl-results -- $PWD/hexml-fuzz @@
24+AFL_EXIT_WHEN_DONE=1 AFL_PRELOAD=/usr/local/lib/afl/libdislocator.so afl-fuzz -T hexml -x /usr/local/share/afl/dictionaries/xml.dict -i $PWD/xml -o $PWD/afl-results -- $PWD/hexml-fuzz @@
25+cat afl-results/fuzzer_stats
25
26
26# Minimize failures
27# Minimize failures
27# $ AFL_PRELOAD=/usr/local/lib/afl/libdislocator.so afl-cmin -i results/crashes/ -o results.shrunk -- $PWD/a.out @@
28# $ AFL_PRELOAD=/usr/local/lib/afl/libdislocator.so afl-cmin -i results/crashes/ -o results.shrunk -- $PWD/a.out @@