loot

package
v1.5.40 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: GPL-3.0 Imports: 23 Imported by: 5

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 AddLootAPIKey

func AddLootAPIKey(rpc rpcpb.SliverRPCClient, name string, apiKey string) error

AddLootAPIKey - Add a api key as loot

func AddLootFile

func AddLootFile(rpc rpcpb.SliverRPCClient, name string, fileName string, data []byte, isCredential bool) error

AddLootFile - Add a file as loot

func AddLootUserPassword

func AddLootUserPassword(rpc rpcpb.SliverRPCClient, name string, user string, password string) error

AddLootUserPassword - Add user/password as loot

func CreateLootMessage added in v1.5.13

func CreateLootMessage(fileName string, lootName string, lootType clientpb.LootType, lootFileType clientpb.FileType, data []byte) *clientpb.Loot

func LootAddCredentialCmd

func LootAddCredentialCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

LootAddCredentialCmd - Add a credential type loot

func LootAddLocalCmd

func LootAddLocalCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

LootAddLocalCmd - Add a local file to the server as loot

func LootAddRemoteCmd

func LootAddRemoteCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

LootAddRemoteCmd - Add a file from the remote system to the server as loot

func LootCmd

func LootCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

LootCmd - The loot root command

func LootDownload added in v1.5.13

func LootDownload(download *sliverpb.Download, lootName string, lootType clientpb.LootType, fileType clientpb.FileType, ctx *grumble.Context, con *console.SliverConsoleClient)

func LootFetchCmd

func LootFetchCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

LootFetchCmd - Display the contents of or download a piece of loot

func LootRenameCmd

func LootRenameCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

LootRenameCmd - Rename a piece of loot

func LootRmCmd

func LootRmCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

func PerformDownload added in v1.5.13

func PerformDownload(remotePath string, fileName string, ctx *grumble.Context, con *console.SliverConsoleClient) (*sliverpb.Download, error)

Eventually this function needs to be refactored out, but we made the decision to duplicate it for now

func PrintAllCredentialLootTable

func PrintAllCredentialLootTable(stdout io.Writer, allLoot *clientpb.AllLoot)

PrintAllCredentialLootTable - Displays a table of all credential loot

func PrintAllFileLootTable

func PrintAllFileLootTable(stdout io.Writer, allLoot *clientpb.AllLoot)

PrintAllFileLootTable - Displays a table of all file loot

func PrintAllLootTable

func PrintAllLootTable(stdout io.Writer, allLoot *clientpb.AllLoot)

PrintAllLootTable - Displays a table of all loot

func PrintLootCredential

func PrintLootCredential(stdout io.Writer, loot *clientpb.Loot)

func PrintLootFile

func PrintLootFile(stdout io.Writer, loot *clientpb.Loot)

PrintLootFile - Display the contents of a piece of loot

func SelectCredentials

func SelectCredentials(con *console.SliverConsoleClient) (*clientpb.Loot, error)

SelectCredentials - An interactive menu for the user to select a piece of loot

func SelectLoot

func SelectLoot(ctx *grumble.Context, rpc rpcpb.SliverRPCClient) (*clientpb.Loot, error)

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

func SendLootMessage added in v1.5.13

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

func ValidateLootFileType added in v1.5.13

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

func ValidateLootType added in v1.5.13

func ValidateLootType(lootTypeInput string) (clientpb.LootType, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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