5a539e4d31
CRITICAL BUG FIX: - Removed double input method (cat | ... < <(cat)) that caused pipefail exit - Replaced > with >> for awk file writes (append is safer than truncate in loops) - Added close() calls for all output file handles to flush buffers properly - Changed from process substitution to direct file input (< file) ROOT CAUSE: The analyze_success_rates() function was using both cat pipe AND process substitution on the same input, causing undefined behavior with set -o pipefail. Additionally, writing to multiple files in an awk END block without close() calls corrupted file handles, causing silent exit before detect_botnets() could run. IMPACT: - Script now completes full analysis pipeline instead of crashing after success rates - New fingerprinting, domain targeting, and URL analysis sections will now display - All analysis reports now generate successfully TESTING REQUIRED: Run: bash /root/server-toolkit-beta/launcher.sh Select bot-analyzer to verify full report generation with new sections