Skip to content

Commit

Permalink
Update integration.go (#1319)
Browse files Browse the repository at this point in the history
Fixed minor mistakes in the comments
  • Loading branch information
0xGwyn authored Aug 15, 2023
1 parent 33709e6 commit 34762b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/testutils/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
)

// RunNucleiAndGetResults returns a list of results for a template
// RunHttpxAndGetResults returns a list of the results
func RunHttpxAndGetResults(url string, debug bool, extra ...string) ([]string, error) {
cmd := exec.Command("bash", "-c")
cmdLine := `echo "` + url + `" | ./httpx `
Expand Down Expand Up @@ -35,7 +35,7 @@ func RunHttpxAndGetResults(url string, debug bool, extra ...string) ([]string, e
return parts, nil
}

// RunNucleiAndGetResults returns a list of results for a template
// RunHttpxAndGetCombinedResults returns the results as a single string variable
func RunHttpxAndGetCombinedResults(url string, debug bool, extra ...string) (string, error) {
cmd := exec.Command("bash", "-c")
cmdLine := `echo "` + url + `" | ./httpx `
Expand All @@ -53,6 +53,8 @@ func RunHttpxAndGetCombinedResults(url string, debug bool, extra ...string) (str
}
return string(data), nil
}

// RunHttpxBinaryAndGetResults returns a list of the results
func RunHttpxBinaryAndGetResults(target string, httpxBinary string, debug bool, args []string) ([]string, error) {
cmd := exec.Command("bash", "-c")
cmdLine := fmt.Sprintf(`echo %s | %s `, target, httpxBinary)
Expand Down

0 comments on commit 34762b0

Please sign in to comment.