services

package
v1.0.0-rc13 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_translationContainerGRPC_proto protoreflect.FileDescriptor
View Source
var TranslationContainer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "translationContainerServices.TranslationContainer",
	HandlerType: (*TranslationContainerServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "TranslateFromCustomToMythicFormat",
			Handler:       _TranslationContainer_TranslateFromCustomToMythicFormat_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "TranslateFromMythicToCustomFormat",
			Handler:       _TranslationContainer_TranslateFromMythicToCustomFormat_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "GenerateEncryptionKeys",
			Handler:       _TranslationContainer_GenerateEncryptionKeys_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "translationContainerGRPC.proto",
}

TranslationContainer_ServiceDesc is the grpc.ServiceDesc for TranslationContainer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTranslationContainerServer

func RegisterTranslationContainerServer(s grpc.ServiceRegistrar, srv TranslationContainerServer)

Types

type CryptoKeysFormat

type CryptoKeysFormat struct {
	EncKey []byte `protobuf:"bytes,1,opt,name=EncKey,proto3" json:"EncKey,omitempty"`
	DecKey []byte `protobuf:"bytes,2,opt,name=DecKey,proto3" json:"DecKey,omitempty"`
	Value  string `protobuf:"bytes,3,opt,name=Value,proto3" json:"Value,omitempty"`
	// contains filtered or unexported fields
}

func (*CryptoKeysFormat) Descriptor deprecated

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

Deprecated: Use CryptoKeysFormat.ProtoReflect.Descriptor instead.

func (*CryptoKeysFormat) GetDecKey

func (x *CryptoKeysFormat) GetDecKey() []byte

func (*CryptoKeysFormat) GetEncKey

func (x *CryptoKeysFormat) GetEncKey() []byte

func (*CryptoKeysFormat) GetValue

func (x *CryptoKeysFormat) GetValue() string

func (*CryptoKeysFormat) ProtoMessage

func (*CryptoKeysFormat) ProtoMessage()

func (*CryptoKeysFormat) ProtoReflect

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

func (*CryptoKeysFormat) Reset

func (x *CryptoKeysFormat) Reset()

func (*CryptoKeysFormat) String

func (x *CryptoKeysFormat) String() string

type TrCustomMessageToMythicC2FormatMessage

