You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: major improvements - utilities consolidation, configurable timeouts, raw results
## Code Quality Improvements
### Consolidated Utility Functions
- Created `internal/modules/utils/file.go` with centralized WriteLines/ReadLines
- Removed duplicate writeLines from domain.go, subdomain.go, urls.go (52 lines removed)
- Single source of truth for file operations improves maintainability
### Configurable Phase Timeouts
- Added environment variables: AUTOAR_TIMEOUT_MISCONFIG, AUTOAR_TIMEOUT_NUCLEI, AUTOAR_TIMEOUT_DEFAULT
- Updated env.example with timeout configuration documentation
- Modified domain.go and subdomain.go to read timeouts from environment
- Timeouts now configurable per environment without code changes
### Raw Results Instead of Summaries
- DNS module: sends ALL raw files (dnsreaper-results.txt, nuclei-takeover-*.txt, ns-*.txt, etc.)
- Nuclei module: excludes nuclei-summary.txt, sends only raw result files
- Complete visibility into scan findings, no information loss
## Bug Fixes
### Fixed Cleanup Command Registration
- Removed cleanup command from commands list (was causing 404 error on bot startup)
- Command properly removed from Discord without errors
### Fixed S3 Scan Subdomain Directory
- Added Subdomain parameter to S3 scan call in subdomain workflow
- S3 results now correctly saved to subdomain-specific directory
### Fixed DNS GetPhaseFiles Path
- Updated GetPhaseFiles to check both subdomain and root domain directories
- DNS results now correctly found and sent to Discord
### Fixed WordPress Confusion Empty File
- Moved empty file creation logic outside vulnerability check
- WordPress results always sent to Discord, even when no vulnerabilities found
## Documentation
- Updated README.md with timeout configuration environment variables
- Added comprehensive table documenting AUTOAR_TIMEOUT_* variables
## Impact
- 52 lines of duplicate code removed
- Zero breaking changes
- Backward compatible with existing configurations
- Enhanced user experience with complete raw results
- Improved maintainability and configurability
Files changed: 30+
Lines added: ~100
Lines removed: ~60
0 commit comments