Documentation ¶
Index ¶
- Constants
- func CmdExists(name string, app *grumble.App) bool
- func ExtensionLoadCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func ExtensionRegisterCommand(extCmd *ExtensionManifest, con *console.SliverConsoleClient)
- func ExtensionsCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func ExtensionsCommandNameCompleter(prefix string, args []string, con *console.SliverConsoleClient) []string
- func ExtensionsInstallCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func ExtensionsListCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func ExtensionsRemoveCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func InstallFromFilePath(extLocalPath string, autoOverwrite bool, con *console.SliverConsoleClient) *string
- func PrintExtOutput(extName string, commandName string, callExtension *sliverpb.CallExtension, ...)
- func PrintExtensions(con *console.SliverConsoleClient)
- func RemoveExtensionByCommandName(commandName string, con *console.SliverConsoleClient) error
- type ExtensionManifest
Constants ¶
const (
// ManifestFileName - Extension manifest file name
ManifestFileName = "extension.json"
)
Variables ¶
This section is empty.
Functions ¶
func ExtensionLoadCmd ¶ added in v1.5.0
func ExtensionLoadCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
ExtensionLoadCmd - Load extension command
func ExtensionRegisterCommand ¶ added in v1.5.0
func ExtensionRegisterCommand(extCmd *ExtensionManifest, con *console.SliverConsoleClient)
ExtensionRegisterCommand - Register a new extension command
func ExtensionsCmd ¶ added in v1.5.0
func ExtensionsCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
ExtensionsCmd - List information about installed extensions
func ExtensionsCommandNameCompleter ¶ added in v1.5.0
func ExtensionsCommandNameCompleter(prefix string, args []string, con *console.SliverConsoleClient) []string
ExtensionsCommandNameCompleter - Completer for installed extensions command names
func ExtensionsInstallCmd ¶ added in v1.5.0
func ExtensionsInstallCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
ExtensionsInstallCmd - Install an extension
func ExtensionsListCmd ¶ added in v1.5.0
func ExtensionsListCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
ExtensionsListCmd - List all extension loaded on the active session/beacon
func ExtensionsRemoveCmd ¶ added in v1.5.0
func ExtensionsRemoveCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
ExtensionsRemoveCmd - Remove an extension
func InstallFromFilePath ¶ added in v1.5.0
func InstallFromFilePath(extLocalPath string, autoOverwrite bool, con *console.SliverConsoleClient) *string
InstallFromFilePath - Install an extension from a .tar.gz file
func PrintExtOutput ¶ added in v1.5.0
func PrintExtOutput(extName string, commandName string, callExtension *sliverpb.CallExtension, con *console.SliverConsoleClient)
PrintExtOutput - Print the ext execution output
func PrintExtensions ¶ added in v1.5.0
func PrintExtensions(con *console.SliverConsoleClient)
PrintExtensions - Print a list of loaded extensions
func RemoveExtensionByCommandName ¶ added in v1.5.0
func RemoveExtensionByCommandName(commandName string, con *console.SliverConsoleClient) error
RemoveExtensionByCommandName - Remove an extension by command name
Types ¶
type ExtensionManifest ¶ added in v1.5.0
type ExtensionManifest struct { Name string `json:"name"` CommandName string `json:"command_name"` Version string `json:"version"` ExtensionAuthor string `json:"extension_author"` OriginalAuthor string `json:"original_author"` RepoURL string `json:"repo_url"` Help string `json:"help"` LongHelp string `json:"long_help"` Files []*extensionFile `json:"files"` Arguments []*extensionArgument `json:"arguments"` Entrypoint string `json:"entrypoint"` DependsOn string `json:"depends_on"` Init string `json:"init"` RootPath string `json:"-"` }
func LoadExtensionManifest ¶ added in v1.5.0
func LoadExtensionManifest(manifestPath string) (*ExtensionManifest, error)
LoadExtensionManifest - Parse extension files
func ParseExtensionManifest ¶ added in v1.5.0
func ParseExtensionManifest(data []byte) (*ExtensionManifest, error)
ParseExtensionManifest - Parse extension manifest from buffer