Documentation ¶
Index ¶
- Constants
- func AliasCommandNameCompleter(prefix string, args []string, con *console.SliverConsoleClient) []string
- func AliasesCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func AliasesInstallCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func AliasesLoadCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func AliasesRemoveCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func InstallFromFile(aliasGzFilePath string, autoOverwrite bool, con *console.SliverConsoleClient) *string
- func PrintAliases(con *console.SliverConsoleClient)
- func PrintAssemblyOutput(cmdName string, execAsmResp *sliverpb.ExecuteAssembly, outFilePath *os.File, ...)
- func PrintSideloadOutput(cmdName string, sideloadResp *sliverpb.Sideload, outFilePath *os.File, ...)
- func PrintSpawnDLLOutput(cmdName string, spawnDllResp *sliverpb.SpawnDll, outFilePath *os.File, ...)
- func RemoveAliasByCommandName(commandName string, con *console.SliverConsoleClient) error
- type AliasFile
- type AliasManifest
Constants ¶
const (
ManifestFileName = "alias.json"
)
Variables ¶
This section is empty.
Functions ¶
func AliasCommandNameCompleter ¶
func AliasCommandNameCompleter(prefix string, args []string, con *console.SliverConsoleClient) []string
AliasCommandNameCompleter - Completer for installed extensions command names
func AliasesCmd ¶
func AliasesCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
AliasesCmd - The alias command
func AliasesInstallCmd ¶
func AliasesInstallCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
AliasesInstallCmd - Install an alias
func AliasesLoadCmd ¶
func AliasesLoadCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
AliasesLoadCmd - Locally load a alias into the Sliver shell.
func AliasesRemoveCmd ¶
func AliasesRemoveCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
AliasesRemoveCmd - Locally load a alias into the Sliver shell.
func InstallFromFile ¶
func InstallFromFile(aliasGzFilePath string, autoOverwrite bool, con *console.SliverConsoleClient) *string
Install an extension from a .tar.gz file
func PrintAliases ¶
func PrintAliases(con *console.SliverConsoleClient)
PrintAliases - Print a list of loaded aliases
func PrintAssemblyOutput ¶
func PrintAssemblyOutput(cmdName string, execAsmResp *sliverpb.ExecuteAssembly, outFilePath *os.File, con *console.SliverConsoleClient)
PrintAssemblyOutput - Prints the output of an execute-assembly command
func PrintSideloadOutput ¶
func PrintSideloadOutput(cmdName string, sideloadResp *sliverpb.Sideload, outFilePath *os.File, con *console.SliverConsoleClient)
PrintSideloadOutput - Prints the output of a sideload command
func PrintSpawnDLLOutput ¶
func PrintSpawnDLLOutput(cmdName string, spawnDllResp *sliverpb.SpawnDll, outFilePath *os.File, con *console.SliverConsoleClient)
PrintSpawnDLLOutput - Prints the output of a spawn dll command
func RemoveAliasByCommandName ¶
func RemoveAliasByCommandName(commandName string, con *console.SliverConsoleClient) error
RemoveAliasByCommandName - Remove an alias by command name
Types ¶
type AliasManifest ¶
type AliasManifest struct { Name string `json:"name"` Version string `json:"version"` CommandName string `json:"command_name"` OriginalAuthor string `json:"original_author"` RepoURL string `json:"repo_url"` Help string `json:"help"` LongHelp string `json:"long_help"` Entrypoint string `json:"entrypoint"` AllowArgs bool `json:"allow_args"` DefaultArgs string `json:"default_args"` Files []*AliasFile `json:"files"` IsReflective bool `json:"is_reflective"` IsAssembly bool `json:"is_assembly"` RootPath string `json:"-"` }
AliasManifest - The manifest for an alias, contains metadata
func LoadAlias ¶
func LoadAlias(manifestPath string, con *console.SliverConsoleClient) (*AliasManifest, error)
LoadAlias - Load an alias into the Sliver shell from a given directory
func ParseAliasManifest ¶
func ParseAliasManifest(data []byte) (*AliasManifest, error)
ParseAliasManifest - Parse an alias manifest