translationstructs

package
v1.3.13 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AllTranslationData containerPayloadData
)

Functions

This section is empty.

Types

type CryptoKeys

type CryptoKeys struct {
	EncKey   *[]byte `json:"enc_key,omitempty"`
	DecKey   *[]byte `json:"dec_key,omitempty"`
	Value    string  `json:"value"`
	Location string  `json:"location,omitempty"`
}

type DecryptBytesFunction

type DecryptBytesFunction = func(input TrDecryptBytesMessage) TrDecryptBytesMessageResponse

type EncryptBytesFunction

type EncryptBytesFunction = func(input TrEncryptBytesMessage) TrEncryptBytesMessageResponse

type RabbitmqDirectMethod

type RabbitmqDirectMethod struct {
	RabbitmqRoutingKey         string
	RabbitmqProcessingFunction func([]byte)
}

type RabbitmqRPCMethod

type RabbitmqRPCMethod struct {
	RabbitmqRoutingKey         string
	RabbitmqProcessingFunction func([]byte) interface{}
}

type TRRPCReSyncMessage

type TRRPCReSyncMessage struct {
	Name string `json:"translation_name"`
}

type TRRPCReSyncMessageResponse

type TRRPCReSyncMessageResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"error"`
}

type TR_ENCRYPT_BYTES_STATUS

type TR_ENCRYPT_BYTES_STATUS = string

type TrCustomMessageToMythicC2FormatMessage

type TrCustomMessageToMythicC2FormatMessage struct {
	TranslationContainerName string       `json:"translation_container_name"`
	C2Name                   string       `json:"c2_profile_name"`
	Message                  []byte       `json:"message"`
	UUID                     string       `json:"uuid"`
	MythicEncrypts           bool         `json:"mythic_encrypts"`
	CryptoKeys               []CryptoKeys `json:"crypto_keys"`
}

type TrCustomMessageToMythicC2FormatMessageResponse

type TrCustomMessageToMythicC2FormatMessageResponse struct {
	Success bool                   `json:"success"`
	Error   string                 `json:"error"`
	Message map[string]interface{} `json:"message"`
}

type TrDecryptBytesMessage

type TrDecryptBytesMessage struct {
	TranslationContainerName string `json:"translation_container_name"`
	EncryptionKey            []byte `json:"enc_key"`
	CryptoType               string `json:"crypto_type"`
	Message                  []byte `json:"message"`
	AgentCallbackUUID        string `json:"callback_uuid"`
}

type TrDecryptBytesMessageResponse

type TrDecryptBytesMessageResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"error"`
	Message []byte `json:"message"`
}

type TrEncryptBytesMessage

type TrEncryptBytesMessage struct {
	TranslationContainerName string `json:"translation_container_name"`
	EncryptionKey            []byte `json:"enc_key"`
	CryptoType               string `json:"crypto_type"`
	Message                  []byte `json:"message"`
	IncludeUUID              bool   `json:"include_uuid"`
	Base64ReturnMessage      bool   `json:"base64_message"`
}

type TrEncryptBytesMessageResponse

type TrEncryptBytesMessageResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"error"`
	Message []byte `json:"message"`
}

type TrGenerateEncryptionKeysMessage

type TrGenerateEncryptionKeysMessage struct {
	TranslationContainerName string `json:"translation_container_name"`
	C2Name                   string `json:"c2_profile_name"`
	CryptoParamValue         string `json:"value"`
	CryptoParamName          string `json:"name"`
}

type TrGenerateEncryptionKeysMessageResponse

type TrGenerateEncryptionKeysMessageResponse struct {
	Success       bool    `json:"success"`
	Error         string  `json:"error"`
	EncryptionKey *[]byte `json:"enc_key"`
	DecryptionKey *[]byte `json:"dec_key"`
}

type TrMythicC2ToCustomMessageFormatMessage

type TrMythicC2ToCustomMessageFormatMessage struct {
	TranslationContainerName string                 `json:"translation_container_name"`
	C2Name                   string                 `json:"c2_profile_name"`
	Message                  map[string]interface{} `json:"message"`
	UUID                     string                 `json:"uuid"`
	MythicEncrypts           bool                   `json:"mythic_encrypts"`
	CryptoKeys               []CryptoKeys           `json:"crypto_keys"`
}

type TrMythicC2ToCustomMessageFormatMessageResponse

type TrMythicC2ToCustomMessageFormatMessageResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"error"`
	Message []byte `json:"message"`
}

type TrSyncMessage

type TrSyncMessage struct {
	Name             string `json:"name"`
	Description      string `json:"description"`
	Author           string `json:"author"`
	ContainerVersion string `json:"container_version"`
}

type TrSyncMessageResponse

type TrSyncMessageResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"error"`
}

type TranslationContainer

type TranslationContainer struct {
	Name                          string                                `json:"name"`
	Description                   string                                `json:"description"`
	Author                        string                                `json:"author"`
	TranslateCustomToMythicFormat TranslateCustomToMythicFormatFunction `json:"-"`
	TranslateMythicToCustomFormat TranslateMythicToCustomFormatFunction `json:"-"`
	GenerateEncryptionKeys        GenerateEncryptionKeysFunction        `json:"-"`
	EncryptBytes                  EncryptBytesFunction                  `json:"-"`
	DecryptBytes                  DecryptBytesFunction                  `json:"-"`
}

Jump to

Keyboard shortcuts

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