Documentation ¶
Index ¶
- Variables
- func AddLootFile(rpc rpcpb.SliverRPCClient, name string, fileName string, data []byte, ...) error
- func Commands(con *console.SliverClient) []*cobra.Command
- func CreateLootMessage(hostUUID string, fileName string, lootName string, ...) *clientpb.Loot
- func FileTypeCompleter(con *console.SliverClient) carapace.Action
- func LootAddLocalCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func LootAddRemoteCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func LootBinary(data []byte, lootName string, lootFileName string, fileType clientpb.FileType, ...)
- func LootCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func LootDownload(download *sliverpb.Download, lootName string, fileType clientpb.FileType, ...)
- func LootFetchCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func LootRenameCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func LootRmCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func LootText(text string, lootName string, lootFileName string, fileType clientpb.FileType, ...)
- func LootTypeCompleter(con *console.SliverClient) carapace.Action
- func PerformDownload(remotePath string, fileName string, cmd *cobra.Command, ...) (*sliverpb.Download, error)
- func PrintAllFileLootTable(allLoot *clientpb.AllLoot, con *console.SliverClient)
- func PrintLootFile(loot *clientpb.Loot, con *console.SliverClient)
- func SelectLoot(cmd *cobra.Command, rpc rpcpb.SliverRPCClient) (*clientpb.Loot, error)
- func SendLootMessage(loot *clientpb.Loot, con *console.SliverClient)
- func ValidateLootFileType(lootFileTypeInput string, data []byte) clientpb.FileType
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInvalidFileType - Invalid file type ErrInvalidFileType = errors.New("invalid file type") // ErrInvalidLootType - Invalid loot type ErrInvalidLootType = errors.New("invalid loot type") // ErrNoLootFileData - No loot file data ErrNoLootFileData = errors.New("no loot file data") )
Functions ¶
func AddLootFile ¶
func AddLootFile(rpc rpcpb.SliverRPCClient, name string, fileName string, data []byte, isCredential bool) error
AddLootFile - Add a file as loot
func Commands ¶
func Commands(con *console.SliverClient) []*cobra.Command
Commands returns the “ command and its subcommands.
func CreateLootMessage ¶
func FileTypeCompleter ¶
func FileTypeCompleter(con *console.SliverClient) carapace.Action
FileTypeCompleter completes valid filetypes for loot.
func LootAddLocalCmd ¶
func LootAddLocalCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
LootAddLocalCmd - Add a local file to the server as loot
func LootAddRemoteCmd ¶
func LootAddRemoteCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
LootAddRemoteCmd - Add a file from the remote system to the server as loot
func LootBinary ¶
func LootCmd ¶
func LootCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
LootCmd - The loot root command
func LootDownload ¶
func LootFetchCmd ¶
func LootFetchCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
LootFetchCmd - Display the contents of or download a piece of loot
func LootRenameCmd ¶
func LootRenameCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
LootRenameCmd - Rename a piece of loot
func LootTypeCompleter ¶
func LootTypeCompleter(con *console.SliverClient) carapace.Action
LootTypeCompleter completes valid loot type for a loot.
func PerformDownload ¶
func PerformDownload(remotePath string, fileName string, cmd *cobra.Command, con *console.SliverClient) (*sliverpb.Download, error)
Eventually this function needs to be refactored out, but we made the decision to duplicate it for now
func PrintAllFileLootTable ¶
func PrintAllFileLootTable(allLoot *clientpb.AllLoot, con *console.SliverClient)
PrintAllFileLootTable - Displays a table of all file loot
func PrintLootFile ¶
func PrintLootFile(loot *clientpb.Loot, con *console.SliverClient)
PrintLootFile - Display the contents of a piece of loot
func SelectLoot ¶
SelectLoot - Interactive menu for the user to select a piece loot (all types)
func SendLootMessage ¶
func SendLootMessage(loot *clientpb.Loot, con *console.SliverClient)
Types ¶
This section is empty.