Versions in this module Expand all Collapse all v1 v1.0.8 Sep 2, 2023 v1.0.7 Sep 2, 2023 Changes in this version + var DefaultProviderConfigLocation = filepath.Join(UncoverConfigDir, "provider-config.yaml") + var DefaultRateLimits = map[string]*ratelimit.Options + var UncoverConfigDir = filepath.Join(folderutil.HomeDirOrDefault("."), ".config/uncover") + func GetHostname(u string) (string, error) + func NewHTTPRequest(method, url string, body io.Reader) (*retryablehttp.Request, error) + type Agent interface + Name func() string + Query func(*Session, *Query) (chan Result, error) + type Keys struct + CensysSecret string + CensysToken string + CriminalIPToken string + FofaEmail string + FofaKey string + HunterHowToken string + HunterToken string + NetlasToken string + PublicwwwToken string + QuakeToken string + Shodan string + ZoomEyeToken string + func (keys Keys) Empty() bool + type Provider struct + Censys []string + CriminalIP []string + Fofa []string + Hunter []string + HunterHow []string + Netlas []string + Publicwww []string + Quake []string + Shodan []string + ZoomEye []string + func NewProvider() *Provider + func (provider *Provider) GetKeys() Keys + func (provider *Provider) HasKeys() bool + func (provider *Provider) LoadProviderConfig(location string) error + func (provider *Provider) LoadProviderKeysFromEnv() + type Query struct + Limit int + Query string + type Result struct + Error error + Host string + IP string + Port int + Raw []byte + Source string + Timestamp int64 + Url string + func (result *Result) HostPort() string + func (result *Result) IpPort() string + func (result *Result) JSON() string + func (result *Result) RawData() string + type Session struct + Client *retryablehttp.Client + Keys *Keys + RateLimits *ratelimit.MultiLimiter + RetryMax int + func NewSession(keys *Keys, retryMax, timeout, rateLimit int, engines []string, ...) (*Session, error) + func (s *Session) Do(request *retryablehttp.Request, source string) (*http.Response, error)