From b2e416b0dd6d1dd6f42e59eb74c1fc85a267d65a Mon Sep 17 00:00:00 2001 From: Ice3man543 Date: Fri, 11 Jun 2021 14:44:37 +0530 Subject: [PATCH] Fixed nuclei panic for issue #760 --- v2/internal/runner/runner.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v2/internal/runner/runner.go b/v2/internal/runner/runner.go index 40a965f2..62cd9336 100644 --- a/v2/internal/runner/runner.go +++ b/v2/internal/runner/runner.go @@ -66,13 +66,13 @@ func New(options *types.Options) (*Runner, error) { if err := runner.updateTemplates(); err != nil { gologger.Warning().Msgf("Could not update templates: %s\n", err) } + + runner.catalog = catalog.New(runner.options.TemplatesDirectory) // Read nucleiignore file if given a templateconfig if runner.templatesConfig != nil { runner.readNucleiIgnoreFile() + runner.catalog.AppendIgnore(runner.templatesConfig.IgnorePaths) } - runner.catalog = catalog.New(runner.options.TemplatesDirectory) - runner.catalog.AppendIgnore(runner.templatesConfig.IgnorePaths) - var reportingOptions *reporting.Options if options.ReportingConfig != "" { file, err := os.Open(options.ReportingConfig)