Documentation
¶
Index ¶
- Constants
- func GetAllSources(sys systems.System) []requests.Service
- func NewUniqueElements(orig []string, add ...string) []string
- type AlienVault
- type CommonCrawl
- type Crtsh
- type DNSDB
- type DNSDumpster
- type Entrust
- type GitHub
- type IPAPI
- type IPToASN
- type NetworksDB
- type PassiveTotal
- type Pastebin
- type RADb
- type Robtex
- type Script
- func (s *Script) OnASNRequest(ctx context.Context, req *requests.ASNRequest)
- func (s *Script) OnAddrRequest(ctx context.Context, req *requests.AddrRequest)
- func (s *Script) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
- func (s *Script) OnResolved(ctx context.Context, req *requests.DNSRequest)
- func (s *Script) OnStart() error
- func (s *Script) OnStop() error
- func (s *Script) OnSubdomainDiscovered(ctx context.Context, req *requests.DNSRequest, times int)
- func (s *Script) OnWhoisRequest(ctx context.Context, req *requests.WhoisRequest)
- func (s *Script) Type() string
- type SecurityTrails
- type ShadowServer
- type TeamCymru
- type Twitter
- 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 WhoisXML
- type WhoisXMLAdvanceRequest
- type WhoisXMLAdvanceSearchTerms
- type WhoisXMLBasicRequest
- type WhoisXMLBasicSearchTerms
- type WhoisXMLResponse
Constants ¶
const (
// ShadowServerWhoisURL is the URL for the ShadowServer whois server.
ShadowServerWhoisURL = "asn.shadowserver.org"
)
Variables ¶
This section is empty.
Functions ¶
func GetAllSources ¶
GetAllSources returns a slice of all data source services, initialized and ready.
func NewUniqueElements ¶
NewUniqueElements removes elements that have duplicates in the original or new elements.
Types ¶
type AlienVault ¶
type AlienVault struct { requests.BaseService API *config.APIKey SourceType string // contains filtered or unexported fields }
AlienVault is the Service that handles access to the AlienVault data source.
func NewAlienVault ¶
func NewAlienVault(sys systems.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 CommonCrawl ¶
type CommonCrawl struct { requests.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 systems.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 { requests.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 { requests.BaseService API *config.APIKey SourceType string // contains filtered or unexported fields }
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 { requests.BaseService SourceType string }
DNSDumpster is the Service that handles access to the DNSDumpster data source.
func NewDNSDumpster ¶
func NewDNSDumpster(sys systems.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 Entrust ¶
type Entrust struct { requests.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 GitHub ¶
type GitHub struct { requests.BaseService API *config.APIKey SourceType string // contains filtered or unexported fields }
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 IPAPI ¶
type IPAPI struct { requests.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 { requests.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 NetworksDB ¶
type NetworksDB struct { requests.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 systems.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) OnWhoisRequest ¶
func (n *NetworksDB) OnWhoisRequest(ctx context.Context, req *requests.WhoisRequest)
OnWhoisRequest implements the Service interface.
type PassiveTotal ¶
type PassiveTotal struct { requests.BaseService API *config.APIKey SourceType string // contains filtered or unexported fields }
PassiveTotal is the Service that handles access to the PassiveTotal data source.
func NewPassiveTotal ¶
func NewPassiveTotal(sys systems.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 { requests.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 { requests.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 Robtex ¶
type Robtex struct { requests.BaseService SourceType string // contains filtered or unexported fields }
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 Script ¶ added in v3.7.0
type Script struct { requests.BaseService SourceType string // contains filtered or unexported fields }
Script is the Service that handles access to the Script data source.
func (*Script) OnASNRequest ¶ added in v3.7.0
func (s *Script) OnASNRequest(ctx context.Context, req *requests.ASNRequest)
OnASNRequest implements the Service interface.
func (*Script) OnAddrRequest ¶ added in v3.7.0
func (s *Script) OnAddrRequest(ctx context.Context, req *requests.AddrRequest)
OnAddrRequest implements the Service interface.
func (*Script) OnDNSRequest ¶ added in v3.7.0
func (s *Script) OnDNSRequest(ctx context.Context, req *requests.DNSRequest)
OnDNSRequest implements the Service interface.
func (*Script) OnResolved ¶ added in v3.7.0
func (s *Script) OnResolved(ctx context.Context, req *requests.DNSRequest)
OnResolved implements the Service interface.
func (*Script) OnSubdomainDiscovered ¶ added in v3.7.0
OnSubdomainDiscovered implements the Service interface.
func (*Script) OnWhoisRequest ¶ added in v3.7.0
func (s *Script) OnWhoisRequest(ctx context.Context, req *requests.WhoisRequest)
OnWhoisRequest implements the Service interface.
type SecurityTrails ¶
type SecurityTrails struct { requests.BaseService API *config.APIKey SourceType string // contains filtered or unexported fields }
SecurityTrails is the Service that handles access to the SecurityTrails data source.
func NewSecurityTrails ¶
func NewSecurityTrails(sys systems.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 ShadowServer ¶
type ShadowServer struct { requests.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 systems.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 TeamCymru ¶
type TeamCymru struct { requests.BaseService SourceType string // contains filtered or unexported fields }
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 Twitter ¶
type Twitter struct { requests.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 URLScan ¶
type URLScan struct { requests.BaseService API *config.APIKey SourceType string // contains filtered or unexported fields }
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 { requests.BaseService API *config.APIKey SourceType string // contains filtered or unexported fields }
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 { requests.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 { requests.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 systems.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 WhoisXML ¶
type WhoisXML struct { requests.BaseService API *config.APIKey SourceType string // contains filtered or unexported fields }
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.
Source Files
¶
- alienvault.go
- commoncrawl.go
- crtsh.go
- dnsdb.go
- dnsdumpster.go
- entrust.go
- github.go
- ipapi.go
- iptoasn.go
- networksdb.go
- passivetotal.go
- pastebin.go
- radb.go
- robtex.go
- script.go
- script_exports.go
- securitytrails.go
- shadowserver.go
- sources.go
- teamcymru.go
- twitter.go
- umbrella.go
- urlscan.go
- viewdns.go
- virustotal.go
- whoisxml.go