wireguard

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: GPL-3.0 Imports: 21 Imported by: 2

README

client/command/wireguard

Overview

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

Go Files

  • commands.go – Registers WireGuard-centric commands and their subcommands.
  • wg-config.go – Generates and displays WireGuard configuration files for implants.
  • wg-portfwd-add.go – Adds WireGuard-based port forwarding rules.
  • wg-portfwd-rm.go – Removes WireGuard port forwarding entries.
  • wg-portfwd.go – Lists WireGuard forwarding rules with status information.
  • wg-socks-start.go – Starts SOCKS proxies over WireGuard tunnels.
  • wg-socks-stop.go – Stops WireGuard-backed SOCKS proxies.
  • wg-socks.go – Lists SOCKS proxies running over WireGuard connections.

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 PortfwdIDCompleter added in v1.6.0

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

PortfwdIDCompleter completes IDs of WireGuard remote portforwarders.

func SliverCommands added in v1.6.0

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

SliverCommands returns all Wireguard commands that can be used on an active target.

func SocksIDCompleter added in v1.6.0

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

SocksIDCompleter IDs of WireGuard socks servers.

func WGConfigCmd

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

WGConfigCmd - Generate a WireGuard client configuration.

func WGPortFwdAddCmd

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

WGPortFwdAddCmd - Add a new WireGuard port forward.

func WGPortFwdListCmd

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

WGPortFwdListCmd - List WireGuard port forwards.

func WGPortFwdRmCmd

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

WGPortFwdRmCmd - Remove a WireGuard port forward.

func WGSocksListCmd

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

WGSocksListCmd - List WireGuard SOCKS proxies.

func WGSocksStartCmd

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

WGSocksStartCmd - Start a WireGuard reverse SOCKS proxy.

func WGSocksStopCmd

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

WGSocksStopCmd - Stop a WireGuard SOCKS proxy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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