Overview
Scan options control the fundamental behavior of scan4all, including scan type, network configuration, external tool integration, and operational modes.Scan Type
Type of port scan technique to use.Values:
s- SYN scan (half-open scan, requires root/admin privileges)c- CONNECT scan (full TCP connection, no special privileges required)
Network Configuration
Source IP address to use in outgoing TCP packets.Useful when the scanning machine has multiple network interfaces and you want to specify which IP to use for scanning.Example:
Network interface to use for port scanning.Specify which network adapter to use for sending packets. Useful on systems with multiple network interfaces.Examples:
List all available network interfaces and public IP address, then exit.Useful for determining which interface to use with the Output includes:
-i flag.Example:- Interface names
- MAC addresses
- IP addresses
- MTU values
- Interface flags
- External/public IP
DNS Resolution
Scan all IP addresses associated with a DNS record.When a domain has multiple A records (DNS round-robin), this option scans all resolved IPs instead of just the first one.Example:
Custom DNS resolvers for domain name resolution.Provide comma-separated DNS server addresses or a file containing resolver addresses. Useful for using specific DNS servers or bypassing local DNS.Examples:Resolver file format:
Proxy Support
SOCKS5 proxy address for routing scan traffic.Route scan traffic through a SOCKS5 proxy server. Useful for scanning from different geographic locations or through authorized access points.Format:
host:port or socks5://host:portExamples:Only SOCKS5 protocol is supported. HTTP/HTTPS proxies are not supported.
Nmap Integration
Invoke nmap scan on discovered open ports.Status: Deprecated - Use
-nmap-cli instead.Automatically runs basic nmap scans on hosts with open ports for detailed service detection.Example:Custom nmap command to execute on scan results.Specify the exact nmap command line to run on targets with discovered open ports. Provides full control over nmap options.Examples:
Vulnerability Scanning
Ceye.io API key for out-of-band vulnerability detection.Ceye.io is a service for detecting blind vulnerabilities through DNS and HTTP callbacks.Example:
Ceye.io subdomain for receiving callbacks.Your unique Ceye.io identifier for DNS/HTTP monitoring.Example:
Skip POC (Proof of Concept) vulnerability checks.Disables the vulnerability scanning phase, performing only port scanning and service detection.Example:
Operational Modes
Resume a previously interrupted scan.scan4all saves scan state to
resume.cfg. Use this flag to continue from where the scan stopped.Example:Resume functionality requires that the previous scan was not using
-stream mode.Enable stream mode for real-time results.Stream mode outputs results immediately as they’re discovered. This mode disables:
- Resume capability
- Nmap integration
- Port verification
- Retry logic
- Host shuffling
Display passive port information using Shodan InternetDB API.Query Shodan’s InternetDB for known open ports without performing active scanning. Requires internet connectivity.Example:
Passive mode does not send any packets to the target. It only queries public databases.
Version Management
Update scan4all to the latest version from GitHub releases.Automatically downloads and installs the newest version of scan4all.Example:
Configuration Examples
Stealth Scan with Custom DNS
Comprehensive Scan with Nmap
Fast Reconnaissance
Proxy-Based Scan
Multi-IP Domain Scan
Best Practices
- Use appropriate scan type: SYN for speed, CONNECT for compatibility
- Configure DNS carefully: Custom resolvers for reliability
- Enable stream mode: For large scans or real-time processing
- Use resume capability: For long-running scans that might be interrupted
- Integrate nmap wisely: Only when detailed service detection is needed
- Disable POC checks: When only port enumeration is required
- Check all IPs: Use
-safor load-balanced services
Related Options
- Optimization Options - Fine-tune scan behavior with
-verify,-ping - Debug Options - Monitor scan progress and troubleshoot issues