aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHardik Shah <hardik05@gmail.com>2023-04-08 17:57:08 +0530
committerGitHub <noreply@github.com>2023-04-08 17:57:08 +0530
commit35151cefe8e96451da9a6a25cae2181178ef53d6 (patch)
tree892234c6fbe63f82612faa842539f8dcd3596dcc
parent7101192865893e00b9029d0cb898a3ca3015d50b (diff)
downloadafl++-35151cefe8e96451da9a6a25cae2181178ef53d6.tar.gz
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