services

package
v3.4.12 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIKeyRequired int = iota
	APIKeyNotRequired
	APIkeyOptional
)

Possible values for the AmassService.APIKeyRequired field.

View Source
const (
	// ShadowServerWhoisURL is the URL for the ShadowServer whois server.
	ShadowServerWhoisURL = "asn.shadowserver.org"
)

Variables

View Source
var InitialQueryTypes = []string{
	"CNAME",
	"TXT",
	"A",
	"AAAA",
}

InitialQueryTypes include the DNS record types that are initially requested for a discovered name

Functions

func NewUniqueElements

func NewUniqueElements(orig []string, add ...string) []string

NewUniqueElements removes elements that have duplicates in the original or new elements.

Types

type AlienVault

type AlienVault struct {
	BaseService

	API        *config.APIKey
	SourceType string
}

AlienVault is the Service that handles access to the AlienVault data source.

func NewAlienVault

func NewAlienVault(sys System) *AlienVault

NewAlienVault returns he object initialized, but not yet started.

func (*AlienVault) OnDNSRequest

func (a *AlienVault) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*AlienVault) OnStart

func (a *AlienVault) OnStart() error

OnStart implements the Service interface.

func (*AlienVault) OnWhoisRequest

func (a *AlienVault) OnWhoisRequest(ctx context.Context, req *requests.WhoisRequest)

OnWhoisRequest implements the Service interface.

func (*AlienVault) Type

func (a *AlienVault) Type() string

Type implements the Service interface.

type ArchiveIt

type ArchiveIt struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

ArchiveIt is the Service that handles access to the ArchiveIt data source.

func NewArchiveIt

func NewArchiveIt(sys System) *ArchiveIt

NewArchiveIt returns he object initialized, but not yet started.

func (*ArchiveIt) OnDNSRequest

func (a *ArchiveIt) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*ArchiveIt) OnStart

func (a *ArchiveIt) OnStart() error

OnStart implements the Service interface.

func (*ArchiveIt) Type

func (a *ArchiveIt) Type() string

Type implements the Service interface.

type ArchiveToday

type ArchiveToday struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

ArchiveToday is the Service that handles access to the ArchiveToday data source.

func NewArchiveToday

func NewArchiveToday(sys System) *ArchiveToday

NewArchiveToday returns he object initialized, but not yet started.

func (*ArchiveToday) OnDNSRequest

func (a *ArchiveToday) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*ArchiveToday) OnStart

func (a *ArchiveToday) OnStart() error

OnStart implements the Service interface

func (*ArchiveToday) Type

func (a *ArchiveToday) Type() string

Type implements the Service interface.

type Arquivo

type Arquivo struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

Arquivo is the Service that handles access to the Arquivo data source.

func NewArquivo

func NewArquivo(sys System) *Arquivo

NewArquivo returns he object initialized, but not yet started.

func (*Arquivo) OnDNSRequest

func (a *Arquivo) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Arquivo) OnStart

func (a *Arquivo) OnStart() error

OnStart implements the Service interface.

func (*Arquivo) Type

func (a *Arquivo) Type() string

Type implements the Service interface.

type Ask

type Ask struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

Ask is the Service that handles access to the Ask data source.

func NewAsk

func NewAsk(sys System) *Ask

NewAsk returns he object initialized, but not yet started.

func (*Ask) OnDNSRequest

func (a *Ask) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Ask) OnStart

func (a *Ask) OnStart() error

OnStart implements the Service interface.

func (*Ask) Type

func (a *Ask) Type() string

Type implements the Service interface.

type Baidu

type Baidu struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

Baidu is the Service that handles access to the Baidu data source.

func NewBaidu

func NewBaidu(sys System) *Baidu

NewBaidu returns he object initialized, but not yet started.

func (*Baidu) OnDNSRequest

func (b *Baidu) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Baidu) OnStart

func (b *Baidu) OnStart() error

OnStart implements the Service interface.

func (*Baidu) Type

func (b *Baidu) Type() string

Type implements the Service interface.

type BaseService

type BaseService struct {
	// contains filtered or unexported fields
}

BaseService provides common mechanisms to all Amass services in the enumeration architecture. It is used to compose a type that completely meets the AmassService interface.

func NewBaseService

func NewBaseService(srv Service, name string, sys System) *BaseService

NewBaseService returns an initialized BaseService object.

func (*BaseService) ASNRequest

func (bas *BaseService) ASNRequest(ctx context.Context, req *requests.ASNRequest)

ASNRequest adds the request provided by the parameter to the service request channel.

func (*BaseService) AddrRequest

func (bas *BaseService) AddrRequest(ctx context.Context, req *requests.AddrRequest)

AddrRequest adds the request provided by the parameter to the service request channel.

func (*BaseService) CheckRateLimit

func (bas *BaseService) CheckRateLimit()

CheckRateLimit blocks until the minimum wait since the last call.

func (*BaseService) DNSRequest

func (bas *BaseService) DNSRequest(ctx context.Context, req *requests.DNSRequest)

DNSRequest adds the request provided by the parameter to the service request channel.

func (*BaseService) OnASNRequest

func (bas *BaseService) OnASNRequest(ctx context.Context, req *requests.ASNRequest)

OnASNRequest is called for a request that was queued via ASNRequest.

func (*BaseService) OnAddrRequest

func (bas *BaseService) OnAddrRequest(ctx context.Context, req *requests.AddrRequest)

OnAddrRequest is called for a request that was queued via AddrRequest.

func (*BaseService) OnDNSRequest

