2022-12-01 04:22:23 -08:00
|
|
|
package gobypoc
|
2022-11-25 02:08:58 -08:00
|
|
|
|
2022-12-01 04:22:23 -08:00
|
|
|
type Check struct {
|
2022-12-01 02:13:51 -08:00
|
|
|
Type string `json:"type"`
|
|
|
|
Variable string `json:"variable"`
|
2022-12-01 04:22:23 -08:00
|
|
|
Operation string `json:"operation"`
|
|
|
|
Value string `json:"value"`
|
|
|
|
Bz string `json:"bz"`
|
2022-11-30 20:14:34 -08:00
|
|
|
}
|
2022-12-01 04:22:23 -08:00
|
|
|
type ResponseTest struct {
|
|
|
|
Type string `json:"type"`
|
|
|
|
Operation string `json:"operation"`
|
|
|
|
Checks []Check `json:"checks"`
|
2022-12-01 00:17:52 -08:00
|
|
|
}
|
2022-12-01 04:22:23 -08:00
|
|
|
type Request struct {
|
|
|
|
Method string `json:"method"`
|
|
|
|
Uri string `json:"uri"`
|
|
|
|
FollowRedirect bool `json:"follow_redirect"`
|
|
|
|
Header map[string]string `json:"header"`
|
|
|
|
DataType string `json:"data_type"`
|
|
|
|
Data string `json:"data"`
|
|
|
|
SetVariable []string `json:"set_variable"`
|
|
|
|
}
|
|
|
|
type ScanStep struct {
|
|
|
|
Requests Request
|
|
|
|
ResponseTest ResponseTest
|
|
|
|
SetVariable []string
|
2022-11-25 02:08:58 -08:00
|
|
|
}
|
|
|
|
|
2022-12-01 04:22:23 -08:00
|
|
|
type PocJson struct {
|
|
|
|
Name string `json:"Name"`
|
|
|
|
Level string `json:"Level"`
|
|
|
|
Tags []string `json:"Tags"`
|
|
|
|
Query string `json:"GobyQuery"`
|
|
|
|
Description string `json:"Description"`
|
|
|
|
Product string `json:"Product"`
|
|
|
|
Homepage string `json:"Homepage"`
|
|
|
|
Author string `json:"Author"`
|
|
|
|
Impact string `json:"Impact"`
|
|
|
|
Recommandation string `json:"Recommandation"`
|
|
|
|
References []string `json:"References"`
|
|
|
|
HasExp bool `json:"HasExp"`
|
|
|
|
ExpParams []struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Type string `json:"type"`
|
|
|
|
Value string `json:"value"`
|
|
|
|
Show string `json:"show"`
|
|
|
|
} `json:"ExpParams"`
|
|
|
|
ScanSteps []interface{} `json:"ScanSteps"`
|
|
|
|
ExploitSteps []interface{} `json:"ExploitSteps"`
|
|
|
|
PostTime string `json:"PostTime"`
|
|
|
|
Version string `json:"GobyVersion"`
|
2022-11-25 02:08:58 -08:00
|
|
|
}
|