mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 04:45:27 +00:00
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:
parent
d6b061697d
commit
25d6cbd95b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user