config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfig

type AgentConfig struct {
	Server      string `mapstructure:"server"`
	ID          string `mapstructure:"id"`
	SecurityKey string `mapstructure:"security_key"`
	TLSInsecure bool   `mapstructure:"tls_insecure"`
}

AgentConfig holds agent command configuration.

type Config

type Config struct {
	Server     ServerConfig     `mapstructure:"server"`
	Agent      AgentConfig      `mapstructure:"agent"`
	Connect    ConnectConfig    `mapstructure:"connect"`
	Upload     UploadConfig     `mapstructure:"upload"`
	Download   DownloadConfig   `mapstructure:"download"`
	Devices    DevicesConfig    `mapstructure:"devices"`
	Sessions   SessionsConfig   `mapstructure:"sessions"`
	Disconnect DisconnectConfig `mapstructure:"disconnect"`
}

Config holds all configuration for revoshell commands.

func Load

func Load() (*Config, error)

Load reads configuration from file and returns Config struct.

type ConnectConfig

type ConnectConfig struct {
	Server      string `mapstructure:"server"`
	SecurityKey string `mapstructure:"security_key"`
	Shell       string `mapstructure:"shell"`
}

ConnectConfig holds connect command configuration.

type DevicesConfig

type DevicesConfig struct {
	Server      string `mapstructure:"server"`
	SecurityKey string `mapstructure:"security_key"`
}

DevicesConfig holds devices command configuration.

type DisconnectConfig

type DisconnectConfig struct {
	Server      string `mapstructure:"server"`
	SecurityKey string `mapstructure:"security_key"`
}

DisconnectConfig holds disconnect command configuration.

type DownloadConfig

type DownloadConfig struct {
	Server      string `mapstructure:"server"`
	SecurityKey string `mapstructure:"security_key"`
	Output      string `mapstructure:"output"`
}

DownloadConfig holds download command configuration.

type ServerConfig

type ServerConfig struct {
	Addr        string `mapstructure:"addr"`
	SecurityKey string `mapstructure:"security_key"`
	TLS         bool   `mapstructure:"tls"`
	TLSCert     string `mapstructure:"tls_cert"`
	TLSKey      string `mapstructure:"tls_key"`
}

ServerConfig holds server command configuration.

type SessionsConfig

type SessionsConfig struct {
	Server      string `mapstructure:"server"`
	SecurityKey string `mapstructure:"security_key"`
}

SessionsConfig holds sessions command configuration.

type UploadConfig

type UploadConfig struct {
	Server      string `mapstructure:"server"`
	SecurityKey string `mapstructure:"security_key"`
	Mode        uint32 `mapstructure:"mode"`
}

UploadConfig holds upload command configuration.

Jump to

Keyboard shortcuts

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