From 52250c5c26b9b3cf8792b3a8920098aef34b44d2 Mon Sep 17 00:00:00 2001 From: ice3man Date: Tue, 3 Apr 2018 17:28:58 +0530 Subject: [PATCH] Updated process.go --- process.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/process.go b/process.go index 8feaf1e..35b20ad 100644 --- a/process.go +++ b/process.go @@ -16,9 +16,10 @@ import ( "subfinder/libsubfinder/helper" - // Load different Data sources + // Load different Passive data sources "subfinder/libsubfinder/sources/certspotter" "subfinder/libsubfinder/sources/crtsh" + "subfinder/libsubfinder/sources/hackertarget" "subfinder/libsubfinder/sources/threatcrowd" "subfinder/libsubfinder/sources/virustotal" "subfinder/libsubfinder/sources/netcraft" @@ -93,6 +94,15 @@ func main() { finalPassiveSubdomains = append(finalPassiveSubdomains, subdomain) } + fmt.Printf("\n\n[-] Trying Hackertarget API") + hackertargetResults, err := hackertarget.Query(state) + if err != nil { + fmt.Println(err) + } + for _, subdomain := range hackertargetResults { + finalPassiveSubdomains = append(finalPassiveSubdomains, subdomain) + } + fmt.Printf("\n\n[-] Trying Virustotal Domain Query") virustotalResults, err := virustotal.Query(state) if err != nil {