pub struct SocketProbe {
pub name: String,
pub host: String,
pub port: Option<u16>,
pub payload: Option<Vec<u8>>,
pub tls: bool,
pub session: bool,
pub read_max: u32,
pub read_idle_ms: u32,
}Expand description
Generic socket probe fields shared by dns, tcp, and udp.
Fields§
§name: StringThe probe’s name, used to reference its response (p.response).
host: StringTarget host. May be a {{ var }} placeholder such as {{scan_host}},
resolved from the scan target at send time.
port: Option<u16>Target port. None on a dns probe means resolver mode (ask the system
resolver) rather than a wire-protocol query to a specific port.
payload: Option<Vec<u8>>UTF-8 text or raw bytes (from payload "..." or payload "aabbcc" hex).
tls: boolWrap the connection in TLS.
session: boolKeep the connection open after this probe so later sends to the same probe reuse it, instead of reconnecting.
read_max: u32Maximum number of response bytes to read.
read_idle_ms: u32How long to wait for more data, in milliseconds, before treating the response as complete.
Trait Implementations§
Source§impl Clone for SocketProbe
impl Clone for SocketProbe
Source§fn clone(&self) -> SocketProbe
fn clone(&self) -> SocketProbe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SocketProbe
impl Debug for SocketProbe
Source§impl PartialEq for SocketProbe
impl PartialEq for SocketProbe
impl StructuralPartialEq for SocketProbe
Auto Trait Implementations§
impl Freeze for SocketProbe
impl RefUnwindSafe for SocketProbe
impl Send for SocketProbe
impl Sync for SocketProbe
impl Unpin for SocketProbe
impl UnsafeUnpin for SocketProbe
impl UnwindSafe for SocketProbe
Blanket Implementations§
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
Mutably borrows from an owned value. Read more