Skip to content

reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities

fix(02): CR-03 warn loudly in verify_sha256 when no hash tool is found

six2dez574b8b09089b
diff --git a/install.sh b/install.sh
index d2f54b4..5f19b1a 100755
--- a/install.sh
+++ b/install.sh
@@ -95,7 +95,8 @@ verify_sha256() {
elif command -v shasum >/dev/null 2>&1; then
actual=$(shasum -a 256 "$file" | awk '{print $1}')
else
- return 0 # no hashing tool available; skip (don't block install)
+ printf '[WARN] verify_sha256: no sha256sum or shasum found; skipping integrity check for %s\n' "$file" >&2
+ return 0 # preserve backward compat but warn loudly
fi
[[ -n "$actual" && "$actual" == "$expected" ]]