Documentation
¶
Index ¶
Constants ¶
View Source
const OutputDirectory = "./reports"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonPocInfo ¶
type JsonPocInfo struct {
Id string `json:"id,omitempty"`
InfoName string `json:"infoname,omitempty"`
InfoAuthor string `json:"infoauthor,omitempty"`
InfoSeverity string `json:"infoseg,omitempty"`
InfoDescription string `json:"infodescription,omitempty"`
InfoReference []string `json:"inforeference,omitempty"`
}
type JsonReport ¶
type JsonReport struct {
sync.RWMutex
Result *result.Result
ReportFile string
JsonAll bool
// contains filtered or unexported fields
}
func NewJsonReport ¶
func NewJsonReport(json, JsonAll string) (*JsonReport, error)
func (*JsonReport) Append ¶
func (jr *JsonReport) Append() error
func (*JsonReport) AppendEndOfFile ¶
func (jr *JsonReport) AppendEndOfFile() error
func (*JsonReport) JsonContent ¶
func (jr *JsonReport) JsonContent() *JsonResult
func (*JsonReport) SetResult ¶
func (jr *JsonReport) SetResult(result *result.Result)
type JsonReqResp ¶
type JsonResult ¶
type JsonResult struct {
IsVul bool `json:"isvul,omitempty"`
Target string `json:"target"`
FullTarget string `json:"fulltarget,omitempty"`
PocInfo JsonPocInfo `json:"pocinfo,omitempty"`
PocResult []JsonReqResp `json:"pocresult,omitempty"`
Extractor map[string]any `json:"extractor,omitempty"`
}
type Report ¶
type Report struct {
sync.RWMutex
Result *result.Result
ReportFile string
Template TemplateStyle
// contains filtered or unexported fields
}
func NewReport ¶
func NewReport(fileName string, template TemplateStyle) (*Report, error)
fileName: the name of the report file template: the name of the template
func (*Report) AppendWebProbe ¶ added in v3.3.5
func (*Report) AppendWebProbeEntries ¶ added in v3.3.5
func (report *Report) AppendWebProbeEntries(entries []WebProbeEntry) error
type TemplateStyle ¶
type TemplateStyle int
const ( DefaultTemplate TemplateStyle = iota MinimalTemplate )
Click to show internal directories.
Click to hide internal directories.