func (bas *BaseService) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest is called for a request that was queued via DNSRequest.

func (*BaseService) OnStart

func (bas *BaseService) OnStart() error

OnStart is a placeholder that should be implemented by an Service that has code to execute during service start.

func (*BaseService) OnStop

func (bas *BaseService) OnStop() error

OnStop is a placeholder that should be implemented by a Service that has code to execute during service stop.

func (*BaseService) OnSubdomainDiscovered

func (bas *BaseService) OnSubdomainDiscovered(ctx context.Context, req *requests.DNSRequest, times int)

OnSubdomainDiscovered is called for a request that was queued via DNSRequest.

func (*BaseService) OnWhoisRequest

func (bas *BaseService) OnWhoisRequest(ctx context.Context, req *requests.WhoisRequest)

OnWhoisRequest is called for a request that was queued via WhoisRequest.

func (*BaseService) Quit

func (bas *BaseService) Quit() <-chan struct{}

Quit return the quit channel for the service.

func (*BaseService) RequestLen

func (bas *BaseService) RequestLen() int

RequestLen returns the current length of the request queue.

func (*BaseService) SetRateLimit

func (bas *BaseService) SetRateLimit(min time.Duration)

SetRateLimit sets the minimum wait between checks.

func (*BaseService) Start

func (bas *BaseService) Start() error

Start calls the OnStart method implemented for the Service.

func (*BaseService) Stats

func (bas *BaseService) Stats() *ServiceStats

Stats returns current ServiceStats that provide performance metrics.

func (*BaseService) Stop

func (bas *BaseService) Stop() error

Stop calls the OnStop method implemented for the Service.

func (*BaseService) String

func (bas *BaseService) String() string

String returns the name of the service.

func (*BaseService) SubdomainDiscovered

func (bas *BaseService) SubdomainDiscovered(ctx context.Context, req *requests.DNSRequest, times int)

SubdomainDiscovered adds the request provided by the parameter to the service request channel.

func (*BaseService) System

func (bas *BaseService) System() System

System returns the System that this service supports.

func (*BaseService) Type

func (bas *BaseService) Type() string

Type returns the type of the service.

func (*BaseService) WhoisRequest

func (bas *BaseService) WhoisRequest(ctx context.Context, req *requests.WhoisRequest)

WhoisRequest adds the request provided by the parameter to the service request channel.

type BinaryEdge

type BinaryEdge struct {
	BaseService

	API        *config.APIKey
	SourceType string
}

BinaryEdge is the Service that handles access to the BinaryEdge data source.

func NewBinaryEdge

func NewBinaryEdge(sys System) *BinaryEdge

NewBinaryEdge returns he object initialized, but not yet started.

func (*BinaryEdge) OnDNSRequest

func (be *BinaryEdge) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*BinaryEdge) OnStart

func (be *BinaryEdge) OnStart() error

OnStart implements the Service interface.

func (*BinaryEdge) Type

func (be *BinaryEdge) Type() string

Type implements the Service interface.

type Bing

type Bing struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

Bing is the Service that handles access to the Bing data source.

func NewBing

func NewBing(sys System) *Bing

NewBing returns he object initialized, but not yet started.

func (*Bing) OnDNSRequest

func (b *Bing) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Bing) OnStart

func (b *Bing) OnStart() error

OnStart implements the Service interface.

func (*Bing) Type

func (b *Bing) Type() string

Type implements the Service interface.

type BufferOver

type BufferOver struct {
	BaseService

	SourceType string
}

BufferOver is the Service that handles access to the BufferOver data source.

func NewBufferOver

func NewBufferOver(sys System) *BufferOver

NewBufferOver returns he object initialized, but not yet started.

func (*BufferOver) OnDNSRequest

func (b *BufferOver) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*BufferOver) OnStart

func (b *BufferOver) OnStart() error

OnStart implements the Service interface.

func (*BufferOver) Type

func (b *BufferOver) Type() string

Type implements the Service interface.

type CIRCL

type CIRCL struct {
	BaseService

	API        *config.APIKey
	SourceType string
}

CIRCL is the Service that handles access to the CIRCL data source.

func NewCIRCL

func NewCIRCL(sys System) *CIRCL

NewCIRCL returns he object initialized, but not yet started.

func (*CIRCL) OnDNSRequest

func (c *CIRCL) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*CIRCL) OnStart

func (c *CIRCL) OnStart() error

OnStart implements the Service interface.

func (*CIRCL) Type

func (c *CIRCL) Type() string

Type implements the Service interface.

type Censys

type Censys struct {
	BaseService

	API        *config.APIKey
	SourceType string
}

Censys is the Service that handles access to the Censys data source.

func NewCensys

func NewCensys(sys System) *Censys

NewCensys returns he object initialized, but not yet started.

func (*Censys) OnDNSRequest

func (c *Censys) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Censys) OnStart

func (c *Censys) OnStart() error

OnStart implements the Service interface.

func (*Censys) Type

func (c *Censys) Type() string

Type implements the Service interface.

type CertSpotter

type CertSpotter struct {
	BaseService

	SourceType string
}

CertSpotter is the Service that handles access to the CertSpotter data source.

func NewCertSpotter

func NewCertSpotter(sys System) *CertSpotter

NewCertSpotter returns he object initialized, but not yet started.

func (*CertSpotter) OnDNSRequest

func (c *CertSpotter) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*CertSpotter) OnStart

func (c *CertSpotter) OnStart() error

OnStart implements the Service interface.

func (*CertSpotter) Type

func (c *CertSpotter) Type() string

Type implements the Service interface.

