Use nuclei-templates instead of custom autoscan directory list (#1968)

* Use nuclei-templates instead of custom autoscan directory list

* Use templates directory from config file
This commit is contained in:
Ice3man 2022-05-10 17:26:46 +05:30 committed by GitHub
parent d6b061697d
commit 25d6cbd95b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,8 @@ func New(opts Options) (*Service, error) {
if opts.ExecuterOpts.Options.Verbose {
gologger.Verbose().Msgf("Normalized mapping (%d): %v\n", len(mappingData), mappingData)
}
defaultTemplatesDirectories := []string{config.TemplatesDirectory}
// adding custom template path if available
if len(opts.ExecuterOpts.Options.Templates) > 0 {
defaultTemplatesDirectories = append(defaultTemplatesDirectories, opts.ExecuterOpts.Options.Templates...)
@ -118,10 +120,6 @@ func (s *Service) Execute() {
}
}
var (
defaultTemplatesDirectories = []string{"cves/", "default-logins/", "dns/", "exposures/", "miscellaneous/", "misconfiguration/", "network/", "takeovers/", "vulnerabilities/"}
)
const maxDefaultBody = 2 * 1024 * 1024
// executeWappalyzerTechDetection implements the logic to run the wappalyzer