pub struct ScanCommand {Show 23 fields
pub file: PathBuf,
pub db_path: PathBuf,
pub timeout_seconds: u64,
pub max_concurrency: usize,
pub rate_limit_rps: u32,
pub no_whois: bool,
pub geoip: Option<String>,
pub scan_external_scripts: bool,
pub fail_on: FailOn,
pub verbosity: Verbosity<InfoLevel>,
pub log_level: LogLevel,
pub log_format: LogFormat,
pub log_file: PathBuf,
pub no_progress: bool,
pub fail_on_pct_threshold: u8,
pub config: Option<PathBuf>,
pub user_agent: String,
pub fingerprints: Option<String>,
pub allow_degraded_fingerprints: bool,
pub status_port: Option<u16>,
pub cache_dir: Option<PathBuf>,
pub drain_timeout_secs: u64,
pub enable_whois: bool,
}Expand description
Scan command arguments.
Everyday flags are on -h. All flags (except the legacy --enable-whois alias)
are on --help.
Fields§
§file: PathBufURL list (one URL per line). Use - for stdin.
db_path: PathBuf§timeout_seconds: u64§max_concurrency: usize§rate_limit_rps: u32URL admission rate (tokens per input URL per second). 0 disables
both the global cap and the 2/sec per-host cap.
Not per-HTTP-request RPS: redirects, favicon, TLS, and WHOIS share one token per input URL. When enabled, each host is also limited to 2 URL tokens/sec.
no_whois: boolDisable WHOIS/RDAP (on by default).
Overrides TOML/env enable_whois = true.
geoip: Option<String>GeoIP MMDB path or URL. Or set MAXMIND_LICENSE_KEY for GeoLite2 download.
scan_external_scripts: boolFetch first-party external script bodies (secrets + static tech). Off by default.
Only scripts on the same registrable domain as the page are fetched (known third-party CDNs are skipped). Fetches are capped at 10 scripts per page, size/timeout limited, and SSRF-validated like the primary URL. Off by default because it expands the threat surface and adds per-URL latency.
fail_on: FailOnCI exit policy when some URLs fail (never, any-failure, pct>).
verbosity: Verbosity<InfoLevel>§log_level: LogLevelBaseline log level; overridden by -v / -q (preferred for quick changes).
log_format: LogFormatFormat for scan --log-file and for export/summary stderr.
plain in the scan file is uncolored; export/summary stderr plain uses colors.
log_file: PathBuf§no_progress: boolHide the terminal progress bar (still logs progress to --log-file).
fail_on_pct_threshold: u8§config: Option<PathBuf>§user_agent: String§fingerprints: Option<String>§allow_degraded_fingerprints: boolStart the scan even if the full Enthec + HTTPArchive catalog cannot be loaded.
Default is to abort so technology detection is not silently thin.
status_port: Option<u16>§cache_dir: Option<PathBuf>Shared cache root for fingerprints, GeoIP, WHOIS, and User-Agent data.
Defaults to $DOMAIN_STATUS_CACHE_DIR or the platform cache dir +
domain_status/ (Linux ~/.cache/…, macOS ~/Library/Caches/…).
Database and log paths are separate.
drain_timeout_secs: u64Maximum time (seconds) to wait for in-flight tasks to finish after the
input queue is exhausted. Tasks still running after this window are
aborted and recorded in url_failures with the timeout reason.
Raise this for WHOIS-heavy small batches if scans report drain timeouts.
enable_whois: boolEnable WHOIS/RDAP (on by default). Prefer --no-whois to disable.
Kept for backward compatibility with scripts that pass --enable-whois.
Trait Implementations§
Source§impl Args for ScanCommand
impl Args for ScanCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for ScanCommand
impl Clone for ScanCommand
Source§impl CommandFactory for ScanCommand
impl CommandFactory for ScanCommand
Source§impl Debug for ScanCommand
impl Debug for ScanCommand
Source§impl FromArgMatches for ScanCommand
impl FromArgMatches for ScanCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.