portfwd

package
v1.6.2 Latest Latest
Warning

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

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

README

client/command/portfwd

Overview

Implements the 'portfwd' command group for the Sliver client console. Handlers map Cobra invocations to portfwd workflows such as portfwd ADD and portfwd RM.

Go Files

  • commands.go – Sets up the port forwarding command suite.
  • portfwd-add.go – Adds new local-to-remote port forwarders on the active session.
  • portfwd-rm.go – Removes configured port forwarders by ID.
  • portfwd.go – Lists existing port forwards and renders their configuration.

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 PortfwdAddCmd

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

PortfwdAddCmd - Add a new tunneled port forward.

func PortfwdCmd

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

PortfwdCmd - Display information about tunneled port forward(s).

func PortfwdIDCompleter added in v1.6.0

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

PortfwdIDCompleter completes IDs of local portforwarders.

func PortfwdRmCmd

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

PortfwdRmCmd - Remove an existing tunneled port forward.

func PrintPortfwd added in v1.5.0

func PrintPortfwd(con *console.SliverClient)

PrintPortfwd - Print the port forward(s).

Types

This section is empty.

Jump to

Keyboard shortcuts

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