aboutsummaryrefslogtreecommitdiff
path: root/afl-whatsup
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-08-22 10:09:49 +0200
committervanhauser-thc <vh@thc.org>2023-08-22 10:09:49 +0200
commit959b75358971c41956346636ce84d46dbe1bf286 (patch)
treec6db83aa6488d86614b46a3c5c1e26d326acca3a /afl-whatsup
parentf41d121f0767d929e34bbac7cb8d09ba4731730c (diff)
downloadAFLplusplus-959b75358971c41956346636ce84d46dbe1bf286.tar.gz
fix
Diffstat (limited to 'afl-whatsup')
-rwxr-xr-xafl-whatsup20
1 files changed, 16 insertions, 4 deletions
diff --git a/afl-whatsup b/afl-whatsup
index 47133a13..bbb73e47 100755
--- a/afl-whatsup
+++ b/afl-whatsup
@@ -18,9 +18,9 @@
# instances of afl-fuzz.
#
-echo "$0 status check tool for afl-fuzz by Michal Zalewski"
-echo
test "$1" = "-h" -o "$1" = "-hh" && {
+ echo "$0 status check tool for afl-fuzz by Michal Zalewski"
+ echo
echo "Usage: $0 [-s] [-d] afl_output_directory"
echo
echo Options:
@@ -71,6 +71,8 @@ DIR="$1"
if [ "$DIR" = "" -o "$DIR" = "-h" -o "$DIR" = "--help" ]; then
+ echo "$0 status check tool for afl-fuzz by Michal Zalewski" 1>&2
+ echo 1>&2
echo "Usage: $0 [-d] [-m] [-n] [-s] afl_output_directory" 1>&2
echo 1>&2
echo Options: 1>&2
@@ -83,6 +85,11 @@ if [ "$DIR" = "" -o "$DIR" = "-h" -o "$DIR" = "--help" ]; then
fi
+if [ -z "$MINIMAL_ONLY" ]; then
+ echo "$0 status check tool for afl-fuzz by Michal Zalewski"
+ echo
+fi
+
cd "$DIR" || exit 1
if [ -d queue ]; then
@@ -325,7 +332,10 @@ fi
echo "Summary stats"
echo "============="
-echo
+if [ -z "$SUMMARY_ONLY" -o -z "$MINIMAL_ONLY" ]; then
+ echo
+fi
+
echo " Fuzzers alive : $ALIVE_CNT"
if [ ! "$DEAD_CNT" = "0" ]; then
@@ -345,7 +355,9 @@ if [ -z "$MINIMAL_ONLY" ]; then
fi
if [ "$ALIVE_CNT" -gt "1" -o -n "$MINIMAL_ONLY" ]; then
- echo " Pending per fuzzer : $((TOTAL_PFAV/ALIVE_CNT)) faves, $((TOTAL_PENDING/ALIVE_CNT)) total (on average)"
+ if [ "$ALIVE_CNT" -gt "0" ]; then
+ echo " Pending per fuzzer : $((TOTAL_PFAV/ALIVE_CNT)) faves, $((TOTAL_PENDING/ALIVE_CNT)) total (on average)"
+ fi
fi
echo " Coverage reached : ${TOTAL_COVERAGE}%"