translationstructs

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: BSD-3-Clause Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 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"`
	// SemVer is a specific semantic version tracker you can use for your payload type
	SemVer                        string                                                                                    `json:"semver"`
	Author                        string                                                                                    `json:"author"`
	TranslateCustomToMythicFormat TranslateCustomToMythicFormatFunction                                                     `json:"-"`
	TranslateMythicToCustomFormat TranslateMythicToCustomFormatFunction                                                     `json:"-"`
	GenerateEncryptionKeys        GenerateEncryptionKeysFunction                                                            `json:"-"`
	EncryptBytes                  EncryptBytesFunction                                                                      `json:"-"`
	DecryptBytes                  DecryptBytesFunction                                                                      `json:"-"`
	OnContainerStartFunction      func(sharedStructs.ContainerOnStartMessage) sharedStructs.ContainerOnStartMessageResponse `json:"-"`
}

Jump to

Keyboard shortcuts

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