Documentation
¶
Index ¶
- Variables
- func CheckMultiPoc(req *http.Request, pocs []*Poc, workers int, info *common.HostInfo)
- func Evaluate(env *cel.Env, expression string, params map[string]interface{}) (ref.Val, error)
- func InitHttpClient(ThreadsNum int, Timeout time.Duration) error
- func Inithttp(num int, timeout int64)
- func NewEnv(c *CustomLib) (*cel.Env, error)
- func RandomStr(randSource *rand.Rand, letterBytes string, n int) string
- func UrlTypeToString(u *UrlType) string
- type CustomLib
- type Detail
- type Poc
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetBody() []byte
- func (m *Request) GetContentType() string
- func (m *Request) GetHeaders() map[string]string
- func (m *Request) GetMethod() string
- func (m *Request) GetUrl() *UrlType
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetBody() []byte
- func (m *Response) GetContentType() string
- func (m *Response) GetHeaders() map[string]string
- func (m *Response) GetStatus() int32
- func (m *Response) GetUrl() *UrlType
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type Rules
- type Task
- type UrlType
- func (*UrlType) Descriptor() ([]byte, []int)
- func (m *UrlType) GetDomain() string
- func (m *UrlType) GetFragment() string
- func (m *UrlType) GetHost() string
- func (m *UrlType) GetPath() string
- func (m *UrlType) GetPort() string
- func (m *UrlType) GetQuery() string
- func (m *UrlType) GetScheme() string
- func (*UrlType) ProtoMessage()
- func (m *UrlType) Reset()
- func (m *UrlType) String() string
- func (m *UrlType) XXX_DiscardUnknown()
- func (m *UrlType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UrlType) XXX_Merge(src proto.Message)
- func (m *UrlType) XXX_Size() int
- func (m *UrlType) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Client *http.Client ClientNoRedirect *http.Client )
Functions ¶
func CheckMultiPoc ¶
func UrlTypeToString ¶
Types ¶
type CustomLib ¶
type CustomLib struct {
// contains filtered or unexported fields
}
func NewEnvOption ¶
func NewEnvOption() CustomLib
func (*CustomLib) CompileOptions ¶
声明环境中的变量类型和函数
func (*CustomLib) ProgramOptions ¶
func (c *CustomLib) ProgramOptions() []cel.ProgramOption
func (*CustomLib) UpdateCompileOptions ¶
type Poc ¶
type Poc struct {
Name string `yaml:"name"`
Set map[string]string `yaml:"set"`
Sets map[string][]string `yaml:"sets"`
Rules []Rules `yaml:"rules"`
Groups map[string][]Rules `yaml:"groups"`
Exploit []Rules `yaml:"exploit"`
Exec []Rules `yaml:"exec"`
Detail Detail `yaml:"detail"`
}
func LoadPocStr ¶ added in v0.0.2
type Request ¶
type Request struct {
Url *UrlType `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
Headers map[string]string `` /* 155-byte string literal not displayed */
ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Request) Descriptor ¶
func (*Request) GetContentType ¶
func (*Request) GetHeaders ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct {
Url *UrlType `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
Headers map[string]string `` /* 155-byte string literal not displayed */
ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Response) Descriptor ¶
func (*Response) GetContentType ¶
func (*Response) GetHeaders ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type UrlType ¶
type UrlType struct {
Scheme string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"`
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"`
Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
Query string `protobuf:"bytes,6,opt,name=query,proto3" json:"query,omitempty"`
Fragment string `protobuf:"bytes,7,opt,name=fragment,proto3" json:"fragment,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*UrlType) Descriptor ¶
func (*UrlType) GetFragment ¶
func (*UrlType) ProtoMessage ¶
func (*UrlType) ProtoMessage()
func (*UrlType) XXX_DiscardUnknown ¶
func (m *UrlType) XXX_DiscardUnknown()
func (*UrlType) XXX_Marshal ¶
func (*UrlType) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.