Updated process.go
parent
f95da15c7f
commit
508a5ca974
10
process.go
10
process.go
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue