77fa726f31
MAJOR IMPROVEMENTS: 1. Added adaptive compact/verbose display mode 2. Fixed SSH BRUTEFORCE not showing in Attack Vectors section BUG FIX: Attack Vectors missing SSH attacks PROBLEM: - Attack Vectors section was usually empty - SSH BRUTEFORCE attacks were tracked but NOT displayed - ATTACK_TYPE_COUNTER only populated from web attacks - SSH attacks only updated IP_ATTACK_VECTORS (internal tracking) FIX: - Added ((ATTACK_TYPE_COUNTER["BRUTEFORCE"]++)) when SSH attack detected - Now SSH bruteforce attempts show in Attack Vectors display - Line 1757: Update counter when BRUTEFORCE added to attack list NEW FEATURE: Compact Mode PROBLEM: - Dashboard needs 40+ lines but terminals are typically 24 lines - Content runs off screen during attacks - Empty Attack Vectors section wastes space SOLUTION: Adaptive Display Modes ┌─────────────────────────────────────────────────────────────┐ │ COMPACT MODE (default): │ │ - Top 5 threats (was 10) │ │ - 8 live feed events (was 20) │ │ - Attack Vectors hidden (saves 4-6 lines) │ │ - Fits 24-line terminal perfectly │ │ - Press 'v' to switch to verbose │ ├─────────────────────────────────────────────────────────────┤ │ VERBOSE MODE: │ │ - Top 10 threats │ │ - 20 live feed events │ │ - Attack Vectors section shown │ │ - Full details for large terminals │ │ - Press 'v' to switch to compact │ └─────────────────────────────────────────────────────────────┘ CHANGES: - Line 50-51: Added COMPACT_MODE=1, TERMINAL_HEIGHT detection - Line 1042: Adaptive IP count (5 compact, 10 verbose) - Line 1107: Skip Attack Vectors entirely in compact mode - Line 1131: Adaptive feed lines (8 compact, 20 verbose) - Line 1252-1256: Show mode-specific key options - Line 2713-2720: Add 'v' key handler to toggle mode UI IMPROVEMENTS: - Keys shown adapt to mode: * Compact: 'b' Block | 'c' Security | 'v' Verbose | 'r' Refresh | 'q' Quit * Verbose: 'b' Block | 'c' Security | 'v' Compact | 's' Stats | 'q' Quit - No scrolling needed in compact mode - All critical info always visible - Better for SSH sessions over slow connections IMPACT: - ✓ No more off-screen content in standard terminals - ✓ SSH bruteforce now visible in Attack Vectors - ✓ Faster to scan (information density optimized) - ✓ Works on any terminal size - ✓ Toggle on demand without restart TESTED: - Syntax validation: ✓ Passed - Mode toggle: ✓ Works - Display adapts correctly: ✓ Verified 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>