Updated with coloring logic

master
ice3man 2018-04-04 17:20:47 +05:30
parent 0f65797daf
commit 1080fefea2
6 changed files with 6 additions and 6 deletions

View File

@ -63,7 +63,7 @@ func Query(state *helper.State) (subdomains []string, err error) {
if state.Verbose == true {
if state.Color == true {
fmt.Printf("\n[\033[31;1;4mCERTSPOTTER\033[0m] %s", dns_name)
fmt.Printf("\n[%sCERTSPOTTER%s] %s", helper.Red, helper.Reset, dns_name)
} else {
fmt.Printf("\n[CERTSPOTTER] %s", dns_name)
}

View File

@ -77,7 +77,7 @@ func Query(state *helper.State) (subdomains []string, err error) {
if state.Verbose == true {
if state.Color == true {
fmt.Printf("\n[\033[31;1;4mCRT.SH\033[0m] %s", subdomain.Name_value)
fmt.Printf("\n[%sCRT.SH%s] %s", helper.Red, helper.Reset, subdomain.Name_value)
} else {
fmt.Printf("\n[CRT.SH] %s", subdomain.Name_value)
}

View File

@ -44,7 +44,7 @@ func Query(state *helper.State) (subdomains []string, err error) {
if state.Verbose == true {
if state.Color == true {
fmt.Printf("\n[\033[31;1;4mHACKERTARGET\033[0m] %s", subdomain)
fmt.Printf("\n[%sHACKERTARGET%s] %s", helper.Red, helper.Reset, subdomain)
} else {
fmt.Printf("\n[HACKERTARGET] %s", subdomain)
}

View File

@ -80,7 +80,7 @@ func enumerate(state *helper.State, baseUrl string) (err error) {
if state.Verbose == true {
if state.Color == true {
fmt.Printf("\n[\033[31;1;4mNETCRAFT\033[0m] %s", finishedSub)
fmt.Printf("\n[%sNETCRAFT%s] %s", helper.Red, helper.Reset, finishedSub)
} else {
fmt.Printf("\n[NETCRAFT] %s", finishedSub)
}

View File

@ -62,7 +62,7 @@ func Query(state *helper.State) (subdomains []string, err error) {
if state.Verbose == true {
if state.Color == true {
fmt.Printf("\n[\033[31;1;4mTHREATCROWD\033[0m] %s", subdomain)
fmt.Printf("\n[%sTHREATCROWD%s] %s", helper.Red, helper.Reset, subdomain)
} else {
fmt.Printf("\n[THREATCROWD] %s", subdomain)
}

View File

@ -64,7 +64,7 @@ func queryVirustotalApi(state *helper.State) (subdomains []string, err error) {
if state.Verbose == true {
if state.Color == true {
fmt.Printf("\n[\033[31;1;4mVIRUSTOTAL\033[0m] %s", subdomain)
fmt.Printf("\n[%sVIRUSTOTAL%s] %s", helper.Red, helper.Reset, subdomain)
} else {
fmt.Printf("\n[VIRUSTOTAL] %s", subdomain)
}