Documentation
¶
Index ¶
- Constants
- func AliasCompleter() carapace.Action
- func AliasesCmd(cmd *cobra.Command, con *repl.Console)
- func AliasesInstallCmd(cmd *cobra.Command, con *repl.Console)
- func AliasesLoadCmd(cmd *cobra.Command, con *repl.Console)
- func AliasesRemoveCmd(cmd *cobra.Command, con *repl.Console)
- func Commands(con *repl.Console) []*cobra.Command
- func ExecuteAlias(rpc clientrpc.MaliceRPCClient, sess *core.Session, aliasName string, ...) (*clientpb.Task, error)
- func InstallAlias(aliasGzFilePath string, installPath, artifactPath string) error
- func InstallFromFile(aliasGzFilePath string, aliasName string, promptToOverwrite bool, ...) *string
- func PrintAliases(con *repl.Console, isStatic bool)
- func Register(con *repl.Console)
- func RegisterAlias(aliasManifest *AliasManifest, cmd *cobra.Command, con *repl.Console) error
- func RemoveAliasByCommandName(commandName string, con *repl.Console) error
- type AliasFile
- type AliasManifest
Constants ¶
View Source
const (
ManifestFileName = "alias.json"
)
Variables ¶
This section is empty.
Functions ¶
func AliasCompleter ¶ added in v0.0.2
AliasCommandNameCompleter - Completer for installed extensions command names.
func AliasesCmd ¶
AliasesCmd - The alias command
func AliasesInstallCmd ¶
AliasesInstallCmd - Install an alias
func AliasesLoadCmd ¶
AliasesLoadCmd - Locally load a alias into the Sliver shell.
func AliasesRemoveCmd ¶
AliasesRemoveCmd - Locally load a alias into the Sliver shell.
func ExecuteAlias ¶ added in v0.0.2
func InstallAlias ¶ added in v0.1.0
func InstallFromFile ¶
func InstallFromFile(aliasGzFilePath string, aliasName string, promptToOverwrite bool, con *repl.Console) *string
Install an extension from a .tar.gz file
func PrintAliases ¶
PrintAliases - Print a list of loaded aliases
func RegisterAlias ¶ added in v0.0.2
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:"-"`
ArmoryName string `json:"-"`
ArmoryPK string `json:"-"`
}
AliasManifest - The manifest for an alias, contains metadata
func LoadAlias ¶
func LoadAlias(manifestPath string, con *repl.Console) (*AliasManifest, error)
LoadAlias - Load an alias into the Malice-Network shell from a given directory
func ParseAliasManifest ¶
func ParseAliasManifest(data []byte) (*AliasManifest, error)
ParseAliasManifest - Parse an alias manifest
Click to show internal directories.
Click to hide internal directories.