aka

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

README

client/command/aka

Overview

Implements the 'aka' command group for the Sliver client console. "Aka"s are command aliases (like 'alias' in 'bash') that allow operators to specify shorthand commands and default arguments for commonly used commands.

Examples:
  • aka create bg background: Allows an operator to run bg from the implant menu to quickly move back to the server menu
  • aka create execw execute -o "C:\Windows\System32\cmd.exe" /c: Shorthand for executing binaries on Windows targets like: execw arp -a

Go Files

  • commands.go – Wires Cobra commands for listing, creating, and deleting command aliases in the client console.
  • create.go – Handles creating command aliases to use by the client.
  • delete.go – Removes command aliases currently tracked by the client.
  • hook.go – The main hooking logic to intercept commands ran by the client console. The hook will intercept processing before hitting the Cobra tree to transform the command alias to a full command with default arguments from the command alias and user-provided arguments to the alias.
  • list.go - Lists the current command aliases tracked by the client.
  • storage.go - Supports the saving of aliases to disk to keep between runs of the client.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AkaCreateCmd

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

func AkaDeleteCmd

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

func AkaListCmd

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

func Cmdhook

func Cmdhook(args []string) ([]string, error)

func GetAkaAliasesFilePath

func GetAkaAliasesFilePath() string

func ImplantCommands

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

func LoadAkaAliases

func LoadAkaAliases() error

func SaveAkaAliases

func SaveAkaAliases() error

func ServerCommands

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

Types

type AkaAlias

type AkaAlias struct {
	Name        string   `json:"name"`         // alias Name
	Command     string   `json:"command"`      // command being aliased
	DefaultArgs []string `json:"default_args"` // args passed by the user
	Description string   `json:"description"`
}

Jump to

Keyboard shortcuts

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