use

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: GPL-3.0 Imports: 19 Imported by: 2

README

client/command/use

Overview

Implements the 'use' command group for the Sliver client console. Handlers map Cobra invocations to use workflows such as beacons and sessions.

Go Files

  • beacons.go – Switches the active target to a selected beacon.
  • commands.go – Registers the use command and subcommands for session selection.
  • sessions.go – Sets the active session context for subsequent commands.
  • use.go – Implements shared helper logic for switching targets and updating prompts.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSelection = errors.New("no selection")

Functions

func BeaconAndSessionIDCompleter

func BeaconAndSessionIDCompleter(con *console.SliverClient) carapace.Action

BeaconAndSessionIDCompleter - BeaconAndSessionIDCompleter for beacon / session ids

func Commands added in v1.6.0

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

Commands returns the “ command and its subcommands.

func SelectSessionOrBeacon

func SelectSessionOrBeacon(con *console.SliverClient) (*clientpb.Session, *clientpb.Beacon, error)

SelectSessionOrBeacon - Select a session or beacon

func SessionIDCompleter added in v1.6.0

func SessionIDCompleter(con *console.SliverClient) carapace.Action

SessionIDCompleter completes session IDs

func SessionOrBeaconByID

func SessionOrBeaconByID(id string, con *console.SliverClient) (*clientpb.Session, *clientpb.Beacon, error)

SessionOrBeaconByID - Select a session or beacon by ID

func UseBeaconCmd

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

UseBeaconCmd - Change the active beacon

func UseCmd

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

UseCmd - Change the active session

func UseSessionCmd

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

UseSessionCmd - Change the active session

Types

This section is empty.

Jump to

Keyboard shortcuts

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