shell

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: GPL-3.0 Imports: 28 Imported by: 1

README

client/command/shell

Overview

Implements the 'shell' command group for the Sliver client console. Handlers map Cobra invocations to shell workflows such as filter reader generic and filter reader windows.

Go Files

  • commands.go – Exposes the shell command group (shell, shell ls, shell attach, shell kill) and binds options.
  • completers.go – Shell-specific command completion helpers.
  • filter-reader_generic.go – Provides output filtering for shell streams on POSIX targets.
  • filter-reader_windows.go – Implements CRLF-aware filtering and decoding for Windows shell sessions.
  • ioloop.go – Handles attached shell stdin forwarding, escape handling, and fast local detach/exit behavior.
  • manager.go – Tracks managed shell tunnels so detached shells can be listed and re-attached.
  • shell.go – Launches/attaches shell tunnels and coordinates managed shell lifecycle.

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 ShellAttachCmd added in v1.7.2

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

ShellAttachCmd re-attaches local stdin/stdout to a managed shell tunnel.

func ShellCmd

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

ShellCmd - Start an interactive shell on the remote system.

func ShellIDCompleter added in v1.7.2

func ShellIDCompleter(_ *console.SliverClient) carapace.Action

ShellIDCompleter completes IDs of managed local shells.

func ShellKillCmd added in v1.7.2

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

ShellKillCmd kills a managed shell from the REPL and cleans up remote state.

func ShellLsCmd added in v1.7.2

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

ShellLsCmd lists local shell tunnels currently managed by the client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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