settings

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: GPL-3.0 Imports: 14 Imported by: 55

README

client/command/settings

Overview

Implements the 'settings' command group for the Sliver client console. Handlers map Cobra invocations to settings workflows such as beacons, opsec, and tables.

Go Files

  • beacons.go – Configures beacon polling, jitter, and other runtime options.
  • commands.go – Registers the settings command namespace and attaches subcommands.
  • opsec.go – Manages operational security settings like auto tasks and notifications.
  • settings.go – Lists and updates general client settings persisted to disk.
  • tables.go – Adjusts table formatting preferences for console output.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SliverDefault = table.Style{
		Name: "SliverDefault",
		Box: table.BoxStyle{
			BottomLeft:       " ",
			BottomRight:      " ",
			BottomSeparator:  " ",
			Left:             " ",
			LeftSeparator:    " ",
			MiddleHorizontal: "=",
			MiddleSeparator:  " ",
			MiddleVertical:   " ",
			PaddingLeft:      " ",
			PaddingRight:     " ",
			Right:            " ",
			RightSeparator:   " ",
			TopLeft:          " ",
			TopRight:         " ",
			TopSeparator:     " ",
			UnfinishedRow:    "~~",
		},
		Color: table.ColorOptions{
			IndexColumn:  text.Colors{},
			Footer:       text.Colors{},
			Header:       text.Colors{},
			Row:          text.Colors{},
			RowAlternate: text.Colors{},
		},
		Format: table.FormatOptions{
			Footer: text.FormatDefault,
			Header: text.FormatTitle,
			Row:    text.FormatDefault,
		},
		Options: table.Options{
			DrawBorder:      false,
			SeparateColumns: true,
			SeparateFooter:  false,
			SeparateHeader:  true,
			SeparateRows:    false,
		},
	}
)

Functions

func Commands added in v1.6.0

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

Commands returns the “ command and its subcommands.

func GetAutoAdult

func GetAutoAdult(con *console.SliverClient) bool

GetAutoAdult - Get the current auto adult setting.

func GetPageSize

func GetPageSize() int

GetPageSize - Page size for tables.

func GetTableStyle

func GetTableStyle(con *console.SliverClient) table.Style

GetTableStyle - Get the current table style.

func GetTableWithBordersStyle

func GetTableWithBordersStyle(con *console.SliverClient) table.Style

GetTableWithBordersStyle - Get the table style with borders.

func IsUserAnAdult

func IsUserAnAdult(con *console.SliverClient) bool

IsUserAnAdult - This should be called for any dangerous (OPSEC-wise) functions.

func PagesOf

func PagesOf(renderedTable string) [][]string

PagesOf - Return the pages of a table.

func PaginateTable

func PaginateTable(tw table.Writer, skipPages int, overflow bool, interactive bool, con *console.SliverClient)

PaginateTable - Render paginated table to console.

func SettingsAlwaysOverflow added in v1.5.5

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

SettingsAlwaysOverflow - Toggle always overflow.

func SettingsAutoAdultCmd

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

SettingsAutoAdultCmd - The client settings command.

func SettingsBeaconsAutoResultCmd

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

SettingsBeaconsAutoResultCmd - The client settings command.

func SettingsCmd

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

SettingsCmd - The client settings command.

func SettingsConsoleLogs added in v1.6.0

func SettingsConsoleLogs(cmd *cobra.Command, con *console.SliverClient)

SettingsConsoleLogs - Toggle console logs.

func SettingsSaveCmd

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

SettingsSaveCmd - The client settings command.

func SettingsSmallTerm added in v1.5.5

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

SettingsSmallTerm - Modify small terminal width value.

func SettingsTablesCmd

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

SettingsTablesCmd - The client settings command.

func SettingsUserConnect added in v1.6.0

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

SettingsAlwaysOverflow - Toggle always overflow.

Types

This section is empty.

Jump to

Keyboard shortcuts

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