mirror of https://github.com/daffainfo/nuclei.git
Misc changes to reporting
parent
ee74561bbf
commit
6012994405
|
@ -133,7 +133,7 @@ func getCVEData(client *nvd.Client, filePath, data string) {
|
||||||
}
|
}
|
||||||
newTemplate := strings.ReplaceAll(data, infoBlockClean, newInfoBlock)
|
newTemplate := strings.ReplaceAll(data, infoBlockClean, newInfoBlock)
|
||||||
if changed {
|
if changed {
|
||||||
ioutil.WriteFile(filePath, []byte(newTemplate), 0777)
|
_ = ioutil.WriteFile(filePath, []byte(newTemplate), 0777)
|
||||||
fmt.Printf("Wrote updated template to %s\n", filePath)
|
fmt.Printf("Wrote updated template to %s\n", filePath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/projectdiscovery/nuclei/v2/pkg/catalog/config"
|
||||||
"github.com/projectdiscovery/nuclei/v2/pkg/utils"
|
"github.com/projectdiscovery/nuclei/v2/pkg/utils"
|
||||||
|
|
||||||
"github.com/projectdiscovery/nuclei/v2/pkg/model"
|
"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()
|
data := builder.String()
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@ import (
|
||||||
|
|
||||||
"github.com/andygrunwald/go-jira"
|
"github.com/andygrunwald/go-jira"
|
||||||
"github.com/projectdiscovery/gologger"
|
"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/output"
|
||||||
"github.com/projectdiscovery/nuclei/v2/pkg/reporting/format"
|
"github.com/projectdiscovery/nuclei/v2/pkg/reporting/format"
|
||||||
"github.com/projectdiscovery/nuclei/v2/pkg/types"
|
"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()
|
data := builder.String()
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue