Fixed aquatone output and fixed a bug in resolver

master
Ice3man543 2018-05-24 22:28:47 +05:30
parent 1a1a183e51
commit 068e844055
2 changed files with 5 additions and 6 deletions

View File

@ -338,13 +338,13 @@ func discover(state *helper.State, domain string, sourceConfig *Source) (subdoma
if state.Alive || state.AquatoneJSON {
// Nove remove all wildcard subdomains
if state.Silent != true {
fmt.Printf("\n\nResolving %s%d%s Unique Hosts found", helper.Info, len(validPassiveSubdomains), helper.Reset)
}
passiveSubdomainsArray = resolver.Resolve(state, validPassiveSubdomains)
for _, subdomain := range passiveSubdomainsArray {
PassiveSubdomains = append(PassiveSubdomains, subdomain.Fqdn)
}
if state.Silent != true {
fmt.Printf("\nResolving %s%d%s Unique Hosts found", helper.Info, len(validPassiveSubdomains), helper.Reset)
}
} else {
PassiveSubdomains = validPassiveSubdomains
}
@ -431,7 +431,6 @@ func Enumerate(state *helper.State) []string {
for _, job := range completedJobs {
if job.Result != nil {
results := job.Result.([]string)
if state.Output != "" {
if !state.IsJSON {
if !state.AquatoneJSON {

View File

@ -57,13 +57,13 @@ func Resolve(state *helper.State, list []string) (subdomains []helper.Domain) {
completedJobs := resolverPool.Results()
for _, job := range completedJobs {
if job.Result != nil {
if job.Result != "" {
fqdn := job.Args[0].(string)
ip := job.Result.(string)
subdomain := helper.Domain{IP: ip, Fqdn: fqdn}
if state.Silent != true {
if state.Verbose == true {
fmt.Printf("\n[RESOLVED] %s : %s", subdomain.Fqdn, subdomain.IP)
fmt.Printf("\n[%sRESOLVED%s] %s : %s", helper.Info, helper.Reset, subdomain.Fqdn, subdomain.IP)
}
}
ValidSubdomains = append(ValidSubdomains, subdomain)