Overview
Input options define which hosts to scan and which to exclude. You can specify targets individually, from files, or via standard input.Target Specification
Hosts to scan ports for. Accepts comma-separated values.Examples:
File containing list of hosts to scan (one per line).File format:Example:
Standard Input
You can also pipe targets via stdin:Exclusions
Hosts to exclude from the scan (comma-separated).Useful for skipping specific IPs or ranges within a larger target set.Examples:
File containing list of hosts to exclude from scan (one per line).File format:Example:
Combining Options
You can combine multiple input methods:Input Validation
- Invalid hostnames or IP addresses are automatically filtered
- DNS resolution is performed for domain names
- Private IP ranges are supported
- IPv4 addresses are fully supported
Best Practices
- Use files for large target lists - More manageable than command-line arguments
- Maintain exclusion lists - Keep a file of hosts that should never be scanned
- Verify targets first - Use
pingor basic checks before full scans - Use CIDR notation - More efficient than listing individual IPs
- Comment your target files - Document why hosts are included (though comments aren’t parsed)
Related Options
- Port Options - Define which ports to scan
- Scan Options - Additional scan configuration like
-scan-all-ips