Documentation ¶
Index ¶
- Variables
- type Action
- type AuthDat
- func (*AuthDat) Descriptor() ([]byte, []int)deprecated
- func (x *AuthDat) GetPassword() string
- func (x *AuthDat) GetToken() string
- func (x *AuthDat) GetUsername() string
- func (*AuthDat) ProtoMessage()
- func (x *AuthDat) ProtoReflect() protoreflect.Message
- func (x *AuthDat) Reset()
- func (x *AuthDat) String() string
- type CTP
- func (*CTP) Descriptor() ([]byte, []int)deprecated
- func (x *CTP) GetChecksum() []byte
- func (x *CTP) GetPayload() []byte
- func (x *CTP) GetSessionId() int32
- func (x *CTP) GetTypeFlag() CTP_Flag
- func (*CTP) ProtoMessage()
- func (x *CTP) ProtoReflect() protoreflect.Message
- func (x *CTP) Reset()
- func (x *CTP) String() string
- type CTP_Flag
- type MCS
- func (*MCS) Descriptor() ([]byte, []int)deprecated
- func (x *MCS) GetActions() []*Action
- func (x *MCS) GetArgs() string
- func (x *MCS) GetAuthDat() *AuthDat
- func (x *MCS) GetDelta() int32
- func (x *MCS) GetDesc() string
- func (x *MCS) GetGroupname() string
- func (x *MCS) GetHostname() string
- func (x *MCS) GetInterface() string
- func (x *MCS) GetInterval() int32
- func (x *MCS) GetMode() string
- func (x *MCS) GetResult() string
- func (x *MCS) GetStatus() int32
- func (x *MCS) GetUuid() string
- func (*MCS) ProtoMessage()
- func (x *MCS) ProtoReflect() protoreflect.Message
- func (x *MCS) Reset()
- func (x *MCS) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CTP_Flag_name = map[int32]string{ 0: "SESSION_INIT", 1: "ACK", 2: "DATA", 3: "FIN", 4: "RETRANS", } CTP_Flag_value = map[string]int32{ "SESSION_INIT": 0, "ACK": 1, "DATA": 2, "FIN": 3, "RETRANS": 4, } )
Enum value maps for CTP_Flag.
View Source
var File_mcs_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // the UUID of the action Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"` // type of data that will be in "args" or is being requested Args string `protobuf:"bytes,3,opt,name=args,proto3" json:"args,omitempty"` // the data of the action (command line args, bot uuid, etc) // contains filtered or unexported fields }
Actions to be run by the bot
func (*Action) Descriptor
deprecated
func (*Action) ProtoMessage ¶
func (*Action) ProtoMessage()
func (*Action) ProtoReflect ¶
func (x *Action) ProtoReflect() protoreflect.Message
type AuthDat ¶
type AuthDat struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // username Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // password Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // login session token // contains filtered or unexported fields }
User authentication data
func (*AuthDat) Descriptor
deprecated
func (*AuthDat) GetPassword ¶
func (*AuthDat) GetUsername ¶
func (*AuthDat) ProtoMessage ¶
func (*AuthDat) ProtoMessage()
func (*AuthDat) ProtoReflect ¶
func (x *AuthDat) ProtoReflect() protoreflect.Message
type CTP ¶
type CTP struct { SessionId int32 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // unique int will be generated for each session Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // the actual data being sent will go here Checksum []byte `protobuf:"bytes,3,opt,name=checksum,proto3" json:"checksum,omitempty"` // last 8 digits of payload SHA1 will go here TypeFlag CTP_Flag `protobuf:"varint,4,opt,name=type_flag,json=typeFlag,proto3,enum=CTP_Flag" json:"type_flag,omitempty"` // flag to say what type of data is in the payload // contains filtered or unexported fields }
Proto for Cera Transfer Protocol
func (*CTP) Descriptor
deprecated
func (*CTP) GetChecksum ¶
func (*CTP) GetPayload ¶
func (*CTP) GetSessionId ¶
func (*CTP) GetTypeFlag ¶
func (*CTP) ProtoMessage ¶
func (*CTP) ProtoMessage()
func (*CTP) ProtoReflect ¶
func (x *CTP) ProtoReflect() protoreflect.Message
type CTP_Flag ¶
type CTP_Flag int32
func (CTP_Flag) Descriptor ¶
func (CTP_Flag) Descriptor() protoreflect.EnumDescriptor
func (CTP_Flag) EnumDescriptor
deprecated
func (CTP_Flag) Number ¶
func (x CTP_Flag) Number() protoreflect.EnumNumber
func (CTP_Flag) Type ¶
func (CTP_Flag) Type() protoreflect.EnumType
type MCS ¶
type MCS struct { Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // HTTP Status Code Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // UUID for Bot or Action UUI Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"` // hostname Groupname string `protobuf:"bytes,4,opt,name=groupname,proto3" json:"groupname,omitempty"` // group name Mode string `protobuf:"bytes,5,opt,name=mode,proto3" json:"mode,omitempty"` // the action mode (shell, scrshot, etc) Interface string `protobuf:"bytes,6,opt,name=interface,proto3" json:"interface,omitempty"` // the network interface of the host Desc string `protobuf:"bytes,7,opt,name=desc,proto3" json:"desc,omitempty"` // description for group or API response Args string `protobuf:"bytes,8,opt,name=args,proto3" json:"args,omitempty"` // the data of the action (command line args, bot uuid, etc) Result string `protobuf:"bytes,9,opt,name=result,proto3" json:"result,omitempty"` // the result of an action (usually command output) Interval int32 `protobuf:"varint,10,opt,name=interval,proto3" json:"interval,omitempty"` // callback interval Delta int32 `protobuf:"varint,11,opt,name=delta,proto3" json:"delta,omitempty"` // jitter for interval Actions []*Action `protobuf:"bytes,12,rep,name=actions,proto3" json:"actions,omitempty"` // array of Actions AuthDat *AuthDat `protobuf:"bytes,13,opt,name=authDat,proto3" json:"authDat,omitempty"` // User authentication data // contains filtered or unexported fields }
Meteor Communication Standard
func (*MCS) Descriptor
deprecated
func (*MCS) GetActions ¶
func (*MCS) GetAuthDat ¶
func (*MCS) GetGroupname ¶
func (*MCS) GetHostname ¶
func (*MCS) GetInterface ¶
func (*MCS) GetInterval ¶
func (*MCS) ProtoMessage ¶
func (*MCS) ProtoMessage()
func (*MCS) ProtoReflect ¶
func (x *MCS) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.