sessions

package
v1.0.6 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: 27 Imported by: 0

README

Sessions

Session related command implementations.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoSessions - No sessions available.
	ErrNoSessions = errors.New("no sessions")
	// ErrNoSelection - No selection made.
	ErrNoSelection = errors.New("no selection")
)

Functions

func BackgroundCmd

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

BackgroundCmd - Background the active session.

func CloseSessionCmd

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

CloseSessionCmd - Close an interactive session but do not kill the remote process.

func Commands

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

Commands returns the `sessions` command and its subcommands.

func InteractiveCmd

func InteractiveCmd(cmd *cobra.Command, con *console.SliverClient, _ []string)

InteractiveCmd - Beacon only command to open an interactive session.

func PrintSessions

func PrintSessions(sessions map[string]*clientpb.Session, filter string, filterRegex *regexp.Regexp, con *console.SliverClient)

PrintSessions - Print the current sessions.

func SelectSession

func SelectSession(onlyAlive bool, con *console.SliverClient) (*clientpb.Session, error)

SelectSession - Interactive menu for the user to select an session, optionally only display live sessions.

func SessionIDCompleter

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

SessionIDCompleter completes session IDs.

func SessionsCmd

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

SessionsCmd - Display/interact with sessions.

func SessionsPruneCmd

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

SessionsPruneCmd - Forcefully kill stale sessions.

func ShortSessionID

func ShortSessionID(id string) string

ShortSessionID - Shorten the session ID.

func SliverCommands

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

SliverCommands returns all session control commands for the active target.

Types

This section is empty.

Jump to

Keyboard shortcuts

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