support

package
v5.0.0-garthoid8 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2025 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

View Source
const MaxHandlerInstances int = 100

Variables

This section is empty.

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 CreateServiceAsset

func CreateServiceAsset(session et.Session, src *dbt.Entity, rel oam.Relation, serv *platform.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) *people.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 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 JARMFingerprint

func JARMFingerprint(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(name string, qtype uint16) ([]dns.RR, error)

func PhoneToOAMPhone

func PhoneToOAMPhone(phone, ext, country string) *contact.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(h *maphash.Hash, sessionid, address string) *platform.Service

func Shutdown

func Shutdown()

func SourceToAssetsWithinTTL

func SourceToAssetsWithinTTL(session et.Session, name, atype string, src *et.Source, since time.Time) []*dbt.Entity

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