Skip to content

Commit

Permalink
feat(lib): add EnableGlobalMatchersTemplates SDK opt
Browse files Browse the repository at this point in the history
Signed-off-by: Dwi Siswanto <[email protected]>
  • Loading branch information
dwisiswant0 committed Nov 27, 2024
1 parent 9c25086 commit f913314
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,14 @@ func EnableSelfContainedTemplates() NucleiSDKOptions {
}
}

// EnableGlobalMatchersTemplates allows loading/executing global-matchers templates
func EnableGlobalMatchersTemplates() NucleiSDKOptions {
return func(e *NucleiEngine) error {
e.opts.EnableGlobalMatchersTemplates = true
return nil
}
}

// EnableFileTemplates allows loading/executing file protocol templates
func EnableFileTemplates() NucleiSDKOptions {
return func(e *NucleiEngine) error {
Expand Down

0 comments on commit f913314

Please sign in to comment.