proto

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

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) Descriptor() ([]byte, []int)

Deprecated: Use AddrType.ProtoReflect.Descriptor instead.

func (*AddrType) GetAddr

func (x *AddrType) GetAddr() string

func (*AddrType) GetPort

func (x *AddrType) GetPort() string

func (*AddrType) GetTransport

func (x *AddrType) GetTransport() string

func (*AddrType) ProtoMessage

func (*AddrType) ProtoMessage()

func (*AddrType) ProtoReflect

func (x *AddrType) ProtoReflect() protoreflect.Message

func (*AddrType) Reset

func (x *AddrType) Reset()

func (*AddrType) String

func (x *AddrType) String() string

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 判断下。详情参考下文常用函数章节。
	/* 141-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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetBody

func (x *Request) GetBody() []byte

func (*Request) GetContentType

func (x *Request) GetContentType() string

func (*Request) GetHeaders

func (x *Request) GetHeaders() map[string]string

func (*Request) GetMethod

func (x *Request) GetMethod() string

func (*Request) GetRaw

func (x *Request) GetRaw() []byte

func (*Request) GetRawHeader

func (x *Request) GetRawHeader() []byte

func (*Request) GetUrl

func (x *Request) GetUrl() *UrlType

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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。
	/* 141-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 部分,需要使用字节流相关方法来判断。
	IconHash    string        `protobuf:"bytes,10,opt,name=icon_hash,json=iconHash,proto3" json:"icon_hash,omitempty"`         // response.icon_hash(string)通过icon hash来判断
	// contains filtered or unexported fields
}

response 请求的响应,通用属性包含:raw

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetBody

func (x *Response) GetBody() []byte

func (*Response) GetConn

func (x *Response) GetConn() *ConnInfoType

func (*Response) GetContentType

func (x *Response) GetContentType() string

func (*Response) GetHeaders

func (x *Response) GetHeaders() map[string]string

func (*Response) GetIconHash

func (x *Response) GetIconHash() string

func (*Response) GetLatency

func (x *Response) GetLatency() int64

func (*Response) GetRaw

func (x *Response) GetRaw() []byte

func (*Response) GetRawHeader

func (x *Response) GetRawHeader() []byte

func (*Response) GetStatus

func (x *Response) GetStatus() int32

func (*Response) GetUrl

func (x *Response) GetUrl() *UrlType

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Reverse.ProtoReflect.Descriptor instead.

func (*Reverse) GetDomain

func (x *Reverse) GetDomain() string

func (*Reverse) GetIp

func (x *Reverse) GetIp() string

func (*Reverse) GetIsDomainNameServer

func (x *Reverse) GetIsDomainNameServer() bool

func (*Reverse) GetUrl

func (x *Reverse) GetUrl() *UrlType

func (*Reverse) GetWait

func (x *Reverse) GetWait() int64

func (*Reverse) ProtoMessage

func (*Reverse) ProtoMessage()

func (*Reverse) ProtoReflect

func (x *Reverse) ProtoReflect() protoreflect.Message

func (*Reverse) Reset

func (x *Reverse) Reset()

func (*Reverse) String

func (x *Reverse) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UrlType.ProtoReflect.Descriptor instead.

func (*UrlType) GetDomain

func (x *UrlType) GetDomain() string

func (*UrlType) GetFragment

func (x *UrlType) GetFragment() string

func (*UrlType) GetHost

func (x *UrlType) GetHost() string

func (*UrlType) GetPath

func (x *UrlType) GetPath() string

func (*UrlType) GetPort

func (x *UrlType) GetPort() string

func (*UrlType) GetQuery

func (x *UrlType) GetQuery() string

func (*UrlType) GetScheme

func (x *UrlType) GetScheme() string

func (*UrlType) ProtoMessage

func (*UrlType) ProtoMessage()

func (*UrlType) ProtoReflect

func (x *UrlType) ProtoReflect() protoreflect.Message

func (*UrlType) Reset

func (x *UrlType) Reset()

func (*UrlType) String

func (x *UrlType) String() string

Jump to

Keyboard shortcuts

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