type TrCustomMessageToMythicC2FormatMessage struct {
	TranslationContainerName string              `protobuf:"bytes,1,opt,name=TranslationContainerName,proto3" json:"TranslationContainerName,omitempty"`
	C2Name                   string              `protobuf:"bytes,2,opt,name=C2Name,proto3" json:"C2Name,omitempty"`
	Message                  []byte              `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
	UUID                     string              `protobuf:"bytes,4,opt,name=UUID,proto3" json:"UUID,omitempty"`
	MythicEncrypts           bool                `protobuf:"varint,5,opt,name=MythicEncrypts,proto3" json:"MythicEncrypts,omitempty"`
	CryptoKeys               []*CryptoKeysFormat `protobuf:"bytes,6,rep,name=CryptoKeys,proto3" json:"CryptoKeys,omitempty"`
	// contains filtered or unexported fields
}

func (*TrCustomMessageToMythicC2FormatMessage) Descriptor deprecated

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

Deprecated: Use TrCustomMessageToMythicC2FormatMessage.ProtoReflect.Descriptor instead.

func (*TrCustomMessageToMythicC2FormatMessage) GetC2Name

func (*TrCustomMessageToMythicC2FormatMessage) GetCryptoKeys

func (*TrCustomMessageToMythicC2FormatMessage) GetMessage

func (x *TrCustomMessageToMythicC2FormatMessage) GetMessage() []byte

func (*TrCustomMessageToMythicC2FormatMessage) GetMythicEncrypts

func (x *TrCustomMessageToMythicC2FormatMessage) GetMythicEncrypts() bool

func (*TrCustomMessageToMythicC2FormatMessage) GetTranslationContainerName

func (x *TrCustomMessageToMythicC2FormatMessage) GetTranslationContainerName() string

func (*TrCustomMessageToMythicC2FormatMessage) GetUUID

func (*TrCustomMessageToMythicC2FormatMessage) ProtoMessage

func (*TrCustomMessageToMythicC2FormatMessage) ProtoReflect

func (*TrCustomMessageToMythicC2FormatMessage) Reset

func (*TrCustomMessageToMythicC2FormatMessage) String

type TrCustomMessageToMythicC2FormatMessageResponse

type TrCustomMessageToMythicC2FormatMessageResponse struct {
	Success                  bool   `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
	Error                    string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
	Message                  []byte `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
	TranslationContainerName string `protobuf:"bytes,4,opt,name=TranslationContainerName,proto3" json:"TranslationContainerName,omitempty"`
	// contains filtered or unexported fields
}

func (*TrCustomMessageToMythicC2FormatMessageResponse) Descriptor deprecated

Deprecated: Use TrCustomMessageToMythicC2FormatMessageResponse.ProtoReflect.Descriptor instead.

func (*TrCustomMessageToMythicC2FormatMessageResponse) GetError

func (*TrCustomMessageToMythicC2FormatMessageResponse) GetMessage

func (*TrCustomMessageToMythicC2FormatMessageResponse) GetSuccess

func (*TrCustomMessageToMythicC2FormatMessageResponse) GetTranslationContainerName

func (x *TrCustomMessageToMythicC2FormatMessageResponse) GetTranslationContainerName() string

func (*TrCustomMessageToMythicC2FormatMessageResponse) ProtoMessage

func (*TrCustomMessageToMythicC2FormatMessageResponse) ProtoReflect

func (*TrCustomMessageToMythicC2FormatMessageResponse) Reset

func (*TrCustomMessageToMythicC2FormatMessageResponse) String

type TrGenerateEncryptionKeysMessage

type TrGenerateEncryptionKeysMessage struct {
	TranslationContainerName string `protobuf:"bytes,1,opt,name=TranslationContainerName,proto3" json:"TranslationContainerName,omitempty"`
	C2Name                   string `protobuf:"bytes,2,opt,name=C2Name,proto3" json:"C2Name,omitempty"`
	CryptoParamValue         string `protobuf:"bytes,3,opt,name=CryptoParamValue,proto3" json:"CryptoParamValue,omitempty"`
	CryptoParamName          string `protobuf:"bytes,4,opt,name=CryptoParamName,proto3" json:"CryptoParamName,omitempty"`
	// contains filtered or unexported fields
}

func (*TrGenerateEncryptionKeysMessage) Descriptor deprecated

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

Deprecated: Use TrGenerateEncryptionKeysMessage.ProtoReflect.Descriptor instead.

func (*TrGenerateEncryptionKeysMessage) GetC2Name

func (x *TrGenerateEncryptionKeysMessage) GetC2Name() string

func (*TrGenerateEncryptionKeysMessage) GetCryptoParamName

func (x *TrGenerateEncryptionKeysMessage) GetCryptoParamName() string

func (*TrGenerateEncryptionKeysMessage) GetCryptoParamValue

func (x *TrGenerateEncryptionKeysMessage) GetCryptoParamValue() string

func (*TrGenerateEncryptionKeysMessage) GetTranslationContainerName

func (x *TrGenerateEncryptionKeysMessage) GetTranslationContainerName() string

func (*TrGenerateEncryptionKeysMessage) ProtoMessage

func (*TrGenerateEncryptionKeysMessage) ProtoMessage()

func (*TrGenerateEncryptionKeysMessage) ProtoReflect

func (*TrGenerateEncryptionKeysMessage) Reset

func (*TrGenerateEncryptionKeysMessage) String

type TrGenerateEncryptionKeysMessageResponse

type TrGenerateEncryptionKeysMessageResponse struct {
	Success                  bool   `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
	Error                    string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
	EncryptionKey            []byte `protobuf:"bytes,3,opt,name=EncryptionKey,proto3" json:"EncryptionKey,omitempty"`
	DecryptionKey            []byte `protobuf:"bytes,4,opt,name=DecryptionKey,proto3" json:"DecryptionKey,omitempty"`
	TranslationContainerName string `protobuf:"bytes,5,opt,name=TranslationContainerName,proto3" json:"TranslationContainerName,omitempty"`
	// contains filtered or unexported fields
}

