#[non_exhaustive]pub enum ScannerKind {
Show 19 variants
Local,
Passive,
Routed,
RoutedSctp,
SynPort,
TcpPort,
Connect,
ConnectUdp,
UdpPort,
SctpPort,
OsEcho,
OsSeries,
OsSnmp,
Idle,
Composite,
Service,
Detection,
Journal,
Resolver,
}Expand description
Which scanning strategy a ScanEvent::ScannerFailed refers to.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Local
Layer-2 discovery (ARP/NDP) on a local segment.
Passive
Reading a link’s own traffic, having sent nothing.
Sends nothing, so sends_attempted is always zero, and a quiet run means a quiet
segment, not an absent host.
Routed
Raw TCP SYN discovery for gateway-routed targets.
RoutedSctp
The same sweep asking over SCTP: one INIT per address, for a scan whose ports name SCTP.
Separate from Routed: a host behind a filter that passes SCTP
and drops TCP answers only this.
SynPort
Raw TCP SYN port scanning (the port-scan phase, distinct from Routed
host discovery).
TcpPort
Raw TCP port scanning with a probe that is not a SYN - a FIN, a flagless segment, a bare ACK.
The same scanner as SynPort, named apart because no half-open connection was
attempted. The technique is in the phase’s settings.
Connect
Unprivileged TCP connect fallback, for both host discovery and port scanning.
ConnectUdp
Unprivileged UDP fallback.
Separate from Connect, so a report says which half of an unprivileged scan
failed.
UdpPort
Privileged raw UDP port scanning.
SctpPort
Privileged raw SCTP port scanning: an INIT chunk per port, classified by the chunk that answers it.
No unprivileged fallback and no service pass, so its failure means the SCTP ports went unprobed.
OsEcho
The active operating-system echo probe, sent at the hosts the passive sources could not name.
Establishes no port state; it asks which stack answers the ping.
OsSeries
The active operating-system series probe: one host asked the same question several times, so the policies behind its counters become visible.
Sends the same segment as SynPort but revisits settled ports, and no reply
changes a port’s state.
OsSnmp
The active operating-system management probe: one SNMP GetRequest at a
host whose kernel is not otherwise known.
Establishes no port state; the answer is filed against the host.
Idle
The idle (zombie) TCP port scan: port states read off a third party’s IP-ID counter rather than from any reply the target sent this scanner.
Separate from SynPort: verdicts are only Open or
ClosedOrNoReply, and a run is refused without a suitable zombie or an Ethernet
path.
Composite
Composite scanner that delegates to protocol-specific scanners.
Service
The service-identification pass, which opens a connection to each open port a raw scan classified without ever holding one, and the same identification made inline over the connection a connect scan found a port open on, wherever what it left is about services rather than states.
Separate from Connect: a connect failure loses port states; this losing
work leaves states standing and services unidentified.
Detection
The detection pass, which runs the authored corpus over the services the scan identified.
Separate from Service, since it can fail alone and lose only findings.
Journal
The journal a scan was writing itself into.
Not a strategy; here because failures are the channel every consumer reads. A failed checkpoint costs only what a resume would have skipped.
Resolver
The hostname resolver a scan names its hosts with: the passive one that reads a link’s DNS and mDNS, or the reverse lookups asked of the system’s resolver.
Loses only names; without this, missing hostnames would read as hosts that have none.
Implementations§
Source§impl ScannerKind
impl ScannerKind
Sourcepub const ALL: &'static [Self]
pub const ALL: &'static [Self]
Every strategy this build knows, in declaration order. Checked against the published schema.
Sourcepub const fn for_raw_tcp(technique: TcpScanTechnique) -> Self
pub const fn for_raw_tcp(technique: TcpScanTechnique) -> Self
What a raw TCP scan carrying technique reports itself as.
Shared by the plan and the running scanner, so a strategy files its failures under one name.
Trait Implementations§
Source§impl Clone for ScannerKind
impl Clone for ScannerKind
impl Copy for ScannerKind
Source§impl Debug for ScannerKind
impl Debug for ScannerKind
impl Eq for ScannerKind
Source§impl PartialEq for ScannerKind
impl PartialEq for ScannerKind
impl StructuralPartialEq for ScannerKind
Auto Trait Implementations§
impl Freeze for ScannerKind
impl RefUnwindSafe for ScannerKind
impl Send for ScannerKind
impl Sync for ScannerKind
impl Unpin for ScannerKind
impl UnsafeUnpin for ScannerKind
impl UnwindSafe for ScannerKind
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more