master
Defuse Venue 2021-07-10 15:36:49 +09:00
parent ebceef55a0
commit bfaa31b7cc
3 changed files with 8 additions and 8 deletions

View File

@ -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"`

View File

@ -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
}

View File

@ -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"`