Documentation ¶
Index ¶
- Variables
- type DNSMessage
- func (*DNSMessage) Descriptor() ([]byte, []int)deprecated
- func (x *DNSMessage) GetData() []byte
- func (x *DNSMessage) GetID() uint32
- func (x *DNSMessage) GetSize() uint32
- func (x *DNSMessage) GetStart() uint32
- func (x *DNSMessage) GetStop() uint32
- func (x *DNSMessage) GetType() DNSMessageType
- func (*DNSMessage) ProtoMessage()
- func (x *DNSMessage) ProtoReflect() protoreflect.Message
- func (x *DNSMessage) Reset()
- func (x *DNSMessage) String() string
- type DNSMessageType
- func (DNSMessageType) Descriptor() protoreflect.EnumDescriptor
- func (x DNSMessageType) Enum() *DNSMessageType
- func (DNSMessageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x DNSMessageType) Number() protoreflect.EnumNumber
- func (x DNSMessageType) String() string
- func (DNSMessageType) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DNSMessageType_name = map[int32]string{ 0: "NOP", 1: "TOTP", 2: "INIT", 3: "POLL", 4: "CLOSE", 6: "MANIFEST", 7: "DATA_TO_IMPLANT", 8: "DATA_FROM_IMPLANT", 9: "CLEAR", } DNSMessageType_value = map[string]int32{ "NOP": 0, "TOTP": 1, "INIT": 2, "POLL": 3, "CLOSE": 4, "MANIFEST": 6, "DATA_TO_IMPLANT": 7, "DATA_FROM_IMPLANT": 8, "CLEAR": 9, } )
Enum value maps for DNSMessageType.
View Source
var File_dnspb_dns_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DNSMessage ¶
type DNSMessage struct { Type DNSMessageType `protobuf:"varint,1,opt,name=Type,proto3,enum=dnspb.DNSMessageType" json:"Type,omitempty"` ID uint32 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` // 8 bit message id + 24 bit dns session ID Start uint32 `protobuf:"varint,3,opt,name=Start,proto3" json:"Start,omitempty"` // Bytes start at Stop uint32 `protobuf:"varint,4,opt,name=Stop,proto3" json:"Stop,omitempty"` // Bytes stop at Size uint32 `protobuf:"varint,5,opt,name=Size,proto3" json:"Size,omitempty"` // Total size Data []byte `protobuf:"bytes,6,opt,name=Data,proto3" json:"Data,omitempty"` // Actual data // contains filtered or unexported fields }
NOTE: DNS is very space sensitive so certain fields are re-purposed depending on the DNSMessageType as noted below:
[Type TOTP]: ID field is used for the TOTP code
func (*DNSMessage) Descriptor
deprecated
func (*DNSMessage) Descriptor() ([]byte, []int)
Deprecated: Use DNSMessage.ProtoReflect.Descriptor instead.
func (*DNSMessage) GetData ¶
func (x *DNSMessage) GetData() []byte
func (*DNSMessage) GetID ¶
func (x *DNSMessage) GetID() uint32
func (*DNSMessage) GetSize ¶
func (x *DNSMessage) GetSize() uint32
func (*DNSMessage) GetStart ¶
func (x *DNSMessage) GetStart() uint32
func (*DNSMessage) GetStop ¶
func (x *DNSMessage) GetStop() uint32
func (*DNSMessage) GetType ¶
func (x *DNSMessage) GetType() DNSMessageType
func (*DNSMessage) ProtoMessage ¶
func (*DNSMessage) ProtoMessage()
func (*DNSMessage) ProtoReflect ¶
func (x *DNSMessage) ProtoReflect() protoreflect.Message
func (*DNSMessage) Reset ¶
func (x *DNSMessage) Reset()
func (*DNSMessage) String ¶
func (x *DNSMessage) String() string
type DNSMessageType ¶
type DNSMessageType int32
const ( DNSMessageType_NOP DNSMessageType = 0 // aka FINGERPRINT DNSMessageType_TOTP DNSMessageType = 1 DNSMessageType_INIT DNSMessageType = 2 DNSMessageType_POLL DNSMessageType = 3 DNSMessageType_CLOSE DNSMessageType = 4 DNSMessageType_MANIFEST DNSMessageType = 6 DNSMessageType_DATA_TO_IMPLANT DNSMessageType = 7 DNSMessageType_DATA_FROM_IMPLANT DNSMessageType = 8 DNSMessageType_CLEAR DNSMessageType = 9 )
func (DNSMessageType) Descriptor ¶
func (DNSMessageType) Descriptor() protoreflect.EnumDescriptor
func (DNSMessageType) Enum ¶
func (x DNSMessageType) Enum() *DNSMessageType
func (DNSMessageType) EnumDescriptor
deprecated
func (DNSMessageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DNSMessageType.Descriptor instead.
func (DNSMessageType) Number ¶
func (x DNSMessageType) Number() protoreflect.EnumNumber
func (DNSMessageType) String ¶
func (x DNSMessageType) String() string
func (DNSMessageType) Type ¶
func (DNSMessageType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.