HostProperties

Struct HostProperties 

Source
pub struct HostProperties<'input> {
Show 54 fields pub host_ip: IpAddr, pub host_start: &'input str, pub host_start_timestamp: Timestamp, pub host_end: Option<&'input str>, pub host_end_timestamp: Option<Timestamp>, pub apache_sites: Option<Cow<'input, str>>, pub bios_uuid: Option<&'input str>, pub credentialed_scan: Option<bool>, pub ddi_dir_scanner_global_duration: Option<u32>, pub ddi_dir_scanner_global_init: Option<Timestamp>, pub dead_host: Option<bool>, pub host_ad_config: Option<Cow<'input, str>>, pub host_fqdn: Option<Cow<'input, str>>, pub host_fqdns: Option<Cow<'input, str>>, pub host_rdns: Option<Cow<'input, str>>, pub hostname: Option<&'input str>, pub ignore_printer: Option<bool>, pub iis_sites: Option<Cow<'input, str>>, pub last_authenticated_results: Option<Timestamp>, pub last_unauthenticated_results: Option<Timestamp>, pub local_checks_proto: Option<&'input str>, pub netbios_name: Option<Cow<'input, str>>, pub operating_system: Option<&'input str>, pub operating_system_conf: Option<i32>, pub operating_system_method: Option<&'input str>, pub operating_system_unsupported: Option<bool>, pub os: Option<&'input str>, pub patch_summary_total_cves: Option<u32>, pub policy_used: Option<Cow<'input, str>>, pub rexec_login_used: Option<&'input str>, pub rlogin_login_used: Option<&'input str>, pub rsh_login_used: Option<&'input str>, pub smb_login_used: Option<&'input str>, pub ssh_login_used: Option<&'input str>, pub telnet_login_used: Option<&'input str>, pub sinfp_ml_prediction: Option<Cow<'input, str>>, pub sinfp_signature: Option<&'input str>, pub ssh_fingerprint: Option<Cow<'input, str>>, pub system_type: Option<&'input str>, pub wmi_domain: Option<&'input str>, pub mac_address: Vec<MacAddress>, pub cpe: Vec<Cow<'input, str>>, pub traceroute: Vec<Option<IpAddr>>, pub netstat_listen: Vec<(&'input str, u16, &'input str)>, pub netstat_established: Vec<(&'input str, u16, &'input str)>, pub patch_summary_txt: Vec<(&'input str, Cow<'input, str>)>, pub enumerated_ports: Vec<(u16, Protocol, &'input str)>, pub patch_summary_cve_num: Vec<(&'input str, u32)>, pub patch_summary_cves: Vec<(&'input str, Vec<&'input str>)>, pub ddi_dir_scanner_port_init: Vec<(u16, Timestamp)>, pub ddi_dir_scanner_port_pass_start: Vec<(u16, Timestamp)>, pub ddi_dir_scanner_port_duration: Vec<(u16, u32)>, pub ddi_dir_scanner_port_pass_timeout: Vec<(u16, Timestamp)>, pub others: HashMap<&'input str, Vec<Cow<'input, str>>>,
}
Expand description

Represents the <HostProperties> element, a collection of key-value tags containing detailed metadata about a scanned host.

Fields§

§host_ip: IpAddr

The primary IP address of the host (host-ip).

§host_start: &'input str

A timestamp string indicating when the scan of this host began (HOST_START).

§host_start_timestamp: Timestamp

A timestamp indicating when the scan of this host began (HOST_START_TIMESTAMP).

§host_end: Option<&'input str>

A timestamp string indicating when the scan of this host ended (HOST_END).

§host_end_timestamp: Option<Timestamp>

A timestamp indicating when the scan of this host ended (HOST_END_TIMESTAMP).

§apache_sites: Option<Cow<'input, str>>§bios_uuid: Option<&'input str>§credentialed_scan: Option<bool>§ddi_dir_scanner_global_duration: Option<u32>§ddi_dir_scanner_global_init: Option<Timestamp>§dead_host: Option<bool>§host_ad_config: Option<Cow<'input, str>>§host_fqdn: Option<Cow<'input, str>>

The fully qualified domain name of the host (host-fqdn).

§host_fqdns: Option<Cow<'input, str>>§host_rdns: Option<Cow<'input, str>>§hostname: Option<&'input str>§ignore_printer: Option<bool>§iis_sites: Option<Cow<'input, str>>§last_authenticated_results: Option<Timestamp>§last_unauthenticated_results: Option<Timestamp>§local_checks_proto: Option<&'input str>§netbios_name: Option<Cow<'input, str>>§operating_system: Option<&'input str>

The operating system identified on the host (operating-system).

§operating_system_conf: Option<i32>§operating_system_method: Option<&'input str>§operating_system_unsupported: Option<bool>§os: Option<&'input str>§patch_summary_total_cves: Option<u32>§policy_used: Option<Cow<'input, str>>§rexec_login_used: Option<&'input str>§rlogin_login_used: Option<&'input str>§rsh_login_used: Option<&'input str>§smb_login_used: Option<&'input str>§ssh_login_used: Option<&'input str>§telnet_login_used: Option<&'input str>§sinfp_ml_prediction: Option<Cow<'input, str>>§sinfp_signature: Option<&'input str>§ssh_fingerprint: Option<Cow<'input, str>>§system_type: Option<&'input str>

The system type, such as “general-purpose”, “printer”, etc. (system-type).

§wmi_domain: Option<&'input str>§mac_address: Vec<MacAddress>

A list of MAC addresses discovered on the host (mac-address).

§cpe: Vec<Cow<'input, str>>

A list of Common Platform Enumeration (CPE) strings (cpe, cpe-0, etc.).

§traceroute: Vec<Option<IpAddr>>

A list of IP addresses representing the hops in a traceroute to the target.

§netstat_listen: Vec<(&'input str, u16, &'input str)>§netstat_established: Vec<(&'input str, u16, &'input str)>§patch_summary_txt: Vec<(&'input str, Cow<'input, str>)>§enumerated_ports: Vec<(u16, Protocol, &'input str)>§patch_summary_cve_num: Vec<(&'input str, u32)>§patch_summary_cves: Vec<(&'input str, Vec<&'input str>)>§ddi_dir_scanner_port_init: Vec<(u16, Timestamp)>§ddi_dir_scanner_port_pass_start: Vec<(u16, Timestamp)>§ddi_dir_scanner_port_duration: Vec<(u16, u32)>§ddi_dir_scanner_port_pass_timeout: Vec<(u16, Timestamp)>§others: HashMap<&'input str, Vec<Cow<'input, str>>>

A map to hold any other host properties not explicitly parsed into other fields. The key is the tag’s name attribute.

Trait Implementations§

Source§

impl<'input> Debug for HostProperties<'input>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'input> Freeze for HostProperties<'input>

§

impl<'input> RefUnwindSafe for HostProperties<'input>

§

impl<'input> Send for HostProperties<'input>

§

impl<'input> Sync for HostProperties<'input>

§

impl<'input> Unpin for HostProperties<'input>

§

impl<'input> UnwindSafe for HostProperties<'input>

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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, 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.