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 Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetBody() []byte
- 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) 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) GetUrl() *UrlType
- func (x *Reverse) GetWait() int64
- func (*Reverse) ProtoMessage()
- func (x *Reverse) ProtoReflect() protoreflect.Message
- func (x *Reverse) Reset()
- func (x *Reverse) String() string
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var File_http_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AddrType ¶
type AddrType struct {
Transport string `protobuf:"bytes,1,opt,name=transport,proto3" json:"transport,omitempty"` // addr.transport(string)tranport: http、tcp、udp
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // addr.transport(string)目的地址, 获取失败时返回空字符串,形如: "192.0.2.1:25", "[20012001:1]:80"
Port string `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"` // addr.port(string)端口号, 获取失败时返回 ""
// contains filtered or unexported fields
}
addrType 连接地址信息 addrType 类型包含字段如下, 设变量名为 addr
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"` // conn.source(addrType)源地址信息
Destination *AddrType `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` // conn.destination(addrType)目的地址信息
// contains filtered or unexported fields
}
connInfoType 连接信息,包含源地址和目的地址, 可以通过 response.conn connInfoType 类型包含字段如下, 设变量名为 conn
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 Request ¶
type Request struct {
Url *UrlType `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // request.url(UrlType)自定义类型UrlType,请查看UrlType的说明
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` // request.method(string)原始请求的方法
Headers map[string]string `` // request.headers(map[string]string)原始请求的HTTP头,是一个键值对(均为小写),我们可以通过headers['server']来获取值。如果键不存在,则获取到的值是空字符串。注意,该空字符串不能用于 == 以外的操作,否则不存在的时候将报错,需要先 in 判断下。详情参考下文常用函数章节。
/* 155-byte string literal not displayed */
ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // request.contnet_type(string)原始请求的 content-type 头的值, 等于request.headers["Content-Type"]
Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"` // request.body([]byte)原始请求的 body,需要使用字节流相关方法来判断。如果是 GET, body 为空。
Raw []byte `protobuf:"bytes,6,opt,name=raw,proto3" json:"raw,omitempty"` // request.raw([]byte)原始请求
RawHeader []byte `protobuf:"bytes,7,opt,name=raw_header,json=rawHeader,proto3" json:"raw_header,omitempty"` // request.raw_header([]byte)原始的 header 部分,需要使用字节流相关方法来判断。
// contains filtered or unexported fields
}
request 扫描请求
func (*Request) Descriptor
deprecated
func (*Request) GetContentType ¶
func (*Request) GetHeaders ¶
func (*Request) GetRawHeader ¶
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"` // response.url(UrlType)自定义类型 UrlType, 请查看下方 UrlType 的说明
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` // response.status(int)返回包的satus code
Headers map[string]string `` // response.headers(map[string]string)返回包的HTTP头,类似 request.headers。
/* 155-byte string literal not displayed */
ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // response.content_type(string)返回包的content-type头的值
Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"` // response.body([]byte)返回包的Body,因为是一个字节流(bytes)而非字符串,后面判断的时候需要使用字节流相关的方法
Latency int64 `protobuf:"varint,6,opt,name=latency,proto3" json:"latency,omitempty"` // response.latency(int)响应的延迟时间,可以用于 sql 时间盲注的判断,单位毫秒 (ms)
Conn *ConnInfoType `protobuf:"bytes,7,opt,name=conn,proto3" json:"conn,omitempty"` // response.conn(connInfoType)连接相关信息
Raw []byte `protobuf:"bytes,8,opt,name=raw,proto3" json:"raw,omitempty"` // response.raw([]byte)原始响应
RawHeader []byte `protobuf:"bytes,9,opt,name=raw_header,json=rawHeader,proto3" json:"raw_header,omitempty"` // response.raw_header([]byte)原始的 header 部分,需要使用字节流相关方法来判断。
// contains filtered or unexported fields
}
response 请求的响应,通用属性包含:raw
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"` // reverse.url(UrlType)反连平台的url
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // reverse.domain(string)反连平台的域名
Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` // reverse.ip(string)反连平台的ip地址
IsDomainNameServer bool `protobuf:"varint,4,opt,name=is_domain_name_server,json=isDomainNameServer,proto3" json:"is_domain_name_server,omitempty"` // reverse.is_domain_name_server(bool)反连平台的domain是否同时是nameserver
Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` // reverse.wait(timeout)(func(timeout int) bool) 等待timeout秒,并返回是否存在该时间内获得了信息
// contains filtered or unexported fields
}
reverseType 反连平台类型 reverseType 类型包含字段如下, 设变量名为 reverse(需要先使用 newReverse() 生成实例)
func (*Reverse) Descriptor
deprecated
func (*Reverse) GetIsDomainNameServer ¶
func (*Reverse) ProtoMessage ¶
func (*Reverse) ProtoMessage()
func (*Reverse) ProtoReflect ¶
func (x *Reverse) ProtoReflect() protoreflect.Message
type UrlType ¶
type UrlType struct {
Scheme string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"` // url.schema(string)url 的 scheme, 示例为 "http"
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // url.domain(string)url 的域名,示例例为 "example.com"
Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` // url.host(string)url 的主机名,示例为 "example.com:8080"
Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"` // url.port(string)url 的 port,注意这里也是字符串。 示例为 "8080"
Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` // url.path(string)url 的 path, 示例为 "/a"
Query string `protobuf:"bytes,6,opt,name=query,proto3" json:"query,omitempty"` // url.query(string)url 的 query, 示例为 "c=d"
Fragment string `protobuf:"bytes,7,opt,name=fragment,proto3" json:"fragment,omitempty"` // url.fragment(string)url 的锚点,示例为 "x=y"
// contains filtered or unexported fields
}
UrlType url 类型,可以 request.url、response.url 和 reverse.url 调用 UrlType 类型包含的字段如下, 设变量名为 url, 以 http://example.com:8080/a?c=d#x=y 为例:
func (*UrlType) Descriptor
deprecated
func (*UrlType) GetFragment ¶
func (*UrlType) ProtoMessage ¶
func (*UrlType) ProtoMessage()
func (*UrlType) ProtoReflect ¶
func (x *UrlType) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.