Documentation
¶
Index ¶
- func BuildHTMLReport(result []*Result) (string, error)
- func InitYamlPoC(s string) (map[string]interface{}, error)
- func InitYamlPoCFromBytes(ctx context.Context, c *client.HttpClient, data []byte) (*base.POC, error)
- func InitYamlPoCFromInterface(ctx context.Context, c *client.HttpClient, object map[string]interface{}) (*base.POC, error)
- func NewResultHTML(pocList *base.List[*base.POC]) (string, error)
- func NewResultJson(pocList *base.List[*base.POC]) (string, error)
- func NewResultTxt(pocList *base.List[*base.POC]) (string, error)
- func RunPOC(poc *base.POC, t string) (bool, error)
- func Start(ctx context.Context, cancel context.CancelFunc)
- type RespHeaderValue
- type RespValue
- type Result
- type ResultDetail
- type Rule
- type RuleFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildHTMLReport ¶
func InitYamlPoC ¶
func InitYamlPoCFromBytes ¶
Types ¶
type RespHeaderValue ¶
func (*RespHeaderValue) Get ¶
func (r *RespHeaderValue) Get(name string) (expression.EValue, error)
func (*RespHeaderValue) Keys ¶
func (r *RespHeaderValue) Keys() []string
func (*RespHeaderValue) ToString ¶
func (r *RespHeaderValue) ToString() expression.EString
type RespValue ¶
type RespValue struct {
Status expression.EInt
Body expression.EValue
Headers *RespHeaderValue
}
func (*RespValue) ToString ¶
func (r *RespValue) ToString() expression.EString
type Result ¶
type Result struct {
PocName string `json:"poc_name"`
Target string `json:"target"`
Details map[string]*ResultDetail `json:"details"`
}
Result 扫描结果
type ResultDetail ¶
type Rule ¶
type Rule map[string]expression.EFunction
func (Rule) GetValue ¶
func (r Rule) GetValue(_ *expression.Environment, key string) (expression.EValue, error)
type RuleFunction ¶
type RuleFunction struct {
// contains filtered or unexported fields
}
func (*RuleFunction) Call ¶
func (f *RuleFunction) Call(_ []expression.EValue) (expression.EValue, error)
func (*RuleFunction) ToString ¶
func (f *RuleFunction) ToString() expression.EString
Click to show internal directories.
Click to hide internal directories.