Update integration.go (#1319)

Fixed minor mistakes in the comments
This commit is contained in:
Gwyn
2023-08-15 15:27:11 +03:30
committed by GitHub
parent 33709e6adb
commit 34762b092a
+4 -2
View File
@@ -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 `
@@ -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 `
@@ -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)