mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 21:35:26 +00:00
Misc
This commit is contained in:
parent
719669b91a
commit
ea9c250a8d
@ -94,6 +94,7 @@ func (r *Runner) RunEnumeration() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
gologger.Fatalf("Could not evaluate template path '%s': %s\n", r.options.Templates, err)
|
gologger.Fatalf("Could not evaluate template path '%s': %s\n", r.options.Templates, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, match := range matches {
|
for _, match := range matches {
|
||||||
r.processTemplate(match)
|
r.processTemplate(match)
|
||||||
}
|
}
|
||||||
@ -103,7 +104,8 @@ func (r *Runner) RunEnumeration() {
|
|||||||
func (r *Runner) processTemplate(templatePath string) {
|
func (r *Runner) processTemplate(templatePath string) {
|
||||||
template, err := templates.ParseTemplate(templatePath)
|
template, err := templates.ParseTemplate(templatePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
gologger.Fatalf("Could not parse template file '%s': %s\n", templatePath, err)
|
gologger.Errorf("Could not parse template file '%s': %s\n", templatePath, err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle a list of hosts as argument
|
// Handle a list of hosts as argument
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user