#6, more AFL running improvements, from stack overflow
commita5eced5ba85aad7e60a97d3e958483f2d1943be3
authorNeil Mitchell <ndmitchell@gmail.com>
dateThu 22 Dec 2016, 22:32 (10 years ago)
parentf2e8131
afl.sh+3−2
@@ -19,9 +19,10 @@ AFL_HARDEN=1 afl-clang-fast -O2 -Icbits cbits/fuzz.c -o $PWD/hexml-fuzz
1919
2020# Fuzz it
2121if ! 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
2323fi
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
2526
2627# Minimize failures
2728# $ AFL_PRELOAD=/usr/local/lib/afl/libdislocator.so afl-cmin -i results/crashes/ -o results.shrunk -- $PWD/a.out @@