Skip to content

Commit 008a7bf

Browse files
committed
optimize print
1 parent c310954 commit 008a7bf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

cmd/rootCmd.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,11 @@ EndpointSearch is a scanner that probes the endpoint of a cloud service
7474
recordList := pkg.SearchSRVRecord(ipRecordList...)
7575

7676
client := pkg.GenerateHTTPClient(define.TimeOut, define.ProxyURL)
77+
fmt.Println("URL exist:")
7778
respList := pkg.SearchEndpoint(client, portList, recordList...)
7879

7980
resultList := Compare.RemoveDuplicates(rule.JudgeEndpoint(respList...))
80-
fmt.Println("Service endpoint exist:")
81+
fmt.Println("Cloud Service Endpoint URL exist:")
8182
pkg.WriteToFile(resultList, define.OutPut)
8283
fmt.Printf("[+] The output is in %s\n", define.OutPut)
8384
},

pkg/output.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func WriteToFile(writeResultList []string, output string) {
1919
sort.Strings(writeResultList)
2020
if len(writeResultList) != 0 {
2121
for _, i := range writeResultList {
22-
fmt.Println("[+] service endpoint:", i)
22+
fmt.Println("[+]", i)
2323
fmt.Fprintln(writer, i)
2424
}
2525
}

pkg/req.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func SendHttpRequest(client *http.Client, request string, resultsChan chan Respo
116116
header = append(header, val...)
117117
}
118118
body := Network.HandleResponse(resp)
119-
119+
fmt.Printf("[+] %s\n", requestStr)
120120
resultsChan <- ResponseData{requestStr, header, body}
121121
}
122122
}

0 commit comments

Comments
 (0)