recog_match: Find fingerprint matches for a given source

Description Usage Arguments Examples

Description

This is an exhaustive lookup for the fingerprint in all the protocol/matches categories. As a result, it's not very fast on its own. However, the function has been memoise::memosie()'d. As such, if you are performing a number of recogs in a single R session and working from a typical data source (i.e. a large file with many common strings, such as a collection of HTTP 'Server“ header strings), you will see performance gains after each distinct match input.

Usage

1
recog_match(recog_db, source, protocols = ".*", matches = NULL)

Arguments

recog_db

a structure created with load_fingerprints() or use_builtin_fingerprints()

source

the 1-element character vector to compare against

protocol, matches

regexs to limit what you're comparing against. These are boolean OR'd together

Examples

1
2
recog_db <- use_builtin_fingerprints()
recog_match(recog_db, "VShell_Special_Edition_2_5_0_204 VShell", "ssh")

hrbrmstr/rrecog documentation built on May 5, 2019, 6:55 p.m.