sessions

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: GPL-3.0 Imports: 20 Imported by: 2

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(ctx *grumble.Context, con *console.SliverConsoleClient)

BackgroundCmd - Background the active session

func CloseSessionCmd added in v1.5.0

func CloseSessionCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

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

func InteractiveCmd added in v1.5.0

func InteractiveCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

InteractiveCmd - Beacon only command to open an interactive session

func PrintSessions added in v1.5.0

func PrintSessions(sessions map[string]*clientpb.Session, con *console.SliverConsoleClient)

PrintSessions - Print the current sessions

func SelectSession

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

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

func SessionsCmd

func SessionsCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

SessionsCmd - Display/interact with sessions

func SessionsPruneCmd

func SessionsPruneCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

SessionsPruneCmd - Forcefully kill stale sessions

func SessionsReconfigCmd

func SessionsReconfigCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

SessionsReconfigCmd - Reconfigure metadata about a sessions

func ShortSessionID added in v1.5.0

func ShortSessionID(id string) string

ShortSessionID - Shorten the session ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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