mcs

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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.

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

Deprecated: Use Action.ProtoReflect.Descriptor instead.

func (*Action) GetArgs

func (x *Action) GetArgs() string

func (*Action) GetMode

func (x *Action) GetMode() string

func (*Action) GetUuid

func (x *Action) GetUuid() string

func (*Action) ProtoMessage

func (*Action) ProtoMessage()

func (*Action) ProtoReflect

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

func (*Action) Reset

func (x *Action) Reset()

func (*Action) String

func (x *Action) String() string

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

Deprecated: Use AuthDat.ProtoReflect.Descriptor instead.

func (*AuthDat) GetPassword

func (x *AuthDat) GetPassword() string

func (*AuthDat) GetToken

func (x *AuthDat) GetToken() string

func (*AuthDat) GetUsername

func (x *AuthDat) GetUsername() string

func (*AuthDat) ProtoMessage

func (*AuthDat) ProtoMessage()

func (*AuthDat) ProtoReflect

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

func (*AuthDat) Reset

func (x *AuthDat) Reset()

func (*AuthDat) String

func (x *AuthDat) String() string

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

Deprecated: Use CTP.ProtoReflect.Descriptor instead.

func (*CTP) GetChecksum

func (x *CTP) GetChecksum() []byte

func (*CTP) GetPayload

func (x *CTP) GetPayload() []byte

func (*CTP) GetSessionId

func (x *CTP) GetSessionId() int32

func (*CTP) GetTypeFlag

func (x *CTP) GetTypeFlag() CTP_Flag

func (*CTP) ProtoMessage

func (*CTP) ProtoMessage()

func (*CTP) ProtoReflect

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

func (*CTP) Reset

func (x *CTP) Reset()

func (*CTP) String

func (x *CTP) String() string

type CTP_Flag

type CTP_Flag int32
const (
	CTP_SESSION_INIT CTP_Flag = 0 // used by client to propose session ID
	CTP_ACK          CTP_Flag = 1 // generic acknowledge, multiple uses
	CTP_DATA         CTP_Flag = 2 // data transfer
	CTP_FIN          CTP_Flag = 3 // transfer is complete
	CTP_RETRANS      CTP_Flag = 4 // request retransmission of prev packet
)

func (CTP_Flag) Descriptor

func (CTP_Flag) Descriptor() protoreflect.EnumDescriptor

func (CTP_Flag) Enum

func (x CTP_Flag) Enum() *CTP_Flag

func (CTP_Flag) EnumDescriptor deprecated

func (CTP_Flag) EnumDescriptor() ([]byte, []int)

Deprecated: Use CTP_Flag.Descriptor instead.

func (CTP_Flag) Number

func (x CTP_Flag) Number() protoreflect.EnumNumber

func (CTP_Flag) String

func (x CTP_Flag) String() string

func (CTP_Flag) Type

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

Deprecated: Use MCS.ProtoReflect.Descriptor instead.

func (*MCS) GetActions

func (x *MCS) GetActions() []*Action

func (*MCS) GetArgs

func (x *MCS) GetArgs() string

func (*MCS) GetAuthDat

func (x *MCS) GetAuthDat() *AuthDat

func (*MCS) GetDelta

func (x *MCS) GetDelta() int32

func (*MCS) GetDesc

func (x *MCS) GetDesc() string

func (*MCS) GetGroupname

func (x *MCS) GetGroupname() string

func (*MCS) GetHostname

func (x *MCS) GetHostname() string

func (*MCS) GetInterface

func (x *MCS) GetInterface() string

func (*MCS) GetInterval

func (x *MCS) GetInterval() int32

func (*MCS) GetMode

func (x *MCS) GetMode() string

func (*MCS) GetResult

func (x *MCS) GetResult() string

func (*MCS) GetStatus

func (x *MCS) GetStatus() int32

func (*MCS) GetUuid

func (x *MCS) GetUuid() string

func (*MCS) ProtoMessage

func (*MCS) ProtoMessage()

func (*MCS) ProtoReflect

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

func (*MCS) Reset

func (x *MCS) Reset()

func (*MCS) String

func (x *MCS) String() string

Jump to

Keyboard shortcuts

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