#[non_exhaustive]pub struct IdleScan {
pub zombie: IpAddr,
pub zombie_port: Option<u16>,
}Expand description
A third party whose IP-ID counter an idle scan reads to learn a target’s ports without addressing the target from the scanner’s own address.
The idle (or zombie) scan is the quietest technique this engine has. Its probes carry the zombie’s source address, so the target answers the zombie. The result is read from the zombie’s global IP-ID counter, which advances by one for every packet the zombie sends: read the counter, forge a probe, read it again. An open port drew an answer the zombie had to reset, advancing the counter an extra step; a closed or unreached one did not.
So the zombie must have a single shared IP-ID counter, and the forged probe needs a self-built Ethernet frame to carry a source address the kernel would not choose. A scan that cannot have both is refused; see the idle port scanner.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.zombie: IpAddrThe zombie’s address.
It must have a single global IP-ID counter (a counting generator, in the terms the OS-detection series uses), and be idle enough that its counter moves for this scan’s probes and little else. The scan qualifies the zombie first and refuses an unsuitable one with the counter class it found.
zombie_port: Option<u16>A port on the zombie to probe for its counter, or None for the engine’s
default.
An unsolicited SYN/ACK draws a reset whether the port is open or closed, so any port works as long as the zombie’s own filter does not drop the probe.
Implementations§
Trait Implementations§
impl Copy for IdleScan
impl Eq for IdleScan
impl StructuralPartialEq for IdleScan
Auto Trait Implementations§
impl Freeze for IdleScan
impl RefUnwindSafe for IdleScan
impl Send for IdleScan
impl Sync for IdleScan
impl Unpin for IdleScan
impl UnsafeUnpin for IdleScan
impl UnwindSafe for IdleScan
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