From d1ad79f360b0653da896c3567e4ef337f4fafbb2 Mon Sep 17 00:00:00 2001 From: Tarun Koyalwar <45962551+tarunKoyalwar@users.noreply.github.com> Date: Wed, 15 Nov 2023 01:08:10 +0530 Subject: [PATCH] append excludetags instead of replacing (#4353) * append excludetags instead of replacing * bump asnmap client to v1.0.6 --------- Co-authored-by: Sandeep Singh --- lib/sdk_private.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/sdk_private.go b/lib/sdk_private.go index 4893da0de..3281ebdbe 100644 --- a/lib/sdk_private.go +++ b/lib/sdk_private.go @@ -75,9 +75,12 @@ func (e *NucleiEngine) applyRequiredDefaults() { if e.rateLimiter == nil { e.rateLimiter = ratelimit.New(context.Background(), 150, time.Second) } + if e.opts.ExcludeTags == nil { + e.opts.ExcludeTags = []string{} + } // these templates are known to have weak matchers // and idea is to disable them to avoid false positives - e.opts.ExcludeTags = config.ReadIgnoreFile().Tags + e.opts.ExcludeTags = append(e.opts.ExcludeTags, config.ReadIgnoreFile().Tags...) e.inputProvider = &inputs.SimpleInputProvider{ Inputs: []*contextargs.MetaInput{},