type CommonCrawl

type CommonCrawl struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

CommonCrawl is the Service that handles access to the CommonCrawl data source.

func NewCommonCrawl

func NewCommonCrawl(sys System) *CommonCrawl

NewCommonCrawl returns he object initialized, but not yet started.

func (*CommonCrawl) OnDNSRequest

func (c *CommonCrawl) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*CommonCrawl) OnStart

func (c *CommonCrawl) OnStart() error

OnStart implements the Service interface.

func (*CommonCrawl) Type

func (c *CommonCrawl) Type() string

Type implements the Service interface.

type Crtsh

type Crtsh struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

Crtsh is the Service that handles access to the Crtsh data source.

func NewCrtsh

func NewCrtsh(sys System) *Crtsh

NewCrtsh returns he object initialized, but not yet started.

func (*Crtsh) OnDNSRequest

func (c *Crtsh) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Crtsh) OnStart

func (c *Crtsh) OnStart() error

OnStart implements the Service interface.

func (*Crtsh) Type

func (c *Crtsh) Type() string

Type implements the Service interface.

type DNSDB

type DNSDB struct {
	BaseService

	API        *config.APIKey
	SourceType string
}

DNSDB is the Service that handles access to the DNSDB data source.

func NewDNSDB

func NewDNSDB(sys System) *DNSDB

NewDNSDB returns he object initialized, but not yet started.

func (*DNSDB) OnDNSRequest

func (d *DNSDB) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*DNSDB) OnStart

func (d *DNSDB) OnStart() error

OnStart implements the Service interface.

func (*DNSDB) Type

func (d *DNSDB) Type() string

Type implements the Service interface.

type DNSDumpster

type DNSDumpster struct {
	BaseService

	SourceType string
}

DNSDumpster is the Service that handles access to the DNSDumpster data source.

func NewDNSDumpster

func NewDNSDumpster(sys System) *DNSDumpster

NewDNSDumpster returns he object initialized, but not yet started.

func (*DNSDumpster) OnDNSRequest

func (d *DNSDumpster) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*DNSDumpster) OnStart

func (d *DNSDumpster) OnStart() error

OnStart implements the Service interface.

func (*DNSDumpster) Type

func (d *DNSDumpster) Type() string

Type implements the Service interface.

type DNSService

type DNSService struct {
	BaseService

	SourceType string
}

DNSService is the Service that handles all DNS name resolution requests within the architecture.

func NewDNSService

func NewDNSService(sys System) *DNSService

NewDNSService returns he object initialized, but not yet started.

func (*DNSService) OnDNSRequest

func (ds *DNSService) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*DNSService) OnSubdomainDiscovered

func (ds *DNSService) OnSubdomainDiscovered(ctx context.Context, req *requests.DNSRequest, times int)

OnSubdomainDiscovered implements the Service interface.

func (*DNSService) Type

func (ds *DNSService) Type() string

Type implements the Service interface.

type DNSTable

type DNSTable struct {
	BaseService

	SourceType string
}

DNSTable is the Service that handles access to the DNSTable data source.

func NewDNSTable

func NewDNSTable(sys System) *DNSTable

NewDNSTable returns he object initialized, but not yet started.

func (*DNSTable) OnDNSRequest

func (d *DNSTable) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*DNSTable) OnStart

func (d *DNSTable) OnStart() error

OnStart implements the Service interface.

func (*DNSTable) Type

func (d *DNSTable) Type() string

Type implements the Service interface.

type DataManagerService

type DataManagerService struct {
	BaseService
	// contains filtered or unexported fields
}

DataManagerService is the Service that handles all data collected within the architecture. This is achieved by watching all the RESOLVED events.

func NewDataManagerService

func NewDataManagerService(sys System) *DataManagerService

NewDataManagerService returns he object initialized, but not yet started.

func (*DataManagerService) OnASNRequest

func (dms *DataManagerService) OnASNRequest(ctx context.Context, req *requests.ASNRequest)

OnASNRequest implements the Service interface.

func (*DataManagerService) OnDNSRequest

func (dms *DataManagerService) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

type Dogpile

type Dogpile struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

Dogpile is the Service that handles access to the Dogpile data source.

func NewDogpile

func NewDogpile(sys System) *Dogpile

NewDogpile returns he object initialized, but not yet started.

func (*Dogpile) OnDNSRequest

func (d *Dogpile) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Dogpile) OnStart

func (d *Dogpile) OnStart() error

OnStart implements the Service interface.

func (*Dogpile) Type

func (d *Dogpile) Type() string

Type implements the Service interface.

type Entrust

type Entrust struct {
	BaseService

	SourceType string
}

Entrust is the Service that handles access to the Entrust data source.

func NewEntrust

func NewEntrust(sys System) *Entrust

NewEntrust returns he object initialized, but not yet started.

func (*Entrust) OnDNSRequest

func (e *Entrust) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Entrust) OnStart

func (e *Entrust) OnStart() error

OnStart implements the Service interface.

func (*Entrust) Type

func (e *Entrust) Type() string

Type implements the Service interface.

type Exalead

type Exalead struct {
	BaseService

	SourceType string
}

Exalead is the Service that handles access to the Exalead data source.

func NewExalead

func NewExalead(sys System) *Exalead

NewExalead returns he object initialized, but not yet started.

func (*Exalead) OnDNSRequest

func (e *Exalead) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Exalead) OnStart

func (e *Exalead) OnStart() error

OnStart implements the Service interface.

func (*Exalead) Type

func (e *Exalead) Type() string

Type implements the Service interface.

