mirror of https://github.com/daffainfo/nuclei.git
Bug fixes
parent
2bd2286115
commit
6794cbf4b6
|
@ -76,7 +76,7 @@ func New(options *types.Options) (*Runner, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
reportingOptions = &reporting.Options{}
|
reportingOptions = &reporting.Options{}
|
||||||
if parseErr := yaml.NewDecoder(file).Decode(options); parseErr != nil {
|
if parseErr := yaml.NewDecoder(file).Decode(reportingOptions); parseErr != nil {
|
||||||
file.Close()
|
file.Close()
|
||||||
gologger.Fatal().Msgf("Could not parse reporting config file: %s\n", parseErr)
|
gologger.Fatal().Msgf("Could not parse reporting config file: %s\n", parseErr)
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ func (i *Exporter) Export(event *output.ResultEvent) error {
|
||||||
filenameBuilder := &strings.Builder{}
|
filenameBuilder := &strings.Builder{}
|
||||||
filenameBuilder.WriteString(event.TemplateID)
|
filenameBuilder.WriteString(event.TemplateID)
|
||||||
filenameBuilder.WriteString("-")
|
filenameBuilder.WriteString("-")
|
||||||
filenameBuilder.WriteString(strings.ReplaceAll(event.Matched, "/", "_"))
|
filenameBuilder.WriteString(strings.ReplaceAll(strings.ReplaceAll(event.Matched, "/", "_"), ":", "_"))
|
||||||
filenameBuilder.WriteString(".md")
|
filenameBuilder.WriteString(".md")
|
||||||
finalFilename := filenameBuilder.String()
|
finalFilename := filenameBuilder.String()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue