Lint
parent
ebceef55a0
commit
bfaa31b7cc
|
@ -30,7 +30,7 @@ type ConfigFile struct {
|
|||
ExcludeSources []string `yaml:"exclude-sources,omitempty"`
|
||||
// API keys for different sources
|
||||
Binaryedge []string `yaml:"binaryedge"`
|
||||
C99 []string `yaml:"c99"`
|
||||
C99 []string `yaml:"c99"`
|
||||
Censys []string `yaml:"censys"`
|
||||
Certspotter []string `yaml:"certspotter"`
|
||||
Chaos []string `yaml:"chaos"`
|
||||
|
|
|
@ -14,13 +14,13 @@ import (
|
|||
type Source struct{}
|
||||
|
||||
type dnsdbLookupResponse struct {
|
||||
Success bool `json:"success"`
|
||||
Success bool `json:"success"`
|
||||
Subdomains []struct {
|
||||
Subdomain string `json:"subdomain"`
|
||||
Ip string `json:"ip"`
|
||||
Cloudflare bool `json:"cloudflare"`
|
||||
Subdomain string `json:"subdomain"`
|
||||
IP string `json:"ip"`
|
||||
Cloudflare bool `json:"cloudflare"`
|
||||
} `json:"subdomains"`
|
||||
Error string `json:"error"`
|
||||
Error string `json:"error"`
|
||||
}
|
||||
|
||||
// Run function returns all subdomains found with the service
|
||||
|
@ -29,7 +29,7 @@ func (s *Source) Run(ctx context.Context, domain string, session *subscraping.Se
|
|||
|
||||
go func() {
|
||||
defer close(results)
|
||||
|
||||
|
||||
if session.Keys.C99 == "" {
|
||||
return
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ type Session struct {
|
|||
// Keys contains the current API Keys we have in store
|
||||
type Keys struct {
|
||||
Binaryedge string `json:"binaryedge"`
|
||||
C99 string `json:"c99"`
|
||||
C99 string `json:"c99"`
|
||||
CensysToken string `json:"censysUsername"`
|
||||
CensysSecret string `json:"censysPassword"`
|
||||
Certspotter string `json:"certspotter"`
|
||||
|
|
Loading…
Reference in New Issue