Overview
Output options control how scan4all saves and formats scan results. You can export data in multiple formats for further analysis, reporting, or integration with other tools.Output Configuration
File path to write scan results.If not specified, results are only displayed on stdout. The output format depends on the format flags used (
-json, -csv).Examples:The output file is created or overwritten. Ensure you have write permissions for the specified path.
Write output in JSON Lines format.Each line in the output file is a valid JSON object representing a discovered service or finding. This format is ideal for programmatic processing and integration with other tools.JSON Output Structure:Examples:
Write output in CSV (Comma-Separated Values) format.Results are formatted as CSV for easy import into spreadsheets, databases, or analysis tools.CSV Output Structure:Examples:
Output Formats
Text Format (Default)
When no format flag is specified, results are output in human-readable text format:JSON Lines Format
Structured data with one JSON object per line:CSV Format
Tabular data with headers:Output Processing Examples
Processing JSON Output
Processing CSV Output
Processing Text Output
Combining with Other Options
Silent Output Mode
Verbose with File Output
Stream Mode Output
Output Locations
Current Directory
Absolute Path
Home Directory
Temporary Directory
Best Practices
- Always save results: Use
-ofor important scans to preserve findings - Use descriptive names: Include target, date, or scan type in filenames
- Choose appropriate format:
- Text for quick review
- JSON for automation
- CSV for reporting and analysis
- Organize outputs: Create directory structure for different scan types
- Archive results: Keep historical scan data for comparison
- Secure output files: Scan results may contain sensitive information
- Check disk space: Large scans can generate substantial output
Output Organization Example
Troubleshooting
No Output File Created
- Check file path and permissions
- Ensure parent directory exists
- Verify disk space availability
Empty Output File
- No open ports found
- Scan failed or was interrupted
- Check with
-vor-debugflags
Incomplete Output
- Scan was interrupted
- Use
-resumeto continue - Check with
-statsfor progress
Format Issues
- Verify format flag is specified (
-jsonor-csv) - Check for proper command syntax
- Ensure no conflicting flags
Related Options
- Debug Options - Control console output with
-silent,-verbose - Scan Options - Use
-streammode for real-time output