Documentation ¶
Index ¶
- Constants
- Variables
- func NewUniqueElements(orig []string, add ...string) []string
- type AlienVault
- type ArchiveIt
- type ArchiveToday
- type Arquivo
- type Ask
- type Baidu
- type BaseService
- func (bas *BaseService) ASNRequest(ctx context.Context, req *requests.ASNRequest)
- func (bas *BaseService) AddrRequest(ctx context.Context, req *requests.AddrRequest)
- func (bas *BaseService) CheckRateLimit()
- func (bas *BaseService) DNSRequest(ctx context.Context, req *requests.DNSRequest)
- func (bas *BaseService) OnASNRequest(ctx context.Context, req *requests.ASNRequest)
- func (bas *BaseService) OnAddrRequest(ctx context.Context, req *requests.AddrRequest)
- func (bas *BaseService) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
- func (bas *BaseService) OnStart() error
- func (bas *BaseService) OnStop() error
- func (bas *BaseService) OnSubdomainDiscovered(ctx context.Context, req *requests.DNSRequest, times int)
- func (bas *BaseService) OnWhoisRequest(ctx context.Context, req *requests.WhoisRequest)
- func (bas *BaseService) Quit() <-chan struct{}
- func (bas *BaseService) RequestLen() int
- func (bas *BaseService) SetRateLimit(min time.Duration)
- func (bas *BaseService) Start() error
- func (bas *BaseService) Stats() *ServiceStats
- func (bas *BaseService) Stop() error
- func (bas *BaseService) String() string
- func (bas *BaseService) SubdomainDiscovered(ctx context.Context, req *requests.DNSRequest, times int)
- func (bas *BaseService) System() System
- func (bas *BaseService) Type() string
- func (bas *BaseService) WhoisRequest(ctx context.Context, req *requests.WhoisRequest)
- type BinaryEdge
- type Bing
- type BufferOver
- type CIRCL
- type Censys
- type CertSpotter
- type CommonCrawl
- type Crtsh
- type DNSDB
- type DNSDumpster
- type DNSService
- type DNSTable
- type DataManagerService
- type Dogpile
- type Entrust
- type Exalead
- type GitHub
- type Google
- type GoogleCT
- type HackerOne
- type HackerTarget
- type IPAPI
- type IPToASN
- type IPv4Info
- type LoCArchive
- type LocalSystem
- func (l *LocalSystem) AddAndStart(srv Service) error
- func (l *LocalSystem) AddSource(srv Service) error
- func (l *LocalSystem) Config() *config.Config
- func (l *LocalSystem) CoreServices() []Service
- func (l *LocalSystem) DataSources() []Service
- func (l *LocalSystem) GetAllSourceNames() []string
- func (l *LocalSystem) GraphDatabases() []*graph.Graph
- func (l *LocalSystem) Pool() resolvers.Resolver
- func (l *LocalSystem) Shutdown() error
- type Mnemonic
- type Netcraft
- type NetworksDB
- type OpenUKArchive
- type PTRArchive
- type PassiveTotal
- type Pastebin
- type RADb
- type Riddler
- type Robtex
- type SecurityTrails
- type Service
- type ServiceStats
- type ShadowServer
- type Shodan
- type SiteDossier
- type Spyse
- type Sublist3rAPI
- type System
- type TeamCymru
- type ThreatCrowd
- type Twitter
- type UKGovArchive
- type URLScan
- type Umbrella
- func (u *Umbrella) OnASNRequest(ctx context.Context, req *requests.ASNRequest)
- func (u *Umbrella) OnAddrRequest(ctx context.Context, req *requests.AddrRequest)
- func (u *Umbrella) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
- func (u *Umbrella) OnStart() error
- func (u *Umbrella) OnWhoisRequest(ctx context.Context, req *requests.WhoisRequest)
- func (u *Umbrella) Type() string
- type ViewDNS
- type VirusTotal
- type Wayback
- type WhoisXML
- type WhoisXMLAdvanceRequest
- type WhoisXMLAdvanceSearchTerms
- type WhoisXMLBasicRequest
- type WhoisXMLBasicSearchTerms
- type WhoisXMLResponse
- type Yahoo
Constants ¶
const ( APIKeyRequired int = iota APIKeyNotRequired APIkeyOptional )
Possible values for the AmassService.APIKeyRequired field.
const (
// ShadowServerWhoisURL is the URL for the ShadowServer whois server.
ShadowServerWhoisURL = "asn.shadowserver.org"
)
Variables ¶
var InitialQueryTypes = []string{
"CNAME",
"TXT",
"A",
"AAAA",
}
InitialQueryTypes include the DNS record types that are initially requested for a discovered name
Functions ¶
func NewUniqueElements ¶
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.
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 ¶
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.
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 ¶
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.
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 (*Ask) OnDNSRequest ¶
func (a *Ask) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
OnDNSRequest 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 (*Baidu) OnDNSRequest ¶
func (b *Baidu) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
OnDNSRequest 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 (*Bing) OnDNSRequest ¶
func (b *Bing) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
OnDNSRequest 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.
type CIRCL ¶
type CIRCL struct { BaseService API *config.APIKey SourceType string }
CIRCL is the Service that handles access to the CIRCL data source.
func (*CIRCL) OnDNSRequest ¶
func (c *CIRCL) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
OnDNSRequest 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 (*Censys) OnDNSRequest ¶
func (c *Censys) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
OnDNSRequest 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 (*Crtsh) OnDNSRequest ¶
func (c *Crtsh) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
OnDNSRequest 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 (*DNSDB) OnDNSRequest ¶
func (d *DNSDB) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
OnDNSRequest 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 ¶
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.
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 ¶
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.
type Entrust ¶
type Entrust struct { BaseService SourceType string }
Entrust is the Service that handles access to the Entrust data source.
func NewEntrust ¶
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.
type Exalead ¶
type Exalead struct { BaseService SourceType string }
Exalead is the Service that handles access to the Exalead data source.
func NewExalead ¶
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.
type GitHub ¶
type GitHub struct { BaseService API *config.APIKey SourceType string }
GitHub is the Service that handles access to the GitHub data source.
func (*GitHub) OnDNSRequest ¶
func (g *GitHub) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
OnDNSRequest 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 (*Google) OnDNSRequest ¶
func (g *Google) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
OnDNSRequest 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 ¶
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.
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 ¶
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.
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 (*IPAPI) OnAddrRequest ¶
func (i *IPAPI) OnAddrRequest(ctx context.Context, req *requests.AddrRequest)
OnAddrRequest 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 ¶
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.
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 ¶
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.
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.
type LocalSystem ¶
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 ¶
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.
type Netcraft ¶
type Netcraft struct { BaseService SourceType string }
Netcraft is the Service that handles access to the Netcraft data source.
func NewNetcraft ¶
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.
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.
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.
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 ¶
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.
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 (*RADb) OnASNRequest ¶
func (r *RADb) OnASNRequest(ctx context.Context, req *requests.ASNRequest)
OnASNRequest 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 ¶
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.
type Robtex ¶
type Robtex struct { BaseService SourceType string }
Robtex is the Service that handles access to the Robtex data source.
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.
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 ¶
GetAllSources returns a slice of all data source services, initialized and ready.
type ServiceStats ¶
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 (*Shodan) OnDNSRequest ¶
func (s *Shodan) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
OnDNSRequest 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 (*Spyse) OnDNSRequest ¶
func (s *Spyse) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
OnDNSRequest 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 ¶
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.
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 ¶
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.
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 ¶
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.
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 ¶
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) OnWhoisRequest ¶
func (u *Umbrella) OnWhoisRequest(ctx context.Context, req *requests.WhoisRequest)
OnWhoisRequest 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 ¶
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) OnWhoisRequest ¶
func (v *ViewDNS) OnWhoisRequest(ctx context.Context, req *requests.WhoisRequest)
OnWhoisRequest 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.
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 ¶
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.
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 ¶
NewWhoisXML returns the object initialized, but not yet started.
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 ¶
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 ¶
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 (*Yahoo) OnDNSRequest ¶
func (y *Yahoo) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
OnDNSRequest implements the Service interface.
Source Files ¶
- alienvault.go
- archiveit.go
- archivetoday.go
- arquivo.go
- ask.go
- baidu.go
- binaryedge.go
- bing.go
- bufferover.go
- censys.go
- certspotter.go
- circl.go
- commoncrawl.go
- crtsh.go
- datamgmtsrv.go
- dnsdb.go
- dnsdumpster.go
- dnssrv.go
- dnstable.go
- dogpile.go
- entrust.go
- exalead.go
- github.go
- google.go
- googlect.go
- hackerone.go
- hackertarget.go
- ipapi.go
- iptoasn.go
- ipv4info.go
- local.go
- locarchive.go
- mnemonic.go
- netcraft.go
- networksdb.go
- openukarchive.go
- passivetotal.go
- pastebin.go
- ptrarchive.go
- radb.go
- riddler.go
- robtex.go
- securitytrails.go
- service.go
- shadowserver.go
- shodan.go
- sitedossier.go
- sources.go
- spyse.go
- srv_records.go
- sublist3r.go
- system.go
- teamcymru.go
- threatcrowd.go
- twitter.go
- ukgovarchive.go
- umbrella.go
- urlscan.go
- viewdns.go
- virustotal.go
- wayback.go
- whoisxml.go
- yahoo.go