type GitHub

type GitHub struct {
	BaseService

	API        *config.APIKey
	SourceType string
}

GitHub is the Service that handles access to the GitHub data source.

func NewGitHub

func NewGitHub(sys System) *GitHub

NewGitHub returns he object initialized, but not yet started.

func (*GitHub) OnDNSRequest

func (g *GitHub) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*GitHub) OnStart

func (g *GitHub) OnStart() error

OnStart implements the Service interface.

func (*GitHub) Type

func (g *GitHub) Type() string

Type implements the Service interface.

type Google

type Google struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

Google is the Service that handles access to the Google search engine data source.

func NewGoogle

func NewGoogle(sys System) *Google

NewGoogle returns he object initialized, but not yet started.

func (*Google) OnDNSRequest

func (g *Google) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Google) OnStart

func (g *Google) OnStart() error

OnStart implements the Service interface.

func (*Google) Type

func (g *Google) Type() string

Type implements the Service interface.

type GoogleCT

type GoogleCT struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

GoogleCT is the Service that handles access to the GoogleCT data source.

func NewGoogleCT

func NewGoogleCT(sys System) *GoogleCT

NewGoogleCT returns he object initialized, but not yet started.

func (*GoogleCT) OnDNSRequest

func (g *GoogleCT) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*GoogleCT) OnStart

func (g *GoogleCT) OnStart() error

OnStart implements the Service interface.

func (*GoogleCT) Type

func (g *GoogleCT) Type() string

Type implements the Service interface.

type HackerOne

type HackerOne struct {
	BaseService

	SourceType string
}

HackerOne is the Service that handles access to the unofficial HackerOne disclosure timeline data source.

func NewHackerOne

func NewHackerOne(sys System) *HackerOne

NewHackerOne returns he object initialized, but not yet started.

func (*HackerOne) OnDNSRequest

func (h *HackerOne) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*HackerOne) OnStart

func (h *HackerOne) OnStart() error

OnStart implements the Service interface.

func (*HackerOne) Type

func (h *HackerOne) Type() string

Type implements the Service interface.

type HackerTarget

type HackerTarget struct {
	BaseService

	SourceType string
}

HackerTarget is the Service that handles access to the HackerTarget data source.

func NewHackerTarget

func NewHackerTarget(sys System) *HackerTarget

NewHackerTarget returns he object initialized, but not yet started.

func (*HackerTarget) OnASNRequest

func (h *HackerTarget) OnASNRequest(ctx context.Context, req *requests.ASNRequest)

OnASNRequest implements the Service interface.

func (*HackerTarget) OnDNSRequest

func (h *HackerTarget) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*HackerTarget) OnStart

func (h *HackerTarget) OnStart() error

OnStart implements the Service interface.

func (*HackerTarget) Type

func (h *HackerTarget) Type() string

Type implements the Service interface.

type IPAPI

type IPAPI struct {
	BaseService

	SourceType string
}

IPAPI is the Service that handles access to the ipapi data source.

func NewIPAPI

func NewIPAPI(sys System) *IPAPI

NewIPAPI returns he object initialized, but not yet started.

func (*IPAPI) OnAddrRequest

func (i *IPAPI) OnAddrRequest(ctx context.Context, req *requests.AddrRequest)

OnAddrRequest implements the Service interface.

func (*IPAPI) OnStart

func (i *IPAPI) OnStart() error

OnStart implements the Service interface.

func (*IPAPI) Type

func (i *IPAPI) Type() string

Type implements the Service interface.

type IPToASN

type IPToASN struct {
	BaseService

	SourceType string
}

IPToASN is the Service that handles access to the IPToASN data source.

func NewIPToASN

func NewIPToASN(sys System) *IPToASN

NewIPToASN returns he object initialized, but not yet started.

func (*IPToASN) OnASNRequest

func (i *IPToASN) OnASNRequest(ctx context.Context, req *requests.ASNRequest)

OnASNRequest implements the Service interface.

func (*IPToASN) OnStart

func (i *IPToASN) OnStart() error

OnStart implements the Service interface.

func (*IPToASN) Type

func (i *IPToASN) Type() string

Type implements the Service interface.

type IPv4Info

type IPv4Info struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

IPv4Info is the Service that handles access to the IPv4Info data source.

func NewIPv4Info

func NewIPv4Info(sys System) *IPv4Info

NewIPv4Info returns he object initialized, but not yet started.

func (*IPv4Info) OnDNSRequest

func (i *IPv4Info) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*IPv4Info) OnStart

func (i *IPv4Info) OnStart() error

OnStart implements the Service interface.

func (*IPv4Info) Type

func (i *IPv4Info) Type() string

Type implements the Service interface.

type LoCArchive

type LoCArchive struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

LoCArchive is the Service that handles access to the LoCArchive data source.

func NewLoCArchive

func NewLoCArchive(sys System) *LoCArchive

NewLoCArchive returns he object initialized, but not yet started.

func (*LoCArchive) OnDNSRequest

func (l *LoCArchive) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*LoCArchive) OnStart

func (l *LoCArchive) OnStart() error

OnStart implements the Service interface.

func (*LoCArchive) Type

func (l *LoCArchive) Type() string

Type implements the Service interface.

type LocalSystem

type LocalSystem struct {
	sync.Mutex
	// contains filtered or unexported fields
}

LocalSystem implements a System to be executed within a single process.

func NewLocalSystem

func NewLocalSystem(c *config.Config) (*LocalSystem, error)

NewLocalSystem returns an initialized LocalSystem object.

func (*LocalSystem) AddAndStart

func (l *LocalSystem) AddAndStart(srv Service) error

AddAndStart implements the System interface.

func (*LocalSystem) AddSource

func (l *LocalSystem) AddSource(srv Service) error

AddSource implements the System interface.

func (*LocalSystem) Config

func (l *LocalSystem) Config() *config.Config

Config implements the System interface.

func (*LocalSystem) CoreServices

func (l *LocalSystem) CoreServices() []Service

CoreServices implements the System interface.

func (*LocalSystem) DataSources

func (l *LocalSystem) DataSources() []Service

DataSources implements the System interface.

func (*LocalSystem) GetAllSourceNames

func (l *LocalSystem) GetAllSourceNames() []string

GetAllSourceNames returns the names of all the available data sources.

func (*LocalSystem) GraphDatabases

func (l *LocalSystem) GraphDatabases() []*graph.Graph

GraphDatabases implements the System interface.

func (*LocalSystem) Pool

func (l *LocalSystem) Pool() resolvers.Resolver

Pool implements the System interface.

func (*LocalSystem) Shutdown

func (l *LocalSystem) Shutdown() error

Shutdown implements the System interface.

type Mnemonic

type Mnemonic struct {
	BaseService

	SourceType string
}

Mnemonic is the Service that handles access to the Mnemonic data source.

func NewMnemonic

func NewMnemonic(sys System) *Mnemonic

NewMnemonic returns he object initialized, but not yet started.

func (*Mnemonic) OnDNSRequest

func (m *Mnemonic) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Mnemonic) OnStart

func (m *Mnemonic) OnStart() error

OnStart implements the Service interface.

func (*Mnemonic) Type

func (m *Mnemonic) Type() string

Type implements the Service interface.

type Netcraft

type Netcraft struct {
	BaseService

	SourceType string
}

Netcraft is the Service that handles access to the Netcraft data source.

func NewNetcraft

func NewNetcraft(sys System) *Netcraft

NewNetcraft returns he object initialized, but not yet started.

func (*Netcraft) OnDNSRequest

func (n *Netcraft) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Netcraft) OnStart

func (n *Netcraft) OnStart() error

OnStart implements the Service interface.

func (*Netcraft) Type

func (n *Netcraft) Type() string

Type implements the Service interface.

type NetworksDB

type NetworksDB struct {
	BaseService

	API        *config.APIKey
	SourceType string
	// contains filtered or unexported fields
}

NetworksDB is the Service that handles access to the NetworksDB.io data source.

func NewNetworksDB

func NewNetworksDB(sys System) *NetworksDB

NewNetworksDB returns he object initialized, but not yet started.

func (*NetworksDB) OnASNRequest

func (n *NetworksDB) OnASNRequest(ctx context.Context, req *requests.ASNRequest)

OnASNRequest implements the Service interface.

func (*NetworksDB) OnStart

func (n *NetworksDB) OnStart() error

OnStart implements the Service interface.

func (*NetworksDB) Type

func (n *NetworksDB) Type() string

Type implements the Service interface.

type OpenUKArchive

type OpenUKArchive struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

OpenUKArchive is the Service that handles access to the OpenUKArchive data source.

func NewOpenUKArchive

func NewOpenUKArchive(sys System) *OpenUKArchive

NewOpenUKArchive returns he object initialized, but not yet started.

func (*OpenUKArchive) OnDNSRequest

func (o *OpenUKArchive) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*OpenUKArchive) OnStart

func (o *OpenUKArchive) OnStart() error

OnStart implements the Service interface.

func (*OpenUKArchive) Type

func (o *OpenUKArchive) Type() string

Type implements the Service interface.

type PTRArchive

type PTRArchive struct {
	BaseService

	SourceType string
}

PTRArchive is the Service that handles access to the Exalead data source.

func NewPTRArchive

func NewPTRArchive(sys System) *PTRArchive

NewPTRArchive returns he object initialized, but not yet started.

func (*PTRArchive) OnDNSRequest

func (p *PTRArchive) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*PTRArchive) OnStart

func (p *PTRArchive) OnStart() error

OnStart implements the Service interface.

func (*PTRArchive) Type

func (p *PTRArchive) Type() string

Type implements the Service interface.

type PassiveTotal

type PassiveTotal struct {
	BaseService

	API        *config.APIKey
	SourceType string
}

PassiveTotal is the Service that handles access to the PassiveTotal data source.

func NewPassiveTotal

func NewPassiveTotal(sys System) *PassiveTotal

NewPassiveTotal returns he object initialized, but not yet started.

func (*PassiveTotal) OnDNSRequest

func (pt *PassiveTotal) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*PassiveTotal) OnStart

func (pt *PassiveTotal) OnStart() error

OnStart implements the Service interface.

func (*PassiveTotal) Type

func (pt *PassiveTotal) Type() string

Type implements the Service interface.

type Pastebin

type Pastebin struct {
	BaseService

	SourceType string
}

Pastebin is the Service that handles access to the Pastebin data source.

func NewPastebin

func NewPastebin(sys System) *Pastebin

NewPastebin returns he object initialized, but not yet started.

func (*Pastebin) OnDNSRequest

func (p *Pastebin) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Pastebin) OnStart

func (p *Pastebin) OnStart() error

OnStart implements the Service interface.

type RADb

type RADb struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

RADb is the Service that handles access to the RADb data source.

func NewRADb

func NewRADb(sys System) *RADb

NewRADb returns he object initialized, but not yet started.

func (*RADb) OnASNRequest

func (r *RADb) OnASNRequest(ctx context.Context, req *requests.ASNRequest)

OnASNRequest implements the Service interface.

func (*RADb) OnStart

func (r *RADb) OnStart() error

OnStart implements the Service interface.

func (*RADb) Type

func (r *RADb) Type() string

Type implements the Service interface.

type Riddler

type Riddler struct {
	BaseService

	SourceType string
}

Riddler is the Service that handles access to the Riddler data source.

func NewRiddler

func NewRiddler(sys System) *Riddler

NewRiddler returns he object initialized, but not yet started.

func (*Riddler) OnDNSRequest

func (r *Riddler) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Riddler) OnStart

func (r *Riddler) OnStart() error

OnStart implements the Service interface.

func (*Riddler) Type

func (r *Riddler) Type() string

Type implements the Service interface.

type Robtex

type Robtex struct {
	BaseService

	SourceType string
}

Robtex is the Service that handles access to the Robtex data source.

func NewRobtex

func NewRobtex(sys System) *Robtex

NewRobtex returns he object initialized, but not yet started.

func (*Robtex) OnASNRequest

func (r *Robtex) OnASNRequest(ctx context.Context, req *requests.ASNRequest)

OnASNRequest implements the Service interface.

func (*Robtex) OnDNSRequest

func (r *Robtex) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Robtex) OnStart

func (r *Robtex) OnStart() error

OnStart implements the Service interface.

func (*Robtex) Type

func (r *Robtex) Type() string

Type implements the Service interface.

type SecurityTrails

type SecurityTrails struct {
	BaseService

	API        *config.APIKey
	SourceType string
}

SecurityTrails is the Service that handles access to the SecurityTrails data source.

func NewSecurityTrails

func NewSecurityTrails(sys System) *SecurityTrails

NewSecurityTrails returns he object initialized, but not yet started.

func (*SecurityTrails) OnDNSRequest

func (st *SecurityTrails) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*SecurityTrails) OnStart

func (st *SecurityTrails) OnStart() error

OnStart implements the Service interface.

func (*SecurityTrails) OnWhoisRequest

func (st *SecurityTrails) OnWhoisRequest(ctx context.Context, req *requests.WhoisRequest)

OnWhoisRequest implements the Service interface.

func (*SecurityTrails) Type

func (st *SecurityTrails) Type() string

Type implements the Service interface.

type Service

type Service interface {
	// Start the service
	Start() error
	OnStart() error

	// Stop the service
	Stop() error
	OnStop() error

	// Methods that enforce the rate limit
	SetRateLimit(min time.Duration)
	CheckRateLimit()

	// RequestLen returns the current length of the request queue
	RequestLen() int

	// Methods to support processing of DNSRequests
	DNSRequest(ctx context.Context, req *requests.DNSRequest)
	OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

	// Methods to support processing of discovered proper subdomains
	SubdomainDiscovered(ctx context.Context, req *requests.DNSRequest, times int)
	OnSubdomainDiscovered(ctx context.Context, req *requests.DNSRequest, times int)

	// Methods to support processing of AddrRequests
	AddrRequest(ctx context.Context, req *requests.AddrRequest)
	OnAddrRequest(ctx context.Context, req *requests.AddrRequest)

	// Methods to support processing of ASNRequests
	ASNRequest(ctx context.Context, req *requests.ASNRequest)
	OnASNRequest(ctx context.Context, req *requests.ASNRequest)

	// Methods to support processing of WhoisRequests
	WhoisRequest(ctx context.Context, req *requests.WhoisRequest)
	OnWhoisRequest(ctx context.Context, req *requests.WhoisRequest)

	// Returns a channel that is closed when the service is stopped
	Quit() <-chan struct{}

	// Type returns the type of the service
	Type() string

	// String description of the service
	String() string

	// Returns the System that the service is supporting
	System() System

	// Returns current ServiceStats that provide performance metrics
	Stats() *ServiceStats
}

Service is the object type for a service running within the Amass architecture.

func GetAllSources

func GetAllSources(sys System) []Service

GetAllSources returns a slice of all data source services, initialized and ready.

type ServiceStats

type ServiceStats struct {
	DNSQueriesPerSec int
	NamesRemaining   int
	AddrsRemaining   int
}

ServiceStats provides metrics from an Amass service.

type ShadowServer

type ShadowServer struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

ShadowServer is the Service that handles access to the ShadowServer data source.

func NewShadowServer

func NewShadowServer(sys System) *ShadowServer

NewShadowServer returns he object initialized, but not yet started.

func (*ShadowServer) OnASNRequest

func (s *ShadowServer) OnASNRequest(ctx context.Context, req *requests.ASNRequest)

OnASNRequest implements the Service interface.

func (*ShadowServer) OnStart

func (s *ShadowServer) OnStart() error

OnStart implements the Service interface.

func (*ShadowServer) Type

func (s *ShadowServer) Type() string

Type implements the Service interface.

type Shodan

type Shodan struct {
	BaseService

	API        *config.APIKey
	SourceType string
}

Shodan is the Service that handles access to the Shodan data source.

func NewShodan

func NewShodan(sys System) *Shodan

NewShodan returns he object initialized, but not yet started.

func (*Shodan) OnDNSRequest

func (s *Shodan) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Shodan) OnStart

func (s *Shodan) OnStart() error

OnStart implements the Service interface.

func (*Shodan) Type

func (s *Shodan) Type() string

Type implements the Service interface.

type SiteDossier

type SiteDossier struct {
	BaseService

	SourceType string
}

SiteDossier is the Service that handles access to the SiteDossier data source.

func NewSiteDossier

func NewSiteDossier(sys System) *SiteDossier

NewSiteDossier returns he object initialized, but not yet started.

func (*SiteDossier) OnDNSRequest

func (s *SiteDossier) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*SiteDossier) OnStart

func (s *SiteDossier) OnStart() error

OnStart implements the Service interface.

func (*SiteDossier) Type

func (s *SiteDossier) Type() string

Type implements the Service interface.

type Spyse

type Spyse struct {
	BaseService

	API        *config.APIKey
	SourceType string
}

Spyse is the Service that handles access to the Spyse data source.

func NewSpyse

func NewSpyse(sys System) *Spyse

NewSpyse returns he object initialized, but not yet started.

func (*Spyse) OnDNSRequest

func (s *Spyse) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Spyse) OnStart

func (s *Spyse) OnStart() error

OnStart implements the Service interface.

func (*Spyse) Type

func (s *Spyse) Type() string

Type implements the Service interface.

type Sublist3rAPI

type Sublist3rAPI struct {
	BaseService

	SourceType string
}

Sublist3rAPI is the Service that handles access to the Sublist3r API data source.

func NewSublist3rAPI

func NewSublist3rAPI(sys System) *Sublist3rAPI

NewSublist3rAPI returns he object initialized, but not yet started.

func (*Sublist3rAPI) OnDNSRequest

func (s *Sublist3rAPI) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Sublist3rAPI) OnStart

func (s *Sublist3rAPI) OnStart() error

OnStart implements the Service interface.

func (*Sublist3rAPI) Type

func (s *Sublist3rAPI) Type() string

Type implements the Service interface.

type System

type System interface {
	// Returns the configuration for the enumeration this service supports
	Config() *config.Config

	// Returns the resolver pool that handles DNS requests
	Pool() resolvers.Resolver

	// AddSource appends the provided data source to the slice of sources managed by the System
	AddSource(srv Service) error

	// AddAndStart starts the provided data source and then appends it to the slice of sources
	AddAndStart(srv Service) error

	// DataSources returns the slice of data sources managed by the System
	DataSources() []Service

	// CoreServices returns the slice of core services managed by the System
	CoreServices() []Service

	// GraphDatabases return the Graphs used by the System
	GraphDatabases() []*graph.Graph

	// Shutdown will shutdown the System
	Shutdown() error
}

System is the object type for managing services that perform various reconnaissance activities.

type TeamCymru

type TeamCymru struct {
	BaseService

	SourceType string
}

TeamCymru is the Service that handles access to the TeamCymru data source.

func NewTeamCymru

func NewTeamCymru(sys System) *TeamCymru

NewTeamCymru returns he object initialized, but not yet started.

func (*TeamCymru) OnASNRequest

func (t *TeamCymru) OnASNRequest(ctx context.Context, req *requests.ASNRequest)

OnASNRequest implements the Service interface.

func (*TeamCymru) OnStart

func (t *TeamCymru) OnStart() error

OnStart implements the Service interface.

func (*TeamCymru) Type

func (t *TeamCymru) Type() string

Type implements the Service interface.

type ThreatCrowd

type ThreatCrowd struct {
	BaseService

	SourceType string
}

ThreatCrowd is the Service that handles access to the ThreatCrowd data source.

func NewThreatCrowd

func NewThreatCrowd(sys System) *ThreatCrowd

NewThreatCrowd returns he object initialized, but not yet started.

func (*ThreatCrowd) OnDNSRequest

func (t *ThreatCrowd) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*ThreatCrowd) OnStart

func (t *ThreatCrowd) OnStart() error

OnStart implements the Service interface.

func (*ThreatCrowd) Type

func (t *ThreatCrowd) Type() string

Type implements the Service interface.

type Twitter

type Twitter struct {
	BaseService

	API        *config.APIKey
	SourceType string
	// contains filtered or unexported fields
}

Twitter is the Service that handles access to the Twitter data source.

func NewTwitter

func NewTwitter(sys System) *Twitter

NewTwitter returns he object initialized, but not yet started.

func (*Twitter) OnDNSRequest

func (t *Twitter) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Twitter) OnStart

func (t *Twitter) OnStart() error

OnStart implements the Service interface.

func (*Twitter) Type

func (t *Twitter) Type() string

Type implements the Service interface.

type UKGovArchive

type UKGovArchive struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

UKGovArchive is the Service that handles access to the UKGovArchive data source.

func NewUKGovArchive

func NewUKGovArchive(sys System) *UKGovArchive

NewUKGovArchive returns he object initialized, but not yet started.

func (*UKGovArchive) OnDNSRequest

func (u *UKGovArchive) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*UKGovArchive) OnStart

func (u *UKGovArchive) OnStart() error

OnStart implements the Service interface.

func (*UKGovArchive) Type

func (u *UKGovArchive) Type() string

Type implements the Service interface.

type URLScan

type URLScan struct {
	BaseService

	API        *config.APIKey
	SourceType string
}

URLScan is the Service that handles access to the URLScan data source.

func NewURLScan

func NewURLScan(sys System) *URLScan

NewURLScan returns he object initialized, but not yet started.

func (*URLScan) OnDNSRequest

func (u *URLScan) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*URLScan) OnStart

func (u *URLScan) OnStart() error

OnStart implements the Service interface.

func (*URLScan) Type

func (u *URLScan) Type() string

Type implements the Service interface.

type Umbrella

type Umbrella struct {
	BaseService

	API        *config.APIKey
	SourceType string
}

Umbrella is the Service that handles access to the Umbrella data source.

func NewUmbrella

func NewUmbrella(sys System) *Umbrella

NewUmbrella returns he object initialized, but not yet started.

func (*Umbrella) OnASNRequest

func (u *Umbrella) OnASNRequest(ctx context.Context, req *requests.ASNRequest)

OnASNRequest implements the Service interface.

func (*Umbrella) OnAddrRequest

func (u *Umbrella) OnAddrRequest(ctx context.Context, req *requests.AddrRequest)

OnAddrRequest implements the Service interface.

func (*Umbrella) OnDNSRequest

func (u *Umbrella) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Umbrella) OnStart

func (u *Umbrella) OnStart() error

OnStart implements the Service interface.

func (*Umbrella) OnWhoisRequest

func (u *Umbrella) OnWhoisRequest(ctx context.Context, req *requests.WhoisRequest)

OnWhoisRequest implements the Service interface.

func (*Umbrella) Type

func (u *Umbrella) Type() string

Type implements the Service interface.

type ViewDNS

type ViewDNS struct {
	BaseService

	SourceType string
}

ViewDNS is the Service that handles access to the ViewDNS data source.

func NewViewDNS

func NewViewDNS(sys System) *ViewDNS

NewViewDNS returns he object initialized, but not yet started.

func (*ViewDNS) OnDNSRequest

func (v *ViewDNS) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*ViewDNS) OnStart

func (v *ViewDNS) OnStart() error

OnStart implements the Service interface.

func (*ViewDNS) OnWhoisRequest

func (v *ViewDNS) OnWhoisRequest(ctx context.Context, req *requests.WhoisRequest)

OnWhoisRequest implements the Service interface.

func (*ViewDNS) Type

func (v *ViewDNS) Type() string

Type implements the Service interface.

type VirusTotal

type VirusTotal struct {
	BaseService

	API        *config.APIKey
	SourceType string
	// contains filtered or unexported fields
}

VirusTotal is the Service that handles access to the VirusTotal data source.

func NewVirusTotal

func NewVirusTotal(sys System) *VirusTotal

NewVirusTotal returns he object initialized, but not yet started.

func (*VirusTotal) OnDNSRequest

func (v *VirusTotal) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*VirusTotal) OnStart

func (v *VirusTotal) OnStart() error

OnStart implements the Service interface.

func (*VirusTotal) Type

func (v *VirusTotal) Type() string

Type implements the Service interface.

type Wayback

type Wayback struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

Wayback is the Service that handles access to the Wayback data source.

func NewWayback

func NewWayback(sys System) *Wayback

NewWayback returns he object initialized, but not yet started.

func (*Wayback) OnDNSRequest

func (w *Wayback) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Wayback) OnStart

func (w *Wayback) OnStart() error

OnStart implements the Service interface.

func (*Wayback) Type

func (w *Wayback) Type() string

Type implements the Service interface.

type WhoisXML

type WhoisXML struct {
	BaseService

	API        *config.APIKey
	SourceType string
}

WhoisXML is the Service that handles access to the WhoisXML data source.

func NewWhoisXML

func NewWhoisXML(sys System) *WhoisXML

NewWhoisXML returns the object initialized, but not yet started.

func (*WhoisXML) OnStart

func (w *WhoisXML) OnStart() error

OnStart implements the Service interface.

func (*WhoisXML) OnWhoisRequest

func (w *WhoisXML) OnWhoisRequest(ctx context.Context, req *requests.WhoisRequest)

OnWhoisRequest implements the Service interface.

type WhoisXMLAdvanceRequest

type WhoisXMLAdvanceRequest struct {
	Search      string                       `json:"searchType"`
	Mode        string                       `json:"mode"`
	SearchTerms []WhoisXMLAdvanceSearchTerms `json:"advancedSearchTerms"`
}

WhoisXMLAdvanceRequest handles POST request Json with specific fields.

type WhoisXMLAdvanceSearchTerms

type WhoisXMLAdvanceSearchTerms struct {
	Field string `json:"field"`
	Term  string `json:"term"`
}

WhoisXMLAdvanceSearchTerms are variables for the api's query with specific fields in mind.

type WhoisXMLBasicRequest

type WhoisXMLBasicRequest struct {
	Search      string                   `json:"searchType"`
	Mode        string                   `json:"mode"`
	SearchTerms WhoisXMLBasicSearchTerms `json:"basicSearchTerms"`
}

WhoisXMLBasicRequest is for using general search terms such as including domains and excluding regions.

type WhoisXMLBasicSearchTerms

type WhoisXMLBasicSearchTerms struct {
	Include []string `json:"include"`
}

WhoisXMLBasicSearchTerms for searching by domain

type WhoisXMLResponse

type WhoisXMLResponse struct {
	Found int      `json:"domainsCount"`
	List  []string `json:"domainsList"`
}

WhoisXMLResponse handles WhoisXML response json.

type Yahoo

type Yahoo struct {
	BaseService

	SourceType string
	// contains filtered or unexported fields
}

Yahoo is the Service that handles access to the Yahoo data source.

func NewYahoo

func NewYahoo(sys System) *Yahoo

NewYahoo returns he object initialized, but not yet started.

func (*Yahoo) OnDNSRequest

func (y *Yahoo) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)

OnDNSRequest implements the Service interface.

func (*Yahoo) OnStart

func (y *Yahoo) OnStart() error

OnStart implements the Service interface.

func (*Yahoo) Type

func (y *Yahoo) Type() string

Type implements the Service interface.

Jump to

Keyboard shortcuts

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