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
Shell bug-bountybugbountybugbounty-tooldnshackingnucleiosintpenetration-testingpentestpentest-toolpentestingreconreconnaissancescannersecuritysecurity-toolssubdomainsubdomain-enumerationvulnerabilities
fix: timing summary arithmetic error with function names
six2dezd9584917374b
diff --git a/modules/core.sh b/modules/core.shindex afe7f48..83f0901 100644--- a/modules/core.sh+++ b/modules/core.sh@@ -952,15 +952,22 @@ function print_timing_summary() {local total=0local fn dur+ local -a sorted_entries=()- # Collect and sort by duration (descending)+ # First pass: calculate total and collect entriesfor fn in "${!FUNC_TIMINGS[@]}"; dodur=${FUNC_TIMINGS[$fn]}- total=$((total + dur))- printf "%s %s\n" "$dur" "$fn"- done | sort -rn | while read -r dur fn; do+ # Ensure dur is numeric+ if [[ "$dur" =~ ^[0-9]+$ ]]; then+ total=$((total + dur))+ sorted_entries+=("$dur|$fn")+ fi+ done++ # Sort entries by duration (descending) and print+ printf '%s\n' "${sorted_entries[@]}" | sort -t'|' -k1 -rn | while IFS='|' read -r dur fn; dolocal pct=0- if [[ $total -gt 0 ]]; then+ if [[ $total -gt 0 ]] && [[ "$dur" =~ ^[0-9]+$ ]]; thenpct=$((dur * 100 / total))filocal mins=$((dur / 60))