loot

package
v1.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2024 License: GPL-3.0 Imports: 30 Imported by: 0

README

Loot

Client loot command implementations

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 CreateLootMessage(hostUUID string, fileName string, lootName string, lootFileType clientpb.FileType, data []byte) *clientpb.Loot

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 LootBinary(data []byte, lootName string, lootFileName string, fileType clientpb.FileType, con *console.SliverClient)

func LootCmd

func LootCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

LootCmd - The loot root command

func LootDownload

func LootDownload(download *sliverpb.Download, lootName string, fileType clientpb.FileType, cmd *cobra.Command, con *console.SliverClient)

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 LootRmCmd

func LootRmCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

func LootText

func LootText(text string, lootName string, lootFileName string, fileType clientpb.FileType, con *console.SliverClient)

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

func SelectLoot(cmd *cobra.Command, rpc rpcpb.SliverRPCClient) (*clientpb.Loot, error)

SelectLoot - Interactive menu for the user to select a piece loot (all types)

func SendLootMessage

func SendLootMessage(loot *clientpb.Loot, con *console.SliverClient)

func ValidateLootFileType

func ValidateLootFileType(lootFileTypeInput string, data []byte) clientpb.FileType

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL