support

package
v5.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 52 Imported by: 15

Documentation

Index

Constants

View Source
const (
	MinHandlerInstances  int = 4
	MidHandlerInstances  int = 16
	HighHandlerInstances int = 32
	MaxHandlerInstances  int = 64
)

Variables

View Source
var (
	ErrNameDoesNotExist     = errors.New("name does not exist")
	ErrNoRecordOfThisType   = errors.New("no record of this type")
	ErrFailedMaxDNSAttempts = errors.New("failed the maximum number of DNS attempts")
)

Functions

func AddDNSRecordType

func AddDNSRecordType(e *et.Event, rrtype int)

func AddNetblock

func AddNetblock(session et.Session, cidr string, asn int, src *et.Source) error

func AddSLDInScope

func AddSLDInScope(e *et.Event)

func AssetMonitoredWithinTTL

func AssetMonitoredWithinTTL(session et.Session, asset *dbt.Entity, src *et.Source, since time.Time) bool

func CountryToAlpha2Code added in v5.1.1

func CountryToAlpha2Code(country string) string

func CreateServiceAsset

func CreateServiceAsset(session et.Session, src *dbt.Entity, rel oam.Relation, serv *oamplat.Service, cert *oamcert.TLSCertificate) (*dbt.Entity, error)

func ExtractURLFromString

func ExtractURLFromString(s string) *url.URL

func ExtractURLsFromString

func ExtractURLsFromString(s string) []*url.URL

func FullNameToPerson

func FullNameToPerson(raw string) *oampeop.Person

func GetAPI

func GetAPI(name string, e *et.Event) (string, error)

func HasDNSRecordType

func HasDNSRecordType(e *et.Event, rrtype int) bool

func HasSLDInScope

func HasSLDInScope(e *et.Event) bool

func Hash64Hex added in v5.1.1

func Hash64Hex(s string) string

func IPAddressSweep

func IPAddressSweep(e *et.Event, addr *oamnet.IPAddress, src *et.Source, size int, callback SweepCallback)

func IPNetblock

func IPNetblock(session et.Session, addrstr string) *sessions.CIDRangerEntry

func IsCNAME

func IsCNAME(session et.Session, name *oamdns.FQDN) (*oamdns.FQDN, bool)

func IsRegisteredDomain added in v5.1.1

func IsRegisteredDomain(session et.Session, fqdn *dbt.Entity) bool

func JARMFingerprint

func JARMFingerprint(sess et.Session, target oam.Asset, portrel *general.PortRelation) (string, error)

func MarkAssetMonitored

func MarkAssetMonitored(session et.Session, asset *dbt.Entity, src *et.Source)

func NameIPAddresses

func NameIPAddresses(session et.Session, name *oamdns.FQDN) []*oamnet.IPAddress

func NameResolved

func NameResolved(session et.Session, name *oamdns.FQDN) bool

func PerformQuery

func PerformQuery(ctx context.Context, name string, qtype uint16) ([]dns.RR, error)

func PhoneToOAMPhone

func PhoneToOAMPhone(phone, ext, country string) *oamcon.Phone

func ProcessAssetsWithSource

func ProcessAssetsWithSource(e *et.Event, findings []*Finding, src *et.Source, pname, hname string)

func ProcessEmailsWithSource

func ProcessEmailsWithSource(e *et.Event, entities []*dbt.Entity, src *et.Source)

func ProcessFQDNsWithSource

func ProcessFQDNsWithSource(e *et.Event, entities []*dbt.Entity, src *et.Source)

func RawURLToOAM

func RawURLToOAM(raw string) *oamurl.URL

func ScrapeSubdomainNames

func ScrapeSubdomainNames(s string) []string

func ServiceWithIdentifier

func ServiceWithIdentifier(address, protocol string, port int) *oamplat.Service

func Shutdown

func Shutdown()

func StoreEmailsWithSource

func StoreEmailsWithSource(session et.Session, emails []string, src *et.Source, plugin, handler string) []*dbt.Entity

func StoreFQDNsWithSource

func StoreFQDNsWithSource(session et.Session, names []string, src *et.Source, plugin, handler string) []*dbt.Entity

func StreetAddressToLocation

func StreetAddressToLocation(address string) *contact.Location

func TTLStartTime

func TTLStartTime(c *config.Config, from, to, plugin string) (time.Time, error)

func TimeToJSONString

func TimeToJSONString(t *time.Time) string

func X509ToOAMTLSCertificate

func X509ToOAMTLSCertificate(cert *x509.Certificate) *oamcert.TLSCertificate

Types

type FQDNFilter

type FQDNFilter map[string]interface{}

func NewFQDNFilter

func NewFQDNFilter() FQDNFilter

func (FQDNFilter) Close

func (r FQDNFilter) Close()

func (FQDNFilter) Insert

func (r FQDNFilter) Insert(fqdn string)

func (FQDNFilter) Prune

func (r FQDNFilter) Prune(limit int)

func (FQDNFilter) Slice

func (r FQDNFilter) Slice() []string

type FQDNMeta

type FQDNMeta struct {
	SLDInScope  bool
	RecordTypes map[int]bool
}

type Finding

type Finding struct {
	From     *dbt.Entity
	FromName string
	To       *dbt.Entity
	ToName   string
	ToMeta   interface{}
	Rel      oam.Relation
}

type SweepCallback

type SweepCallback func(d *et.Event, addr *oamnet.IPAddress, src *et.Source)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL