Documentation
¶
Index ¶
- Variables
- type AddrType
- func (*AddrType) Descriptor() ([]byte, []int)deprecated
- func (x *AddrType) GetAddr() string
- func (x *AddrType) GetPort() string
- func (x *AddrType) GetTransport() string
- func (*AddrType) ProtoMessage()
- func (x *AddrType) ProtoReflect() protoreflect.Message
- func (x *AddrType) Reset()
- func (x *AddrType) String() string
- type ConnInfoType
- func (*ConnInfoType) Descriptor() ([]byte, []int)deprecated
- func (x *ConnInfoType) GetDestination() *AddrType
- func (x *ConnInfoType) GetSource() *AddrType
- func (*ConnInfoType) ProtoMessage()
- func (x *ConnInfoType) ProtoReflect() protoreflect.Message
- func (x *ConnInfoType) Reset()
- func (x *ConnInfoType) String() string
- type Detail
- type FingerPrint
- type HostInfo
- type HttpRequestCache
- type Infos
- type Payloads
- type PayloadsMapSlice
- type Poc
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetBody() []byte
- func (x *Request) GetConnectionId() string
- func (x *Request) GetContent() string
- func (x *Request) GetContentType() string
- func (x *Request) GetHeaders() map[string]string
- func (x *Request) GetMethod() string
- func (x *Request) GetRaw() []byte
- func (x *Request) GetRawHeader() []byte
- func (x *Request) GetReadTimeout() string
- func (x *Request) GetUrl() *UrlType
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetBody() []byte
- func (x *Response) GetConn() *ConnInfoType
- func (x *Response) GetContentType() string
- func (x *Response) GetHeaders() map[string]string
- func (x *Response) GetLatency() int64
- func (x *Response) GetRaw() []byte
- func (x *Response) GetRawHeader() []byte
- func (x *Response) GetStatus() int32
- func (x *Response) GetUrl() *UrlType
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type Reverse
- func (*Reverse) Descriptor() ([]byte, []int)deprecated
- func (x *Reverse) GetDomain() string
- func (x *Reverse) GetIp() string
- func (x *Reverse) GetIsDomainNameServer() bool
- func (x *Reverse) GetReverseType() ReverseType
- func (x *Reverse) GetUrl() *UrlType
- func (*Reverse) ProtoMessage()
- func (x *Reverse) ProtoReflect() protoreflect.Message
- func (x *Reverse) Reset()
- func (x *Reverse) String() string
- type ReverseType
- func (ReverseType) Descriptor() protoreflect.EnumDescriptor
- func (x ReverseType) Enum() *ReverseType
- func (ReverseType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReverseType) Number() protoreflect.EnumNumber
- func (x ReverseType) String() string
- func (ReverseType) Type() protoreflect.EnumType
- type Rule
- type RuleMapItem
- type RuleMapSlice
- type RuleRequest
- type SetMapSlice
- type TCPUDPRequestCache
- type Task
- type UrlType
- func (*UrlType) Descriptor() ([]byte, []int)deprecated
- func (x *UrlType) GetDomain() string
- func (x *UrlType) GetFragment() string
- func (x *UrlType) GetHost() string
- func (x *UrlType) GetPath() string
- func (x *UrlType) GetPort() string
- func (x *UrlType) GetQuery() string
- func (x *UrlType) GetScheme() string
- func (*UrlType) ProtoMessage()
- func (x *UrlType) ProtoReflect() protoreflect.Message
- func (x *UrlType) Reset()
- func (x *UrlType) String() string
- type Vulnerability
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ReverseType_name = map[int32]string{ 0: "Ceye", 1: "DnslogCN", } ReverseType_value = map[string]int32{ "Ceye": 0, "DnslogCN": 1, } )
Enum value maps for ReverseType.
View Source
var File_requests_proto protoreflect.FileDescriptor
View Source
var ORDER = 0
Functions ¶
This section is empty.
Types ¶
type AddrType ¶
type AddrType struct {
Transport string `protobuf:"bytes,1,opt,name=transport,proto3" json:"transport,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Port string `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"`
// contains filtered or unexported fields
}
func (*AddrType) Descriptor
deprecated
func (*AddrType) GetTransport ¶
func (*AddrType) ProtoMessage ¶
func (*AddrType) ProtoMessage()
func (*AddrType) ProtoReflect ¶
func (x *AddrType) ProtoReflect() protoreflect.Message
type ConnInfoType ¶
type ConnInfoType struct {
Source *AddrType `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
Destination *AddrType `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
// contains filtered or unexported fields
}
func (*ConnInfoType) Descriptor
deprecated
func (*ConnInfoType) Descriptor() ([]byte, []int)
Deprecated: Use ConnInfoType.ProtoReflect.Descriptor instead.
func (*ConnInfoType) GetDestination ¶
func (x *ConnInfoType) GetDestination() *AddrType
func (*ConnInfoType) GetSource ¶
func (x *ConnInfoType) GetSource() *AddrType
func (*ConnInfoType) ProtoMessage ¶
func (*ConnInfoType) ProtoMessage()
func (*ConnInfoType) ProtoReflect ¶
func (x *ConnInfoType) ProtoReflect() protoreflect.Message
func (*ConnInfoType) Reset ¶
func (x *ConnInfoType) Reset()
func (*ConnInfoType) String ¶
func (x *ConnInfoType) String() string
type Detail ¶
type Detail struct {
Author string `yaml:"author"`
Links []string `yaml:"links"`
FingerPrint FingerPrint `yaml:"fingerprint"`
Vulnerability Vulnerability `yaml:"vulnerability"`
Description string `yaml:"description"`
Version string `yaml:"version"`
Tags string `yaml:"tags"`
}
type FingerPrint ¶
type HttpRequestCache ¶
type Payloads ¶
type Payloads struct {
Continue bool `yaml:"continue,omitempty"`
Payloads PayloadsMapSlice `yaml:"payloads"`
}
type PayloadsMapSlice ¶
type Poc ¶
type Poc struct {
Name string `yaml:"name"`
Transport string `yaml:"transport"`
Set SetMapSlice `yaml:"set"`
Payloads Payloads `yaml:"payloads"`
Rules RuleMapSlice `yaml:"rules"`
Expression string `yaml:"expression"`
Detail Detail `yaml:"detail"`
}
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"`
Raw []byte `protobuf:"bytes,6,opt,name=raw,proto3" json:"raw,omitempty"`
RawHeader []byte `protobuf:"bytes,7,opt,name=raw_header,json=rawHeader,proto3" json:"raw_header,omitempty"`
Content string `protobuf:"bytes,8,opt,name=content,proto3" json:"content,omitempty"`
ReadTimeout string `protobuf:"bytes,9,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"`
ConnectionId string `protobuf:"bytes,10,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// contains filtered or unexported fields
}
func (*Request) Descriptor
deprecated
func (*Request) GetConnectionId ¶
func (*Request) GetContent ¶
func (*Request) GetContentType ¶
func (*Request) GetHeaders ¶
func (*Request) GetRawHeader ¶
func (*Request) GetReadTimeout ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
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"`
Raw []byte `protobuf:"bytes,6,opt,name=raw,proto3" json:"raw,omitempty"`
RawHeader []byte `protobuf:"bytes,7,opt,name=raw_header,json=rawHeader,proto3" json:"raw_header,omitempty"`
Latency int64 `protobuf:"varint,8,opt,name=latency,proto3" json:"latency,omitempty"`
Conn *ConnInfoType `protobuf:"bytes,9,opt,name=conn,proto3" json:"conn,omitempty"`
// contains filtered or unexported fields
}
func (*Response) Descriptor
deprecated
func (*Response) GetConn ¶
func (x *Response) GetConn() *ConnInfoType
func (*Response) GetContentType ¶
func (*Response) GetHeaders ¶
func (*Response) GetLatency ¶
func (*Response) GetRawHeader ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type Reverse ¶
type Reverse struct {
Url *UrlType `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
IsDomainNameServer bool `protobuf:"varint,4,opt,name=is_domain_name_server,json=isDomainNameServer,proto3" json:"is_domain_name_server,omitempty"`
ReverseType ReverseType `protobuf:"varint,5,opt,name=reverse_type,json=reverseType,proto3,enum=structs.ReverseType" json:"reverse_type,omitempty"`
// contains filtered or unexported fields
}
func (*Reverse) Descriptor
deprecated
func (*Reverse) GetIsDomainNameServer ¶
func (*Reverse) GetReverseType ¶
func (x *Reverse) GetReverseType() ReverseType
func (*Reverse) ProtoMessage ¶
func (*Reverse) ProtoMessage()
func (*Reverse) ProtoReflect ¶
func (x *Reverse) ProtoReflect() protoreflect.Message
type ReverseType ¶
type ReverseType int32
const ( ReverseType_Ceye ReverseType = 0 ReverseType_DnslogCN ReverseType = 1 )
func (ReverseType) Descriptor ¶
func (ReverseType) Descriptor() protoreflect.EnumDescriptor
func (ReverseType) Enum ¶
func (x ReverseType) Enum() *ReverseType
func (ReverseType) EnumDescriptor
deprecated
func (ReverseType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReverseType.Descriptor instead.
func (ReverseType) Number ¶
func (x ReverseType) Number() protoreflect.EnumNumber
func (ReverseType) String ¶
func (x ReverseType) String() string
func (ReverseType) Type ¶
func (ReverseType) Type() protoreflect.EnumType
type Rule ¶
type Rule struct {
Request RuleRequest `yaml:"request"`
Expression string `yaml:"expression"`
Output yaml.MapSlice `yaml:"output"`
// contains filtered or unexported fields
}
参考 pocassist/blob/master/poc/rule/rule.go 单个规则
func (*Rule) UnmarshalYAML ¶
type RuleMapSlice ¶
type RuleMapSlice []RuleMapItem
用于帮助yaml解析,保证Rule有序
func (*RuleMapSlice) UnmarshalYAML ¶
func (m *RuleMapSlice) UnmarshalYAML(unmarshal func(interface{}) error) error
type RuleRequest ¶
type RuleRequest struct {
Cache bool `yaml:"cache"`
Method string `yaml:"method"`
Path string `yaml:"path"`
Headers map[string]string `yaml:"headers"`
Body string `yaml:"body"`
FollowRedirects bool `yaml:"follow_redirects"`
Content string `yaml:"content"`
ReadTimeout string `yaml:"read_timeout"`
ConnectionID string `yaml:"connection_id"`
}
type SetMapSlice ¶
type TCPUDPRequestCache ¶
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"`
// contains filtered or unexported fields
}
func (*UrlType) Descriptor
deprecated
func (*UrlType) GetFragment ¶
func (*UrlType) ProtoMessage ¶
func (*UrlType) ProtoMessage()
func (*UrlType) ProtoReflect ¶
func (x *UrlType) ProtoReflect() protoreflect.Message
type Vulnerability ¶
Click to show internal directories.
Click to hide internal directories.