iface

package
v0.0.0-...-55e38cf Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact interface {
	Save() error
	Created() types.DateTime
	Updated() types.DateTime
	IPAddress() string
	SetIPAddress(val string)
	SetArtifacts(val []*filesystem.File)
	DNSRecord() string
	SetDNSRecord(val string)
	Id() string

	GetIP() IPAddress
	GetDNSRecord() DNSRecord
}

type Certificate

type Certificate interface {
	Save() error
	Created() types.DateTime
	Updated() types.DateTime
	Fingerprint() string
	SetFingerprint(val string)
	Issuer() string
	SetIssuer(val string)
	Subject() string
	SetSubject(val string)
	AlternativeNames() string
	SetAlternativeNames(val string)
	NotBefore() types.DateTime
	SetNotBefore(lastSeen time.Time)
	Expires() types.DateTime
	SetExpires(lastSeen time.Time)
	SetSerial(serialNumber *big.Int)
	Id() string
}

type DNSRecord

type DNSRecord interface {
	SetName(string)
	SetValue(string)
	SetType(string)
	SetTTL(time.Duration)
	SetRootDomain(domain RootDomain)
	SetExternalReference(extRef ExternalReference)

	SetResolveErr(resolveErr string)
	SetResolveErrCount(errCount int)
	SetLastResolved(lastResolved time.Time)
	SetLastSeen(lastSeen time.Time)

	Name() string
	Value() string
	Type() string
	TTL() time.Duration
	RootDomain() RootDomain
	ResolveError() string
	ResolveErrorCount() string
	LastResolved() types.DateTime
	LastSeen() types.DateTime
	Created() types.DateTime
	Updated() types.DateTime
	Save() error
	Id() string
}

type ExternalReference

type ExternalReference interface {
	SetName(string)
	Name() string
	Value() string
	SetValue(string)
	SetDescription(string)
	Description() string

	Created() types.DateTime
	Updated() types.DateTime
	Save() error
	Id() string
}

type IPAddress

type IPAddress interface {
	Save() error
	Created() types.DateTime
	Updated() types.DateTime
	Address() string
	SetAddress(val string)
	Is6() bool
	SetIs6(val bool)
	IsGlobalUnicast() bool
	SetIsGlobalUnicast(val bool)
	IsInterfaceLocalMulticast() bool
	SetIsInterfaceLocalMulticast(val bool)
	IsLinkLocalMulticast() bool
	SetIsLinkLocalMulticast(val bool)
	IsLinkLocalUnicast() bool
	SetIsLinkLocalUnicast(val bool)
	IsLoopback() bool
	SetIsLoopback(val bool)
	IsMulticast() bool
	SetIsMulticast(val bool)
	IsPrivate() bool
	SetIsPrivate(val bool)
	IsUnspecified() bool
	SetIsUnspecified(val bool)
	IsShared() bool
	SetIsShared(val bool)
	IsEphemeral() bool
	SetIsEphemeral(val bool)
	LastSeen() types.DateTime
	SetLastSeen(lastSeen time.Time)
	LastSimplePortScan() types.DateTime
	SetLastSimplePortScan(lastScan time.Time)
	Id() string

	GetDomains() []string
	GetDNSRecords() ([]DNSRecord, error)
}

type IPPort

type IPPort interface {
	Save() error
	Created() types.DateTime
	Updated() types.DateTime
	IPAddress() string
	SetIPAddress(val string)
	Port() int
	SetPort(val int)
	Banner() string
	SetBanner(val string)
	Service() string
	SetService(val string)
	AppProtocol() string
	SetAppProtocol(val string)
	Protocol() string
	SetProtocol(val string)
	LastSeen() types.DateTime
	SetLastSeen(lastSeen time.Time)
	Id() string

	GetIP() IPAddress
}

type IPPortCertificate

type IPPortCertificate interface {
	Save() error
	Created() types.DateTime
	Updated() types.DateTime
	IPPort() string
	SetIPPort(val string)
	Certificate() string
	SetCertificate(val string)
	LastSeen() types.DateTime
	SetLastSeen(lastSeen time.Time)
	Id() string
}

type OrgCertificate

type OrgCertificate interface {
	Organization() string
	SetOrganization(string)
	Serial() string
	SetSerial(string)
	Issuer() string
	SetIssuer(string)
	NotBefore() types.DateTime
	SetNotBefore(time time.Time)
	NotAfter() types.DateTime
	SetNotAfter(time time.Time)

	Subject() string
	SetSubject(string)
	SubjectAlternativeNames() string
	SetSubjectAlternativeNames(string)

	SetExternalReference(extRef ExternalReference)
	ExternalReferenceId() string

	LastSeen() types.DateTime
	SetLastSeen(lastSeen time.Time)
	Save() error
	Id() string
}

type OrgIPAddress

type OrgIPAddress interface {
	Organization() string
	SetOrganization(string)
	IPAddress() string
	SetIPAddress(string)
	LastSeen() types.DateTime
	SetLastSeen(lastSeen time.Time)
	SetExternalReference(extRef ExternalReference)

	//SubDomains() []OrgRootDomain
	Save() error
	Id() string
}

type OrgRootDomain

type OrgRootDomain interface {
	Registrar() string
	SetRegistrar(string)
	DomainName() string
	DNSRecords() []DNSRecord
	LastSeen() types.DateTime
	SetLastSeen(lastSeen time.Time)

	//SubDomains() []OrgRootDomain
	Save() error
	Id() string
}

type Organization

type Organization interface {
	Name() string
	Save() error
	Id() string
	SubdomainTakeovers() ([]sulfur.SubdomainTakeover, error)
	BadCertificates() ([]sulfur.BadCertificate, error)
}

type RootDomain

type RootDomain interface {
	DomainName() string
	DNSRecords() []DNSRecord
	Save() error
	Id() string
}

Jump to

Keyboard shortcuts

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