data

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Agents

func Agents() ([]types.ConfigurationRequest, 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 CreateUser added in v1.3.3

func CreateUser(user *types.User) error

func DeletePayload

func DeletePayload(payloadid string) error

func DeleteTag

func DeleteTag(tagid string) error

func DeleteUserByID added in v1.3.3

func DeleteUserByID(userID int) 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 FilterAgents added in v1.3.3

func FilterAgents(filters map[string]string, tagFilters []string, logic string, limit, offset int, sort string) ([]types.ConfigurationRequest, int, int, 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 GetAgentsMetrics added in v1.3.3

func GetAgentsMetrics() (agentsMetrics types.AgentMetrics, 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 GetTagKeyValues added in v1.3.3

func GetTagKeyValues() ([]types.TagKeyValues, error)

func GetUserByUsername added in v1.3.3

func GetUserByUsername(username string) (*types.User, error)

func GetUserIDByUsername added in v1.3.3

func GetUserIDByUsername(username string) (int, error)

func GetUsers added in v1.3.3

func GetUsers() ([]types.User, 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 UpdateUser added in v1.3.3

func UpdateUser(user *types.User) error

func UpdateUserPassword added in v1.3.3

func UpdateUserPassword(user *types.User) error

func UploadFile

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

func UpsertUser added in v1.3.3

func UpsertUser(user *types.User) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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