append excludetags instead of replacing (#4353)

* append excludetags instead of replacing

* bump asnmap client to v1.0.6

---------

Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
dev
Tarun Koyalwar 2023-11-15 01:08:10 +05:30 committed by GitHub
parent 0ecd7be9d9
commit d1ad79f360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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{},