Skip to main content

Opts

Struct Opts 

Source
pub struct Opts {
Show 32 fields pub domain: Vec<String>, pub domain_file: Option<String>, pub stdin: bool, pub exclude_domain: Vec<String>, pub exclude_domain_file: Option<String>, pub list_network: bool, pub resolvers: Vec<String>, pub resolver_file: Option<String>, pub slient: bool, pub file: Option<String>, pub skip_wildcard: bool, pub network_test: bool, pub target_ip: String, pub bandwidth: String, pub verify: bool, pub retry: u8, pub dns_timeout: u64, pub wait_seconds: u64, pub verify_timeout: u64, pub verify_concurrency: usize, pub resolve_records: bool, pub cdn_detect: bool, pub no_cdn_detect: bool, pub cdn_collapse: bool, pub no_cdn_collapse: bool, pub query_types: Vec<QueryType>, pub device: Option<String>, pub transport: PacketTransport, pub output: Option<String>, pub format: String, pub summary: bool, pub raw_records: bool,
}
Available on crate feature cli only.

Fields§

§domain: Vec<String>

need scan domain

§domain_file: Option<String>

load domains from file, one per line

§stdin: bool

read domains from stdin, one per line

§exclude_domain: Vec<String>

exclude domains from scanning

§exclude_domain_file: Option<String>

load excluded domains from file, one per line

§list_network: bool

list network

§resolvers: Vec<String>

DNS resolvers, repeat this flag to provide multiple IPs

§resolver_file: Option<String>

load resolvers from file, one per line

§slient: bool

silent mode, only print discovered domains

§file: Option<String>

dic path

§skip_wildcard: bool

skip wildcard detection and filtering

§network_test: bool

network speed test

§target_ip: String

target IP for network speed test (default: 8.8.8.8)

§bandwidth: String

bandwidth limit (e.g., 256K, 1M, 10G)

§verify: bool

verify mode - check HTTP/HTTPS after domain discovery

§retry: u8

max retry count for timed out DNS queries

§dns_timeout: u64

DNS response timeout in seconds before retry

§wait_seconds: u64

max wait time in seconds after sending queries

§verify_timeout: u64

HTTP/HTTPS verification timeout in seconds

§verify_concurrency: usize

HTTP/HTTPS verification concurrency

§resolve_records: bool

resolve DNS records (A, CNAME, NS, etc.)

§cdn_detect: bool

enable CDN detection in aggregated asset view

§no_cdn_detect: bool

disable CDN detection in aggregated asset view

§cdn_collapse: bool

collapse CDN-backed A/AAAA records into a single representative value

§no_cdn_collapse: bool

keep all CDN-backed A/AAAA records in aggregated view

§query_types: Vec<QueryType>

query types to send (comma separated, e.g. a,aaaa,cname)

§device: Option<String>

manually specify network device

§transport: PacketTransport

network transport mode

§output: Option<String>

output file path

§format: String

output format (json, xml, csv, txt)

§summary: bool

show summary statistics

§raw_records: bool

print raw DNS records instead of aggregated host view

Trait Implementations§

Source§

impl Args for Opts

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

impl CommandFactory for Opts

Source§

fn command<'b>() -> Command

Build a Command that can instantiate Self. Read more
Source§

fn command_for_update<'b>() -> Command

Build a Command that can update self. Read more
Source§

impl Debug for Opts

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Opts

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Parser for Opts

Source§

fn parse() -> Self

Parse from std::env::args_os(), exit on error.
Source§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
Source§

fn parse_from<I, T>(itr: I) -> Self
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, exit on error.
Source§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
Source§

fn update_from<I, T>(&mut self, itr: I)
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, exit on error. Read more
Source§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for Opts

§

impl RefUnwindSafe for Opts

§

impl Send for Opts

§

impl Sync for Opts

§

impl Unpin for Opts

§

impl UnsafeUnpin for Opts

§

impl UnwindSafe for Opts

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more