diff --git a/v2/cmd/nuclei/main.go b/v2/cmd/nuclei/main.go index 019c7889..574da4fc 100644 --- a/v2/cmd/nuclei/main.go +++ b/v2/cmd/nuclei/main.go @@ -85,7 +85,7 @@ based on templates offering massive extensibility and ease of use.`) set.IntVar(&options.PageTimeout, "page-timeout", 20, "Seconds to wait for each page in headless") set.BoolVarP(&options.NewTemplates, "new-templates", "nt", false, "Only run newly added templates") set.StringVarP(&options.DiskExportDirectory, "disk-export", "de", "", "Directory on disk to export reports in markdown to") - set.BoolVar(&options.Interactsh, "interactsh", false, "Use interactsh server for blind interaction polling") + set.BoolVar(&options.NoInteractsh, "no-interactsh", false, "Do not use interactsh server for blind interaction polling") set.StringVar(&options.InteractshURL, "interactsh-url", "https://interact.sh", "Interactsh Server URL") set.IntVar(&options.InteractionsCacheSize, "interactions-cache-size", 5000, "Number of requests to keep in interactions cache") set.IntVar(&options.InteractionsEviction, "interactions-eviction", 60, "Number of seconds to wait before evicting requests from cache") diff --git a/v2/pkg/protocols/common/interactsh/interactsh.go b/v2/pkg/protocols/common/interactsh/interactsh.go index 6c11010c..5f2acc78 100644 --- a/v2/pkg/protocols/common/interactsh/interactsh.go +++ b/v2/pkg/protocols/common/interactsh/interactsh.go @@ -170,6 +170,10 @@ func (c *Client) RequestEvent(interactshURL string, data *RequestData) { // Used by requests to show result or not depending on presence of interact.sh // data part matchers. func HasMatchers(operators *operators.Operators) bool { + if operators == nil { + return false + } + for _, matcher := range operators.Matchers { if strings.HasPrefix(matcher.Part, "interactsh-") { return true diff --git a/v2/pkg/types/types.go b/v2/pkg/types/types.go index d5bd5f22..d9b40700 100644 --- a/v2/pkg/types/types.go +++ b/v2/pkg/types/types.go @@ -123,6 +123,6 @@ type Options struct { Project bool // NewTemplates only runs newly added templates from the repository NewTemplates bool - // Interactsh enables use of interactsh server for interaction polling - Interactsh bool + // NoInteractsh disables use of interactsh server for interaction polling + NoInteractsh bool }