aboutsummaryrefslogtreecommitdiff
path: root/afl-cmin.bash
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-04-25 11:56:50 +0200
committervanhauser-thc <vh@thc.org>2023-04-25 11:56:50 +0200
commitbc969f78f634035abf88bc73a5076848660901e7 (patch)
tree8a395613433680dfb97056f2a11c2a6d31cb6ddb /afl-cmin.bash
parent7b877e2c1d96efa7486ef4ba7860bec58dd1cd5b (diff)
downloadafl++-bc969f78f634035abf88bc73a5076848660901e7.tar.gz
fixes
Diffstat (limited to 'afl-cmin.bash')
-rwxr-xr-xafl-cmin.bash9
1 files changed, 7 insertions, 2 deletions
diff --git a/afl-cmin.bash b/afl-cmin.bash
index ba7083fa..0e2d973d 100755
--- a/afl-cmin.bash
+++ b/afl-cmin.bash
@@ -316,12 +316,16 @@ if [ ! "$T_ARG" = "" ]; then
if [ "$T_ARG" = "all" ]; then
THREADS=$(nproc)
else
- if [ "$T_ARG" -gt 0 -a "$T_ARG" -le "$(nproc)" ]; then
+ if [ "$T_ARG" -gt 1 -a "$T_ARG" -le "$(nproc)" ]; then
THREADS=$T_ARG
else
- echo "[-] Error: -T parameter must between 1 and $(nproc) or \"all\"." 1>&2
+ echo "[-] Error: -T parameter must between 2 and $(nproc) or \"all\"." 1>&2
fi
fi
+else
+ if [ "$F_ARG" = ""]; then
+ echo "[*] Are you aware of the '-T all' parallelize option that massively improves the speed?"
+ fi
fi
IN_COUNT=$((`ls -- "$IN_DIR" 2>/dev/null | wc -l`))
@@ -332,6 +336,7 @@ if [ "$IN_COUNT" = "0" ]; then
exit 1
fi
+echo "[*] Are you aware that afl-cmin is faster than this afl-cmin.bash script?"
echo "[+] Found $IN_COUNT files for minimizing."
FIRST_FILE=`ls "$IN_DIR" | head -1`