Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #240 from s1cyan/pentest
Browse files Browse the repository at this point in the history
omit login from -x output
  • Loading branch information
davco01a authored Dec 14, 2020
2 parents c40073d + 126ce80 commit 751a9f1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cmd/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,15 @@ func sendHTTPRequest(method string, url string, jsonBody []byte) (*http.Response
}

if verboseHTTP {
requestDump, err := httputil.DumpRequest(req, true)
if err != nil {
fmt.Println(err)
if strings.Contains(url, "login") {
Info.log("Login to: " + url)
} else {
requestDump, err := httputil.DumpRequest(req, true)
if err != nil {
fmt.Println(err)
}
Info.log("requestDump: " + string(requestDump))
}
Info.log("requestDump: " + string(requestDump))
}

resp, err = client.Do(req)
Expand Down

0 comments on commit 751a9f1

Please sign in to comment.