change position of sdk text

dev
Ice3man 2024-03-11 22:39:32 +05:30
parent e9625d621f
commit a66b56fc79
1 changed files with 6 additions and 6 deletions

View File

@ -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
}