diff --git a/cmd/rootCmd.go b/cmd/rootCmd.go index 8ee8150..3bf3627 100644 --- a/cmd/rootCmd.go +++ b/cmd/rootCmd.go @@ -74,10 +74,11 @@ EndpointSearch is a scanner that probes the endpoint of a cloud service recordList := pkg.SearchSRVRecord(ipRecordList...) client := pkg.GenerateHTTPClient(define.TimeOut, define.ProxyURL) + fmt.Println("URL exist:") respList := pkg.SearchEndpoint(client, portList, recordList...) resultList := Compare.RemoveDuplicates(rule.JudgeEndpoint(respList...)) - fmt.Println("Service endpoint exist:") + fmt.Println("Cloud Service Endpoint URL exist:") pkg.WriteToFile(resultList, define.OutPut) fmt.Printf("[+] The output is in %s\n", define.OutPut) }, diff --git a/pkg/output.go b/pkg/output.go index 3bcc0a4..a7d503f 100644 --- a/pkg/output.go +++ b/pkg/output.go @@ -19,7 +19,7 @@ func WriteToFile(writeResultList []string, output string) { sort.Strings(writeResultList) if len(writeResultList) != 0 { for _, i := range writeResultList { - fmt.Println("[+] service endpoint:", i) + fmt.Println("[+]", i) fmt.Fprintln(writer, i) } } diff --git a/pkg/req.go b/pkg/req.go index b7c36d9..f89ebc2 100644 --- a/pkg/req.go +++ b/pkg/req.go @@ -116,7 +116,7 @@ func SendHttpRequest(client *http.Client, request string, resultsChan chan Respo header = append(header, val...) } body := Network.HandleResponse(resp) - + fmt.Printf("[+] %s\n", requestStr) resultsChan <- ResponseData{requestStr, header, body} } }