goby

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOperation

func CheckOperation(check Checks, preq *proto.Response) bool

CheckOperation operation

Types

type Checks

type Checks struct {
	Bz        string `json:"bz"`
	Operation string `json:"operation"`
	Type      string `json:"type"`
	Value     string `json:"value"`
	Variable  string `json:"variable"`
}

type Poc

type Poc struct {
	Name           string        `json:"Name"`
	Description    string        `json:"Description"`
	Product        string        `json:"Product"`
	Homepage       string        `json:"Homepage"`
	DisclosureDate string        `json:"DisclosureDate"`
	Author         string        `json:"Author"`
	FofaQuery      string        `json:"FofaQuery"`
	GobyQuery      string        `json:"GobyQuery"`
	Level          string        `json:"Level"`
	Impact         string        `json:"Impact"`
	VulType        []interface{} `json:"VulType"`
	CVEIDs         []interface{} `json:"CVEIDs"`
	CNNVD          []interface{} `json:"CNNVD"`
	CNVD           []interface{} `json:"CNVD"`
	CVSSScore      string        `json:"CVSSScore"`
	Is0Day         bool          `json:"Is0day"`
	Recommendation string        `json:"Recommendation"`
	Translation    struct {
		CN struct {
			Name           string        `json:"Name"`
			Product        string        `json:"Product"`
			Description    string        `json:"Description"`
			Recommendation string        `json:"Recommendation"`
			Impact         string        `json:"Impact"`
			VulType        []interface{} `json:"VulType"`
			Tags           []interface{} `json:"Tags"`
		} `json:"CN"`
		EN struct {
			Name           string        `json:"Name"`
			Product        string        `json:"Product"`
			Description    string        `json:"Description"`
			Recommendation string        `json:"Recommendation"`
			Impact         string        `json:"Impact"`
			VulType        []interface{} `json:"VulType"`
			Tags           []interface{} `json:"Tags"`
		} `json:"EN"`
	} `json:"Translation"`
	References []string    `json:"References"`
	HasExp     bool        `json:"HasExp"`
	ExpParams  interface{} `json:"ExpParams"`
	ExpTips    struct {
		Type    string `json:"Type"`
		Content string `json:"Content"`
	} `json:"ExpTips"`
	ScanSteps      []interface{} `json:"ScanSteps"`
	ExploitSteps   interface{}   `json:"ExploitSteps"`
	Tags           interface{}   `json:"Tags"`
	AttackSurfaces struct {
		Application interface{} `json:"Application"`
		Support     interface{} `json:"Support"`
		Service     interface{} `json:"Service"`
		System      interface{} `json:"System"`
		Hardware    interface{} `json:"Hardware"`
	} `json:"AttackSurfaces"`
}

func LoadAllPoc

func LoadAllPoc(pocDir string) (pocs []*Poc, err error)

LoadAllPoc 加载全部poc

type Rule

type Rule struct {
	Request struct {
		Data           string            `json:"data"`
		DataType       string            `json:"data_type"`
		FollowRedirect bool              `json:"follow_redirect"`
		Header         map[string]string `json:"header"`
		Method         string            `json:"method"`
		Uri            string            `json:"uri"`
	} `json:"Request"`
	ResponseTest struct {
		Checks    []Checks `json:"checks"`
		Operation string   `json:"operation"`
		Type      string   `json:"type"`
	} `json:"ResponseTest"`
	SetVariable []interface{} `json:"SetVariable"`
}

func (*Rule) CheckResult

func (r *Rule) CheckResult(preq *proto.Response) bool

CheckResult checks

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL