package
0.6.11
Repository: https://github.com/dreadl0ck/netcap.git
Documentation: pkg.go.dev

# Functions

Init can be used to initialize the resolvers package according to the provided configuration.
InitDHCPFingerprintAPIKey initializes the DHCP fingerprinting API key.
InitDHCPFingerprintDB initializes the DHCP fingerprint database from the JSON encoded mapping persisted on disk.
InitDNSWhitelist initializes the domain whitelist.
InitLocalDNS initializes reverse dns resolution via local hosts mapping.
InitServiceDB initializes the ports to service names mapping.
IsPrivateIP can be used whether an address belongs to private address space.
IsWhitelistedDomain checks whether a given domain is whitelisted must be called after calling InitDNSWhitelist().
LookupDHCPFingerprint retrieves the data associated with an DHCP fingerprint.
LookupDNSNameLocal retrieves the DNS names associated with an IP addr.
LookupDNSNames retrieves the DNS names associated with an IP address.
LookupGeolocation returns all associated geolocations for a given address and db handle results are being cached in an atomic map to avoid unnecessary lookups.
LookupJa3 tries to locate the JA3(S) hash in the ja3 database and return a description access to the underlying map is not locked because after initialization the map is always read and never written again.
LookupManufacturer resolves a MAC addr to the manufacturer.
LookupServiceByPort looks up the service name associated with a given port and protocol.
SaveFingerprintDB will persist the fingerprint database on disk.
SetLogger sets the logger for the resolvers package.

# Variables

ConfigRootPath points to the path for storing the netcap configuration and databases.
CurrentConfig holds the current configuration.
DataBaseBuildPath points to the build folder for db generation artifacts, that are not tracked in version control.
DataBaseFolderPath points to the 'dbs' folder for storing the netcap databases.
DefaultConfig is an example configuration.

# Structs

Config contains settings for the resolvers package.