[−][src]Struct ja3::Ja3
A JA3 hash builder. This provides options about how to extract a JA3 hash from a TLS handshake.
Methods
impl Ja3
[src]
pub fn new<S: AsRef<OsStr>>(pcap_path: S) -> Self
[src]
Creates a new Ja3 object.
It will extract JA3 hashes from the packet capture located at pcap_path
or
the network interface named pcap_path
, depending on whether the consumer calls
process_pcap
or process_live
.
pub fn any_port<'a>(&'a mut self) -> &'a mut Self
[src]
Change the hasher behavior to scan for TLS handshakes occuring on any TCP port. By default we only fingerprint handshakes on TCP 443.
pub fn process_pcap(&self) -> Result<Vec<Ja3Hash>, Error>
[src]
Scans the provided packet capture for TLS handshakes and returns JA3 hashes for any found.
pub fn process_live(&self, cb: impl Fn(&Ja3Hash)) -> Result<(), Error>
[src]
Opens a live packet capture and scans packets for TLS handshakes and calls cb
with any
JA3 hashes found.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Ja3
impl Send for Ja3
impl Sync for Ja3
impl Unpin for Ja3
impl UnwindSafe for Ja3
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,