Misc changes to reporting

dev
Ice3man543 2021-09-09 19:56:39 +05:30
parent ee74561bbf
commit 6012994405
3 changed files with 7 additions and 3 deletions

View File

@ -133,7 +133,7 @@ func getCVEData(client *nvd.Client, filePath, data string) {
}
newTemplate := strings.ReplaceAll(data, infoBlockClean, newInfoBlock)
if changed {
ioutil.WriteFile(filePath, []byte(newTemplate), 0777)
_ = ioutil.WriteFile(filePath, []byte(newTemplate), 0777)
fmt.Printf("Wrote updated template to %s\n", filePath)
}
}

View File

@ -6,6 +6,7 @@ import (
"strconv"
"strings"
"github.com/projectdiscovery/nuclei/v2/pkg/catalog/config"
"github.com/projectdiscovery/nuclei/v2/pkg/utils"
"github.com/projectdiscovery/nuclei/v2/pkg/model"
@ -131,7 +132,8 @@ func MarkdownDescription(event *output.ResultEvent) string { // TODO remove the
}
}
builder.WriteString("\n---\nGenerated by [Nuclei](https://github.com/projectdiscovery/nuclei)")
builder.WriteString("\n---\nGenerated by [Nuclei](https://github.com/projectdiscovery/nuclei) ")
builder.WriteString(config.Version)
data := builder.String()
return data
}

View File

@ -8,6 +8,7 @@ import (
"github.com/andygrunwald/go-jira"
"github.com/projectdiscovery/gologger"
"github.com/projectdiscovery/nuclei/v2/pkg/catalog/config"
"github.com/projectdiscovery/nuclei/v2/pkg/output"
"github.com/projectdiscovery/nuclei/v2/pkg/reporting/format"
"github.com/projectdiscovery/nuclei/v2/pkg/types"
@ -240,7 +241,8 @@ func jiraFormatDescription(event *output.ResultEvent) string { // TODO remove th
}
}
}
builder.WriteString("\n---\nGenerated by [Nuclei|https://github.com/projectdiscovery/nuclei]")
builder.WriteString("\n---\nGenerated by [Nuclei|https://github.com/projectdiscovery/nuclei] ")
builder.WriteString(config.Version)
data := builder.String()
return data
}