mirror of https://github.com/daffainfo/nuclei.git
Merge pull request #1664 from projectdiscovery/functional-test-fix
Added debug printing to failing functional testsdev
commit
ce0dfe6e80
|
@ -53,6 +53,9 @@ func RunNucleiBareArgsAndGetResults(debug bool, extra ...string) ([]string, erro
|
||||||
cmd.Args = append(cmd.Args, "-silent")
|
cmd.Args = append(cmd.Args, "-silent")
|
||||||
}
|
}
|
||||||
data, err := cmd.Output()
|
data, err := cmd.Output()
|
||||||
|
if debug {
|
||||||
|
fmt.Println(string(data))
|
||||||
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -76,6 +79,9 @@ func RunNucleiBinaryAndGetLoadedTemplates(nucleiBinary string, debug bool, args
|
||||||
fmt.Println(cmd.String())
|
fmt.Println(cmd.String())
|
||||||
}
|
}
|
||||||
data, err := cmd.CombinedOutput()
|
data, err := cmd.CombinedOutput()
|
||||||
|
if debug {
|
||||||
|
fmt.Println(string(data))
|
||||||
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue