Overview
Debug options help you monitor scan progress, troubleshoot issues, and control the amount of information displayed during execution.Verbosity Control
Display verbose output with detailed information about scan operations.Shows additional details including:
- Scan phase transitions
- Port discovery events
- Service detection attempts
- HTTP analysis progress
- Error messages and warnings
Display debugging information for development and troubleshooting.Provides the most detailed output including:
- Internal state information
- Network packet details
- Library debug messages
- Configuration parameters
- Detailed error traces
Display only results in output, suppressing all other messages.Silent mode removes:
- Banner and version info
- Progress indicators
- Status messages
- Warnings
- Summary statistics
Output Formatting
Disable colored output in CLI.Removes ANSI color codes from output. Automatically enabled on Windows systems.Example:
Automatically enabled on Windows. Use this flag on Unix systems when redirecting output to files or when color codes cause display issues.
Progress Monitoring
Display real-time statistics during scan execution.Shows periodic updates including:
- Number of hosts scanned
- Ports checked
- Open ports found
- Elapsed time
- Estimated time remaining
- Current scan rate
Number of seconds between statistics updates.Controls how frequently progress statistics are displayed when
-stats is enabled.Range: 1-300 seconds (practical range: 5-60)Examples:Lower intervals provide more frequent updates but can clutter output. Higher intervals are better for very long scans.
Version Information
Display the version of scan4all and exit.Shows the current version number without performing any scanning.Example:Output:
Verbosity Levels Comparison
Silent Mode (-silent)
Normal Mode (Default)
Verbose Mode (-v)
Debug Mode (-debug)
Common Debug Scenarios
Troubleshooting Connection Issues
Monitoring Large Scans
Scripting and Automation
Performance Analysis
File Logging
Output Redirection Examples
Save All Output
Save Only Results
Separate Results and Logs
Real-time Monitoring and Saving
Combining Debug Options
Production Scan (Minimal Output)
Development Testing
Monitored Long Scan
Quiet Background Scan
Performance Monitoring
When using-stats, you’ll see updates like:
- Hosts: Scanned / Total hosts
- Ports: Checked / Total ports
- Open: Number of open ports found
- Time: Elapsed time
- ETA: Estimated time remaining
- Rate: Current packets per second
Best Practices
-
Use appropriate verbosity:
- Silent for automation
- Normal for interactive use
- Verbose for troubleshooting
- Debug only when necessary
- Enable stats for long scans: Monitor progress and estimate completion
-
Disable colors for logs: Use
-ncwhen saving to files -
Combine with output files: Use
-oeven with-silentor-v -
Adjust stats interval: Match to scan duration
- Short scans: 2-5 seconds
- Medium scans: 5-15 seconds
- Long scans: 30-60 seconds
- Redirect appropriately: Separate stdout and stderr when needed
- Use silent mode for pipelines: When chaining with other tools
Troubleshooting with Debug Options
No Results Returned
Slow Performance
Unexpected Behavior
Parsing Errors in Scripts
Related Options
- Output Options - Control result formatting and file output
- Scan Options - Use
-streamfor real-time output - Rate Limit Options - Optimize performance based on stats feedback