Struct ja3_new::Ja3

source ·
pub struct Ja3 { /* private fields */ }
Expand description

A JA3 hash builder. This provides options about how to extract a JA3 hash from a TLS handshake.

Implementations§

source§

impl Ja3

source

pub fn new<S: AsRef<OsStr>>(pcap_path: S) -> Self

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.

source

pub fn any_port<'a>(&'a mut self) -> &'a mut Self

Change the hasher behavior to scan for TLS handshakes occuring on any TCP port. By default we only fingerprint handshakes on TCP 443.

source

pub fn process_pcap(&self) -> Result<Vec<Ja3Hash>, Error>

Scans the provided packet capture for TLS handshakes and returns JA3 hashes for any found.

Trait Implementations§

source§

impl Debug for Ja3

source§

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

Formats the value using the given formatter. Read more

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§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.