• Home
  • Raw
  • Download

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

3 # american fuzzy lop++ - status check tool
4 # ----------------------------------------
9 # Copyright 2019-2024 AFLplusplus Project. All rights reserved.
15 # https://www.apache.org/licenses/LICENSE-2.0
17 # This tool summarizes the status of any locally-running synchronized
18 # instances of afl-fuzz.
21 test "$1" = "-h" -o "$1" = "-hh" && {
22 echo "$0 status check tool for afl-fuzz by Michal Zalewski"
24 echo "Usage: $0 [-s] [-d] afl_output_directory"
27 echo " -d - include dead fuzzer stats"
28 echo " -m - just show minimal stats"
29 echo " -n - no color output"
30 echo " -s - skip details and output summary results only"
46 if [ -z "$TERM" ]; then export TERM=vt220; fi
48 while [ "$1" = "-d" -o "$1" = "-m" -o "$1" = "-n" -o "$1" = "-s" ]; do
50 if [ "$1" = "-d" ]; then
54 if [ "$1" = "-m" ]; then
58 if [ "$1" = "-n" ]; then
62 if [ "$1" = "-s" ]; then
72 if [ "$DIR" = "" -o "$DIR" = "-h" -o "$DIR" = "--help" ]; then
74 echo "$0 status check tool for afl-fuzz by Michal Zalewski" 1>&2
76 echo "Usage: $0 [-d] [-m] [-n] [-s] afl_output_directory" 1>&2
79 echo " -d - include dead fuzzer stats" 1>&2
80 echo " -m - just show minimal stats" 1>&2
81 echo " -n - no color output" 1>&2
82 echo " -s - skip details and output summary results only" 1>&2
88 if [ -z "$MINIMAL_ONLY" ]; then
89 echo "$0 status check tool for afl-fuzz by Michal Zalewski"
95 if [ -d queue ]; then
97 echo "[-] Error: parameter is an individual output directory, not a sync dir." 1>&2
105 if [ -z "$NO_COLOR" ]; then
116 …MP=`mktemp -t .afl-whatsup-XXXXXXXX` || TMP=`mktemp -p /data/local/tmp .afl-whatsup-XXXXXXXX` || T…
148 if [ $1 -le 0 ]; then
152 local duration=$((CUR_TIME - $1))
156 local seconds=$((duration % 60))
158 if [ $duration -le 0 ]; then
159 DUR_STRING="0 seconds"
160 elif [ $duration -eq 1 ]; then
162 elif [ $days -gt 0 ]; then
164 elif [ $hours -gt 0 ]; then
166 elif [ $minutes -gt 0 ]; then
167 DUR_STRING="$minutes minutes, $seconds seconds"
169 DUR_STRING="$seconds seconds"
177 for j in `find . -maxdepth 2 -iname fuzzer_setup | sort`; do
182 if [ -f "$i" ]; then
191 COVERAGE=$(echo $bitmap_cvg|tr -d %)
192 if [ -n "$TOTAL_COVERAGE" -a -n "$COVERAGE" -a -n "$BC" ]; then
193 if [ "$(echo "$TOTAL_COVERAGE < $COVERAGE" | bc)" -eq 1 ]; then
197 if [ -z "$TOTAL_COVERAGE" ]; then TOTAL_COVERAGE=$COVERAGE ; fi
199 test -n "$cycles_wo_finds" && {
200 test -z "$FIRST" && TOTAL_WCOP="${TOTAL_WCOP}/"
212 if ! kill -0 "$fuzzer_pid" 2>/dev/null; then
217 if [ -e "$i" ] && [ -e "$j" ] && [ -n "$FUSER" ]; then
219 if [ "$i" -ot "$j" ]; then
222 TMP_PID=`fuser -v "$DIRECTORY" 2>&1 | grep afl-fuzz`
224 if [ -n "$TMP_PID" ]; then
249 if [ -z "$IS_STARTING" ]; then
275 test -z "$RUN_UNIX" -o "$RUN_UNIX" = 0 || EXEC_SEC=$((execs_done / RUN_UNIX))
286 if [ "$last_find" -gt "$TOTAL_LAST_FIND" ]; then
294 if [ $TIMEOUT_PERC -ge 10 ]; then
298 if [ $EXEC_SEC -eq 0 ]; then
300 elif [ $EXEC_SEC -lt 100 ]; then
308 test -n "$cycles_wo_finds" && {
310 test "$cycles_wo_finds" -gt 10 && FMT_CWOP="${YELLOW}$cycles_wo_finds${NC}"
311 test "$cycles_wo_finds" -gt 50 && FMT_CWOP="${RED}$cycles_wo_finds${NC}"
316 if [ -z "$MINIMAL_ONLY" ]; then
322 if [ -z "$MINIMAL_ONLY" ]; then
324 CPU_USAGE=$(ps aux | grep -w $fuzzer_pid | grep -v grep | awk '{print $3}')
325 MEM_USAGE=$(ps aux | grep -w $fuzzer_pid | grep -v grep | awk '{print $4}')
345 if [ ! -e "$i" -a -e "$j" ]; then
361 fmt_duration $((CUR_TIME - TOTAL_TIME)) && FMT_TIME=$DUR_STRING
366 if [ $EXECS_MILLION -gt 9 ]; then
368 elif [ $EXECS_MILLION -gt 0 ]; then
374 rm -f "$TMP"
379 test -z "$TOTAL_WCOP" && TOTAL_WCOP="not available"
391 ALIVE_CNT=$(($ALIVE_CNT - $DEAD_CNT - $START_CNT))
397 if [ -z "$SUMMARY_ONLY" -o -z "$MINIMAL_ONLY" ]; then
412 if [ -z "$MINIMAL_ONLY" ]; then
416 if [ "$ALIVE_CNT" -gt "0" ]; then
419 if [ -z "$MINIMAL_ONLY" ]; then
423 if [ "$ALIVE_CNT" -gt "1" -o -n "$MINIMAL_ONLY" ]; then
424 if [ "$ALIVE_CNT" -gt "0" ]; then
431 if [ -z "$MINIMAL_ONLY" ]; then