Skip to main content

Crate scantarget

Crate scantarget 

Source
Expand description

Universal target parsing for security scanners.

§Quick Start

use scantarget::Target;

let target: Target = "https://example.com".parse().unwrap();
assert!(matches!(target, Target::Url(_)));

let domain: Target = "example.com".parse().unwrap();
assert!(matches!(domain, Target::Domain(_)));

Re-exports§

pub use crate::expand::expand_all;
pub use crate::expand::expand_cidr;
pub use crate::list::TargetList;
pub use crate::list::TargetListError;
pub use crate::target::Target;
pub use crate::target::TargetParseError;

Modules§

expand
CIDR expansion utilities. CIDR expansion utilities.
list
Target list loading and management.
target
Target parsing and representation.

Traits§

TargetSource
Trait for any source of scan targets.

Functions§

parse
Parse a single target string.
parse_many
Parse multiple targets from a newline-separated string.