• Home
  • Raw
  • Download

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

3 . ./test-pre.sh
6 test -z "$AFL_CC" && {
16 test -e ../afl-frida-trace.so && {
17 cc -no-pie -o test-instr ../test-instr.c
18 cc -o test-compcov test-compcov.c
19 test -e test-instr -a -e test-compcov && {
21 mkdir -p in
23 $ECHO "$GREY[*] running afl-fuzz for frida_mode, this will take approx 10 seconds"
25 …AFL_DEBUG=1 AFL_FRIDA_VERBOSE=1 ../afl-fuzz -m ${MEM_LIMIT} -V07 -O -i in -o out -- ./test-instr >…
27 test -n "$( ls out/default/queue/id:000002* 2>/dev/null )" && {
28 $ECHO "$GREEN[+] afl-fuzz is working correctly with frida_mode"
31 echo CUT------------------------------------------------------------------CUT
33 echo CUT------------------------------------------------------------------CUT
34 $ECHO "$RED[!] afl-fuzz is not working correctly with frida_mode"
37 rm -f errors
39 …test "$SYS" = "i686" -o "$SYS" = "x86_64" -o "$SYS" = "amd64" -o "$SYS" = "i86pc" -o "$SYS" = "aar…
40 $ECHO "$GREY[*] running afl-fuzz for frida_mode cmplog, this will take approx 10 seconds"
42 ../afl-fuzz -m none -V07 -O -c 0 -l 3 -i in -o out -- ./test-compcov >>errors 2>&1
44 test -n "$( ls out/default/queue/id:000003* 2>/dev/null )" && {
45 $ECHO "$GREEN[+] afl-fuzz is working correctly with frida_mode cmplog"
47 echo CUT------------------------------------------------------------------CUT
49 echo CUT------------------------------------------------------------------CUT
50 $ECHO "$RED[!] afl-fuzz is not working correctly with frida_mode cmplog"
53 rm -f errors
55 $ECHO "$YELLOW[-] not an intel or arm platform, cannot test frida_mode cmplog"
58 …test "$SYS" = "i686" -o "$SYS" = "x86_64" -o "$SYS" = "amd64" -o "$SYS" = "i86pc" -o "$SYS" = "aar…
59 … $ECHO "$GREY[*] running afl-fuzz for persistent frida_mode, this will take approx 10 seconds"
61 #if file test-instr | grep -q "32-bit"; then
64 … export AFL_FRIDA_PERSISTENT_ADDR=0x`nm test-instr | grep -Ei "T _main|T main" | awk '{print $1}'`
65 …$ECHO "Note: AFL_FRIDA_PERSISTENT_ADDR=$AFL_FRIDA_PERSISTENT_ADDR <= $(nm test-instr | grep "T mai…
67 file test-instr
70 ../afl-fuzz -m ${MEM_LIMIT} -V07 -O -i in -o out -- ./test-instr
71 nm test-instr | grep -i "main"
74 test -n "$( ls out/default/queue/id:000002* 2>/dev/null )" && {
75 $ECHO "$GREEN[+] afl-fuzz is working correctly with persistent frida_mode"
77 test -n "$RUNTIME" -a -n "$RUNTIMEP" && {
79 test "$DIFF" -gt 1 && { # must be at least twice as fast
82 … $ECHO "$YELLOW[-] persistent frida_mode was not noticeable faster than standard frida_mode"
85 $ECHO "$YELLOW[-] we got no data on executions performed? weird!"
88 echo CUT------------------------------------------------------------------CUT
90 echo CUT------------------------------------------------------------------CUT
91 $ECHO "$RED[!] afl-fuzz is not working correctly with persistent frida_mode"
94 rm -rf in out errors
96 $ECHO "$YELLOW[-] not an intel or arm platform, cannot test persistent frida_mode"
101 $ECHO "$RED[!] gcc compilation of test targets failed - what is going on??"
105 rm -f test-instr test-compcov
107 $ECHO "$YELLOW[-] frida_mode is not compiled, cannot test"
111 . ./test-post.sh