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): WR-03 separate cat from wc in process_results fallback path

six2dez2b0bcf197234
diff --git a/lib/common.sh b/lib/common.sh
index a397f55..71f4cfd 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -760,7 +760,10 @@ process_results() {
if command -v anew &>/dev/null; then
count=$(anew "$output" < "$input" 2>/dev/null | sed '/^$/d' | wc -l | tr -d ' ')
else
- count=$(cat "$input" >> "$output" && wc -l < "$input" | tr -d ' ')
+ # Fallback: no dedup — append all and count non-empty input lines
+ # (may overcount duplicates already present in output)
+ cat "$input" >> "$output" 2>/dev/null
+ count=$(sed '/^$/d' "$input" | wc -l | tr -d ' ')
fi
fi