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 *glodpb.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 ¶
func ExtensionLoadCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
ExtensionLoadCmd - Load extension command
func ExtensionRegisterCommand ¶
func ExtensionRegisterCommand(extCmd *ExtensionManifest, con *console.SliverConsoleClient)
ExtensionRegisterCommand - Register a new extension command
func ExtensionsCmd ¶
func ExtensionsCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
ExtensionsCmd - List information about installed extensions
func ExtensionsCommandNameCompleter ¶
func ExtensionsCommandNameCompleter(prefix string, args []string, con *console.SliverConsoleClient) []string
ExtensionsCommandNameCompleter - Completer for installed extensions command names
func ExtensionsInstallCmd ¶
func ExtensionsInstallCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
ExtensionsInstallCmd - Install an extension
func ExtensionsListCmd ¶
func ExtensionsListCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
ExtensionsListCmd - List all extension loaded on the active session/beacon
func ExtensionsRemoveCmd ¶
func ExtensionsRemoveCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
ExtensionsRemoveCmd - Remove an extension
func InstallFromFilePath ¶
func InstallFromFilePath(extLocalPath string, autoOverwrite bool, con *console.SliverConsoleClient) *string
InstallFromFilePath - Install an extension from a .tar.gz file
func PrintExtOutput ¶
func PrintExtOutput(extName string, commandName string, callExtension *glodpb.CallExtension, con *console.SliverConsoleClient)
PrintExtOutput - Print the ext execution output
func PrintExtensions ¶
func PrintExtensions(con *console.SliverConsoleClient)
PrintExtensions - Print a list of loaded extensions
func RemoveExtensionByCommandName ¶
func RemoveExtensionByCommandName(commandName string, con *console.SliverConsoleClient) error
RemoveExtensionByCommandName - Remove an extension by command name
Types ¶
type ExtensionManifest ¶
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 ¶
func LoadExtensionManifest(manifestPath string) (*ExtensionManifest, error)
LoadExtensionManifest - Parse extension files
func ParseExtensionManifest ¶
func ParseExtensionManifest(data []byte) (*ExtensionManifest, error)
ParseExtensionManifest - Parse extension manifest from buffer