• Home
  • Raw
  • Download

Lines Matching +full:fuzz +full:- +full:seconds

3 . ./test-pre.sh
6 test "1" = "`../afl-fuzz | grep -i 'without python' >/dev/null; echo $?`" && {
9 …test -e test-custom-mutator.c -a -e ${CUSTOM_MUTATOR_PATH}/example.c -a -e ${CUSTOM_MUTATOR_PATH}/…
12 test -e ../afl-clang-fast && {
13 ../afl-clang-fast -o test-custom-mutator test-custom-mutator.c > /dev/null 2>&1
15 test -e ../afl-gcc-fast && {
16 ../afl-gcc-fast -o test-custom-mutator test-custom-mutator.c > /dev/null 2>&1
18 ../afl-gcc -o test-custom-mutator test-custom-mutator.c > /dev/null 2>&1
22 test -e ../afl-clang-fast && {
23 ../afl-clang-fast -o test-multiple-mutators test-multiple-mutators.c > /dev/null 2>&1
25 test -e ../afl-gcc-fast && {
26 ../afl-gcc-fast -o test-multiple-mutators test-multiple-mutators.c > /dev/null 2>&1
28 ../afl-gcc -o test-multiple-mutators test-multiple-mutators.c > /dev/null 2>&1
32 …cc -D_FIXED_CHAR=0x41 -g -fPIC -shared -I../include ../custom_mutators/examples/simple_example.c -
33 …cc -D_FIXED_CHAR=0x42 -g -fPIC -shared -I../include ../custom_mutators/examples/simple_example.c -
34 test -e test-custom-mutator -a -e ./libexamplemutator.so && {
36 mkdir -p in
39 # Run afl-fuzz w/ the C mutator
40 $ECHO "$GREY[*] running afl-fuzz for the C mutator, this will take approx 10 seconds"
42 …amplemutator.so AFL_CUSTOM_MUTATOR_ONLY=1 ../afl-fuzz -V10 -m ${MEM_LIMIT} -i in -o out -- ./test-
46 test -n "$( ls out/default/crashes/id:000000* 2>/dev/null )" && { # TODO: update here
47 $ECHO "$GREEN[+] afl-fuzz is working correctly with the C mutator"
49 echo CUT------------------------------------------------------------------CUT
51 echo CUT------------------------------------------------------------------CUT
52 $ECHO "$RED[!] afl-fuzz is not working correctly with the C mutator"
57 rm -rf out errors core.*
59 # Run afl-fuzz w/ multiple C mutators
60 …$ECHO "$GREY[*] running afl-fuzz with multiple custom C mutators, this will take approx 10 seconds"
62 …lemutator2.so" AFL_CUSTOM_MUTATOR_ONLY=1 ../afl-fuzz -V10 -m ${MEM_LIMIT} -i in -o out -- ./test-m…
65 test -n "$( ls out/default/crashes/id:000000* 2>/dev/null )" && { # TODO: update here
66 $ECHO "$GREEN[+] afl-fuzz is working correctly with multiple C mutators"
68 echo CUT------------------------------------------------------------------CUT
70 echo CUT------------------------------------------------------------------CUT
71 $ECHO "$RED[!] afl-fuzz is not working correctly with multiple C mutators"
76 rm -rf out errors core.*
78 # Run afl-fuzz w/ the Python mutator
79 $ECHO "$GREY[*] running afl-fuzz for the Python mutator, this will take approx 10 seconds"
83 …AFL_CUSTOM_MUTATOR_ONLY=1 ../afl-fuzz -V10 -m ${MEM_LIMIT} -i in -o out -- ./test-custom-mutator >…
89 test -n "$( ls out/default/crashes/id:000000* 2>/dev/null )" && { # TODO: update here
90 $ECHO "$GREEN[+] afl-fuzz is working correctly with the Python mutator"
92 echo CUT------------------------------------------------------------------CUT
94 echo CUT------------------------------------------------------------------CUT
95 $ECHO "$RED[!] afl-fuzz is not working correctly with the Python mutator"
100 rm -rf in out errors core.*
101 rm -rf ${CUSTOM_MUTATOR_PATH}/__pycache__/
102 rm -f test-multiple-mutators test-custom-mutator libexamplemutator.so libexamplemutator2.so
112 make -C ../utils/custom_mutators clean > /dev/null 2>&1
113 rm -f test-custom-mutator
114 rm -f test-custom-mutators
116 $ECHO "$YELLOW[-] no custom mutators in $CUSTOM_MUTATOR_PATH, cannot test"
121 $ECHO "$YELLOW[-] no python support in afl-fuzz, cannot test"
125 . ./test-post.sh