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"`
}
type Report ¶
type Report struct {
sync.RWMutex
Result *result.Result
ReportFile string
Template TemplateStyle
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.