data

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Agents

func Agents() (agentAppend []types.ConfigurationRequest, err error)

func AgentsByIp

func AgentsByIp(Ip string) (agentAppend []types.ConfigurationRequest, err error)

func CreateAgent

func CreateAgent(uuid, ServerIP, ServerPort, CallBackFreq, CallBackJitter, Ip, User, Hostname, OSType, OSBuild, OSArch, CPUS, MEMORY string, NextCallback time.Time) error

func CreateKeys

func CreateKeys(uuid string) error

func CreatePayload

func CreatePayload(uuid string, name string, description string, ServerIP string, ServerPort string, CallBackFreq string, CallBackJitter string, Concat string)

func CreateRedirector

func CreateRedirector(RedirectorID, Name, Description, ForwardIP, ForwardPort, ListenPort string) error

func DeletePayload

func DeletePayload(payloadid string) error

func DeleteTag

func DeleteTag(tagid string) error

func DownloadFile

func DownloadFile(fileID string) ([]byte, string, error)

func FetchNextCommand

func FetchNextCommand(uuid string) types.CommandResponse

func FetchNextFileTransfer

func FetchNextFileTransfer(uuid string) types.FileResponse

func FetchOne

func FetchOne(uuid string) (infoAppend []types.ConfigurationResponse, err error)

func FetchOneAgent

func FetchOneAgent(uuid string) (info types.ConfigurationRequest, err error)

func GetAgentCommands

func GetAgentCommands(uuid string) (infoAppend []types.AgentCommands, err error)

func GetAgentNotes

func GetAgentNotes(uuid string) (infoAppend []types.Note, err error)

func GetAgentTags

func GetAgentTags(uuid string) (infoAppend []types.Tag, err error)

func GetLogFileMaxSize added in v1.2.7

func GetLogFileMaxSize(app string) (int64, error)

func GetLogLevel added in v1.2.7

func GetLogLevel(appName string) (string, error)

func GetPayloadConcat

func GetPayloadConcat(payloadID string) (string, error)

func GetRedirectors

func GetRedirectors() (redirectors []types.Redirector, err error)

func InitDatabase

func InitDatabase()

func Keylog

func Keylog(uuid string) []types.KeysRequest

func ListFilesForUUID

func ListFilesForUUID(uuid string) ([]types.FileToServer, error)

func OpenDatabase

func OpenDatabase()

func Payloads

func Payloads() []types.Payload

func PutAgentNotes

func PutAgentNotes(uuid string, note string) error

func PutAgentTags

func PutAgentTags(uuid string, key string, value string) error

func SendAgentCommand

func SendAgentCommand(uuid string, result string, CommandType string, Command string, CommandUUID string)

func SetLogFileMaxSize added in v1.2.7

func SetLogFileMaxSize(appName string, size int64) error

func SetLogLevel added in v1.2.7

func SetLogLevel(appName string, level string) error

func SetRedirectorStatus

func SetRedirectorStatus(RedirectorID string) error

func UpdateAgentCheckIn

func UpdateAgentCheckIn(confreq types.ConfigurationRequest) error

func UpdateAgentCommand

func UpdateAgentCommand(CommandUUID, Result, Output, uuid string) error

func UpdateAgentConfig

func UpdateAgentConfig(UUID, ServerIP, ServerPort, CallbackFrequency, CallbackJitter string, NextCallback time.Time)

func UpdateAgentConfigNoNext added in v1.3.1

func UpdateAgentConfigNoNext(UUID, ServerIP, ServerPort, CallbackFrequency, CallbackJitter string)

func UpdateAgentKeys

func UpdateAgentKeys(UUID, Keys string) error

func UpdateFileTransfer

func UpdateFileTransfer(fileData types.FileToServer) error

func UploadFile

func UploadFile(path string, uuid string, transfertype string, content []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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