func (*TrGenerateEncryptionKeysMessageResponse) Descriptor deprecated

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

Deprecated: Use TrGenerateEncryptionKeysMessageResponse.ProtoReflect.Descriptor instead.

func (*TrGenerateEncryptionKeysMessageResponse) GetDecryptionKey

func (x *TrGenerateEncryptionKeysMessageResponse) GetDecryptionKey() []byte

func (*TrGenerateEncryptionKeysMessageResponse) GetEncryptionKey

func (x *TrGenerateEncryptionKeysMessageResponse) GetEncryptionKey() []byte

func (*TrGenerateEncryptionKeysMessageResponse) GetError

func (*TrGenerateEncryptionKeysMessageResponse) GetSuccess

func (*TrGenerateEncryptionKeysMessageResponse) GetTranslationContainerName

func (x *TrGenerateEncryptionKeysMessageResponse) GetTranslationContainerName() string

func (*TrGenerateEncryptionKeysMessageResponse) ProtoMessage

func (*TrGenerateEncryptionKeysMessageResponse) ProtoReflect

func (*TrGenerateEncryptionKeysMessageResponse) Reset

func (*TrGenerateEncryptionKeysMessageResponse) String

type TrMythicC2ToCustomMessageFormatMessage

type TrMythicC2ToCustomMessageFormatMessage struct {
	TranslationContainerName string              `protobuf:"bytes,1,opt,name=TranslationContainerName,proto3" json:"TranslationContainerName,omitempty"`
	C2Name                   string              `protobuf:"bytes,2,opt,name=C2Name,proto3" json:"C2Name,omitempty"`
	Message                  []byte              `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
	UUID                     string              `protobuf:"bytes,4,opt,name=UUID,proto3" json:"UUID,omitempty"`
	MythicEncrypts           bool                `protobuf:"varint,5,opt,name=MythicEncrypts,proto3" json:"MythicEncrypts,omitempty"`
	CryptoKeys               []*CryptoKeysFormat `protobuf:"bytes,6,rep,name=CryptoKeys,proto3" json:"CryptoKeys,omitempty"`
	// contains filtered or unexported fields
}

func (*TrMythicC2ToCustomMessageFormatMessage) Descriptor deprecated

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

Deprecated: Use TrMythicC2ToCustomMessageFormatMessage.ProtoReflect.Descriptor instead.

func (*TrMythicC2ToCustomMessageFormatMessage) GetC2Name

func (*TrMythicC2ToCustomMessageFormatMessage) GetCryptoKeys

func (*TrMythicC2ToCustomMessageFormatMessage) GetMessage

func (x *TrMythicC2ToCustomMessageFormatMessage) GetMessage() []byte

func (*TrMythicC2ToCustomMessageFormatMessage) GetMythicEncrypts

func (x *TrMythicC2ToCustomMessageFormatMessage) GetMythicEncrypts() bool

func (*TrMythicC2ToCustomMessageFormatMessage) GetTranslationContainerName

func (x *TrMythicC2ToCustomMessageFormatMessage) GetTranslationContainerName() string

func (*TrMythicC2ToCustomMessageFormatMessage) GetUUID

func (*TrMythicC2ToCustomMessageFormatMessage) ProtoMessage

func (*TrMythicC2ToCustomMessageFormatMessage) ProtoReflect

func (*TrMythicC2ToCustomMessageFormatMessage) Reset

func (*TrMythicC2ToCustomMessageFormatMessage) String

type TrMythicC2ToCustomMessageFormatMessageResponse

type TrMythicC2ToCustomMessageFormatMessageResponse struct {
	Success                  bool   `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
	Error                    string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
	Message                  []byte `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
	TranslationContainerName string `protobuf:"bytes,4,opt,name=TranslationContainerName,proto3" json:"TranslationContainerName,omitempty"`
	// contains filtered or unexported fields
}

func (*TrMythicC2ToCustomMessageFormatMessageResponse) Descriptor deprecated

Deprecated: Use TrMythicC2ToCustomMessageFormatMessageResponse.ProtoReflect.Descriptor instead.

func (*TrMythicC2ToCustomMessageFormatMessageResponse) GetError

func (*TrMythicC2ToCustomMessageFormatMessageResponse) GetMessage

func (*TrMythicC2ToCustomMessageFormatMessageResponse) GetSuccess

func (*TrMythicC2ToCustomMessageFormatMessageResponse) GetTranslationContainerName

func (x *TrMythicC2ToCustomMessageFormatMessageResponse) GetTranslationContainerName() string

func (*TrMythicC2ToCustomMessageFormatMessageResponse) ProtoMessage

func (*TrMythicC2ToCustomMessageFormatMessageResponse) ProtoReflect

func (*TrMythicC2ToCustomMessageFormatMessageResponse) Reset

func (*TrMythicC2ToCustomMessageFormatMessageResponse) String

type TranslationContainerClient

type TranslationContainerClient interface {
	// rpc function(messageFromClient) messageToClient
	// all of these functions start off by sending messageToClient and getting the result back
	TranslateFromCustomToMythicFormat(ctx context.Context, opts ...grpc.CallOption) (TranslationContainer_TranslateFromCustomToMythicFormatClient, error)
	TranslateFromMythicToCustomFormat(ctx context.Context, opts ...grpc.CallOption) (TranslationContainer_TranslateFromMythicToCustomFormatClient, error)
	GenerateEncryptionKeys(ctx context.Context, opts ...grpc.CallOption) (TranslationContainer_GenerateEncryptionKeysClient, error)
}

TranslationContainerClient is the client API for TranslationContainer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type TranslationContainerServer

type TranslationContainerServer interface {
	// rpc function(messageFromClient) messageToClient
	// all of these functions start off by sending messageToClient and getting the result back
	TranslateFromCustomToMythicFormat(TranslationContainer_TranslateFromCustomToMythicFormatServer) error
	TranslateFromMythicToCustomFormat(TranslationContainer_TranslateFromMythicToCustomFormatServer) error
	GenerateEncryptionKeys(TranslationContainer_GenerateEncryptionKeysServer) error
	// contains filtered or unexported methods
}

TranslationContainerServer is the server API for TranslationContainer service. All implementations must embed UnimplementedTranslationContainerServer for forward compatibility

type TranslationContainer_GenerateEncryptionKeysClient

type TranslationContainer_GenerateEncryptionKeysClient interface {
	Send(*TrGenerateEncryptionKeysMessageResponse) error
	Recv() (*TrGenerateEncryptionKeysMessage, error)
	grpc.ClientStream
}

type TranslationContainer_GenerateEncryptionKeysServer

type TranslationContainer_GenerateEncryptionKeysServer interface {
	Send(*TrGenerateEncryptionKeysMessage) error
	Recv() (*TrGenerateEncryptionKeysMessageResponse, error)
	grpc.ServerStream
}

type UnimplementedTranslationContainerServer

type UnimplementedTranslationContainerServer struct {
}

UnimplementedTranslationContainerServer must be embedded to have forward compatible implementations.

func (UnimplementedTranslationContainerServer) GenerateEncryptionKeys

func (UnimplementedTranslationContainerServer) TranslateFromCustomToMythicFormat

func (UnimplementedTranslationContainerServer) TranslateFromMythicToCustomFormat

type UnsafeTranslationContainerServer

type UnsafeTranslationContainerServer interface {
	// contains filtered or unexported methods
}

UnsafeTranslationContainerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TranslationContainerServer will result in compilation errors.

Jump to

Keyboard shortcuts

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