aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2023-04-08 14:42:08 +0200
committerGitHub <noreply@github.com>2023-04-08 14:42:08 +0200
commitabd6b06fa46281757e4017678d56cfca238c8428 (patch)
treef2a433292f2e62937e2f01d74002533b3441b36a
parent75d7a094691550afe86519a1d669def0d698b5ce (diff)
parent35151cefe8e96451da9a6a25cae2181178ef53d6 (diff)
downloadafl++-abd6b06fa46281757e4017678d56cfca238c8428.tar.gz
Merge pull request #1693 from hardik05/patch-1
display instance name
-rwxr-xr-xafl-whatsup5
1 files changed, 3 insertions, 2 deletions
diff --git a/afl-whatsup b/afl-whatsup
index 5546523a..2f5c9675 100755
--- a/afl-whatsup
+++ b/afl-whatsup
@@ -141,7 +141,8 @@ for i in `find . -maxdepth 2 -iname fuzzer_stats | sort`; do
sed 's/^command_line.*$/_skip:1/;s/[ ]*:[ ]*/="/;s/$/"/' "$i" >"$TMP"
. "$TMP"
-
+ DIR=$(dirname "$i")
+ DIR=${DIR##*/}
RUN_UNIX=$run_time
RUN_DAYS=$((RUN_UNIX / 60 / 60 / 24))
RUN_HRS=$(((RUN_UNIX / 60 / 60) % 24))
@@ -154,7 +155,7 @@ for i in `find . -maxdepth 2 -iname fuzzer_stats | sort`; do
if [ "$SUMMARY_ONLY" = "" ]; then
- echo ">>> $afl_banner ($RUN_DAYS days, $RUN_HRS hrs) fuzzer PID: $fuzzer_pid <<<"
+ echo ">>> $afl_banner instance: $DIR ($RUN_DAYS days, $RUN_HRS hrs) fuzzer PID: $fuzzer_pid <<<"
echo
fi