creds

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: 21 Imported by: 0

README

client/command/creds

Overview

Implements the 'creds' command group for the Sliver client console. Handlers map Cobra invocations to creds workflows such as ADD, hash types, RM, and select.

Go Files

  • add.go – Adds credentials to the client store via interactive or flag-based input.
  • commands.go – Registers credential management commands and subcommands.
  • creds.go – Lists stored credentials and formats them for display.
  • hash-types.go – Enumerates supported hash types and their identifiers.
  • rm.go – Removes credentials by ID or filter from the store.
  • select.go – Selects credentials for use in other workflows, updating defaults.

Documentation

Index

Constants

View Source
const (
	UserColonHashNewlineFormat = "user:hash" // username:hash\n
	HashNewlineFormat          = "hash"      // hash\n
	CSVFormat                  = "csv"       // username,hash\n
)

Variables

This section is empty.

Functions

func Commands

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

Commands returns the “ command and its subcommands.

func CredsAddCmd

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

CredsCmd - Add new credentials.

func CredsAddHashFileCmd

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

CredsCmd - Add new credentials.

func CredsCmd

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

CredsCmd - Manage credentials.

func CredsCollectionCompleter

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

CredsCollectionCompleter completes existing creds collection names.

func CredsCredentialIDCompleter

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

CredsCredentialIDCompleter completes credential IDs.

func CredsHashFileFormatCompleter

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

CredsHashFileFormatCompleter completes file formats for hash-files.

func CredsHashTypeCompleter

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

CredsHashTypeCompleter completes hash types.

func CredsRmCmd

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

CredsCmd - Add new credentials.

func PrintCreds

func PrintCreds(creds []*clientpb.Credential, con *console.SliverClient)

func SelectCredential

func SelectCredential(plaintext bool, hashType clientpb.HashType, con *console.SliverClient) (*clientpb.Credential, error)

SelectCredential - Interactive menu for the user to select a credentials from the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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