Updated Waybackarchive Code

master
ice3man 2018-04-22 21:35:39 +05:30
parent d0889dea06
commit e103a7a7d8
1 changed files with 8 additions and 0 deletions

View File

@ -52,6 +52,8 @@ func Query(state *helper.State, ch chan helper.Result) {
return
}
var initialSubs []string
// Append each subdomain found to subdomains array
for _, url := range urls {
@ -67,6 +69,12 @@ func Query(state *helper.State, ch chan helper.Result) {
subdomain = strings.Split(first, ":")[0]
}
initialSubs = append(initialSubs, subdomain)
}
validSubdomains := helper.Unique(initialSubs)
for _, subdomain := range validSubdomains {
if state.Verbose == true {
if state.Color == true {
fmt.Printf("\n[%sWAYBACKARCHIVE%s] %s", helper.Red, helper.Reset, subdomain)