use

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

README

Use

This package implements the use command, which is used to select active sessions/beacons.

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

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

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