datasrcs

package
v3.7.3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GetAllSources

func GetAllSources(sys systems.System) []requests.Service

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

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 {
	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.

func (*AlienVault) Type

func (a *AlienVault) Type() string

Type 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 NewCrtsh

func NewCrtsh(sys systems.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 {
	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 NewDNSDB

func NewDNSDB(sys systems.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 {
	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

func NewEntrust(sys systems.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 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 NewGitHub

func NewGitHub(sys systems.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 IPAPI

type IPAPI struct {
	requests.BaseService

	SourceType string
}

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

func NewIPAPI

func NewIPAPI(sys systems.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 {
	requests.BaseService

	SourceType string
}

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

func NewIPToASN

func NewIPToASN(sys systems.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 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.

func (*NetworksDB) Type

func (n *NetworksDB) Type() string

Type 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

func NewPastebin(sys systems.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 {
	requests.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 systems.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 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 NewRobtex

func NewRobtex(sys systems.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 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 NewScript added in v3.7.0

func NewScript(script string, sys systems.System) *Script

NewScript returns he object initialized, but not yet started.

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) OnStart added in v3.7.0

func (s *Script) OnStart() error

OnStart implements the Service interface.

func (*Script) OnStop added in v3.7.0

func (s *Script) OnStop() error

OnStop implements the Service interface.

func (*Script) OnSubdomainDiscovered added in v3.7.0

func (s *Script) OnSubdomainDiscovered(ctx context.Context, req *requests.DNSRequest, times int)

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.

func (*Script) Type added in v3.7.0

func (s *Script) Type() string

Type 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 Spyse

type Spyse struct {
	requests.BaseService

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

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

func NewSpyse

func NewSpyse(sys systems.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 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

func NewTeamCymru(sys systems.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 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

func NewTwitter(sys systems.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 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

func NewURLScan(sys systems.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 {
	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

func NewUmbrella(sys systems.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 {
	requests.BaseService

	SourceType string
}

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

func NewViewDNS

func NewViewDNS(sys systems.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 {
	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.

func (*VirusTotal) Type

func (v *VirusTotal) Type() string

Type 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

func NewWhoisXML(sys systems.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.

Jump to

Keyboard shortcuts

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