mirror of https://github.com/daffainfo/nuclei.git
change position of sdk text
parent
e9625d621f
commit
a66b56fc79
|
@ -54,6 +54,12 @@ func CreateReportDescription(event *output.ResultEvent, formatter ResultFormatte
|
|||
builder.WriteString(fmt.Sprintf("%s: %s\n\n", formatter.MakeBold(key), types.ToString(data)))
|
||||
})
|
||||
|
||||
if len(ReportGenerationMetadataHooks) > 0 {
|
||||
for _, hook := range ReportGenerationMetadataHooks {
|
||||
builder.WriteString(hook(event, formatter))
|
||||
}
|
||||
}
|
||||
|
||||
builder.WriteString(formatter.MakeBold("Template Information"))
|
||||
builder.WriteString("\n\n")
|
||||
builder.WriteString(CreateTemplateInfoTable(&event.Info, formatter))
|
||||
|
@ -144,12 +150,6 @@ func CreateReportDescription(event *output.ResultEvent, formatter ResultFormatte
|
|||
|
||||
builder.WriteString("\n" + formatter.CreateHorizontalLine() + "\n")
|
||||
builder.WriteString(fmt.Sprintf("Generated by %s", formatter.CreateLink("Nuclei "+config.Version, "https://github.com/projectdiscovery/nuclei")))
|
||||
|
||||
if len(ReportGenerationMetadataHooks) > 0 {
|
||||
for _, hook := range ReportGenerationMetadataHooks {
|
||||
builder.WriteString(hook(event, formatter))
|
||||
}
|
||||
}
|
||||
data := builder.String()
|
||||
return data
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue