whatwaf 1.9.1

Heuristic web application firewall (WAF) detector.
Documentation
use clap::Parser;

#[derive(Parser, Debug)]
#[command(name = "whatwaf", version)]
pub struct Args {
    /// Target URL to check
    pub url: Option<String>,

    /// Per-request timeout in seconds
    #[arg(short = 'T', long = "timeout", default_value_t = 10)]
    pub timeout: u64,

    // Follow redirects
    #[arg(short = 'L', long = "location", default_value_t = false)]
    pub location: bool,

    /// Route requests via this proxy
    #[arg(short = 'x', long = "proxy")]
    pub proxy: Option<String>,

    /// List recognized WAFs
    #[arg(short = 'l', long = "list", default_value_t = false)]
    pub list: bool,
}