Updated process.go

master
ice3man 2018-03-31 18:54:19 +05:30
parent f95da15c7f
commit 508a5ca974
1 changed files with 10 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import (
"subfinder/libsubfinder/sources/crtsh"
"subfinder/libsubfinder/sources/threatcrowd"
"subfinder/libsubfinder/sources/virustotal"
"subfinder/libsubfinder/sources/netcraft"
)
// ParseCmdLine ... Parses command line into settings
@ -101,6 +102,15 @@ func main() {
finalPassiveSubdomains = append(finalPassiveSubdomains, subdomain)
}
fmt.Printf("\n\n[-] Trying Netcraft Domain Query")
netcraftResults, err := netcraft.Query(state)
if err != nil {
fmt.Println(err)
}
for _, subdomain := range netcraftResults {
finalPassiveSubdomains = append(finalPassiveSubdomains, subdomain)
}
// Now remove duplicate items from the slice
unique_passive_subdomains := helper.Unique(finalPassiveSubdomains)
fmt.Printf("\n\n[#] Total %d Unique subdomains found passively\n\n", len(unique_passive_subdomains))