small cleanup
parent
2ca7d5b145
commit
a9a3c81a1c
|
@ -312,13 +312,13 @@ func (s *Source) printSummary() {
|
||||||
fmt.Printf("\nRunning Source: %sCertificateTransparency%s", helper.Info, helper.Reset)
|
fmt.Printf("\nRunning Source: %sCertificateTransparency%s", helper.Info, helper.Reset)
|
||||||
}
|
}
|
||||||
if s.Ipv4Info {
|
if s.Ipv4Info {
|
||||||
fmt.Printf("\nRunning Source: %sIpv4Info%s\n", helper.Info, helper.Reset)
|
fmt.Printf("\nRunning Source: %sIpv4Info%s", helper.Info, helper.Reset)
|
||||||
}
|
}
|
||||||
if s.Yahoo {
|
if s.Yahoo {
|
||||||
fmt.Printf("\nRunning Source: %sYahoo%s\n", helper.Info, helper.Reset)
|
fmt.Printf("\nRunning Source: %sYahoo%s", helper.Info, helper.Reset)
|
||||||
}
|
}
|
||||||
if s.Dogpile {
|
if s.Dogpile {
|
||||||
fmt.Printf("\nRunning Source: %sDogpile%s\n", helper.Info, helper.Reset)
|
fmt.Printf("\nRunning Source: %sDogpile%s", helper.Info, helper.Reset)
|
||||||
}
|
}
|
||||||
if s.Exalead {
|
if s.Exalead {
|
||||||
fmt.Printf("\nRunning Source: %sExalead%s\n", helper.Info, helper.Reset)
|
fmt.Printf("\nRunning Source: %sExalead%s\n", helper.Info, helper.Reset)
|
||||||
|
|
|
@ -11,7 +11,6 @@ package dogpile
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
@ -31,7 +30,7 @@ func Query(domain string, state *helper.State, ch chan helper.Result) {
|
||||||
maxPages, _ := strconv.Atoi(state.CurrentSettings.DogpilePages)
|
maxPages, _ := strconv.Atoi(state.CurrentSettings.DogpilePages)
|
||||||
for currentPage := 0; currentPage <= maxPages; currentPage++ {
|
for currentPage := 0; currentPage <= maxPages; currentPage++ {
|
||||||
url := "http://www.dogpile.com/search/web?q=" + domain + "&qsi=" + strconv.Itoa(currentPage*15+1)
|
url := "http://www.dogpile.com/search/web?q=" + domain + "&qsi=" + strconv.Itoa(currentPage*15+1)
|
||||||
log.Print(url)
|
|
||||||
resp, err := helper.GetHTTPResponse(url, state.Timeout)
|
resp, err := helper.GetHTTPResponse(url, state.Timeout)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
result.Error = err
|
result.Error = err
|
||||||
|
|
Loading…
Reference in New Issue