environment

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: GPL-3.0 Imports: 12 Imported by: 2

README

client/command/environment

Overview

Implements the 'environment' command group for the Sliver client console. Handlers map Cobra invocations to environment workflows such as GET, SET, and unset.

Go Files

  • commands.go – Declares environment command variations and wires subcommands for get/set/unset operations with shared flags.
  • get.go – Invokes the RPC to retrieve environment variables and prints the results for sessions or beacons.
  • set.go – Handles setting environment variables remotely, including beacon callback handling and result formatting.
  • unset.go – Removes environment variables on the remote target and reports task outcomes back to the user.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands added in v1.6.0

func Commands(con *console.SliverClient) []*cobra.Command

Commands returns the “ command and its subcommands.

func EnvGetCmd

func EnvGetCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

EnvGetCmd - Get a remote environment variable

func EnvSetCmd

func EnvSetCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

EnvSetCmd - Set a remote environment variable

func EnvUnsetCmd

func EnvUnsetCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

EnvUnsetCmd - Unset a remote environment variable

func PrintGetEnvInfo added in v1.5.0

func PrintGetEnvInfo(envInfo *sliverpb.EnvInfo, con *console.SliverClient)

PrintGetEnvInfo - Print the results of the env get command

func PrintSetEnvInfo added in v1.5.0

func PrintSetEnvInfo(name string, value string, envInfo *sliverpb.SetEnv, con *console.SliverClient)

PrintSetEnvInfo - Print the set environment info

func PrintUnsetEnvInfo added in v1.5.0

func PrintUnsetEnvInfo(name string, envInfo *sliverpb.UnsetEnv, con *console.SliverClient)

PrintUnsetEnvInfo - Print the set environment info

Types

This section is empty.

Jump to

Keyboard shortcuts

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