Documentation
¶
Index ¶
- Variables
- func AddLootAPIKey(rpc rpcpb.SliverRPCClient, name string, apiKey string) error
- func AddLootFile(rpc rpcpb.SliverRPCClient, name string, fileName string, data []byte, ...) error
- func AddLootUserPassword(rpc rpcpb.SliverRPCClient, name string, user string, password string) error
- func CreateLootMessage(fileName string, lootName string, lootType clientpb.LootType, ...) *clientpb.Loot
- func LootAddCredentialCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func LootAddLocalCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func LootAddRemoteCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func LootCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func LootDownload(download *sliverpb.Download, lootName string, lootType clientpb.LootType, ...)
- func LootFetchCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func LootRenameCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func LootRmCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func PerformDownload(remotePath string, fileName string, ctx *grumble.Context, ...) (*sliverpb.Download, error)
- func PrintAllCredentialLootTable(stdout io.Writer, allLoot *clientpb.AllLoot)
- func PrintAllFileLootTable(stdout io.Writer, allLoot *clientpb.AllLoot)
- func PrintAllLootTable(stdout io.Writer, allLoot *clientpb.AllLoot)
- func PrintLootCredential(stdout io.Writer, loot *clientpb.Loot)
- func PrintLootFile(stdout io.Writer, loot *clientpb.Loot)
- func SelectCredentials(con *console.SliverConsoleClient) (*clientpb.Loot, error)
- func SelectLoot(ctx *grumble.Context, rpc rpcpb.SliverRPCClient) (*clientpb.Loot, error)
- func SendLootMessage(loot *clientpb.Loot, con *console.SliverConsoleClient)
- func ValidateLootFileType(lootFileTypeInput string, data []byte) clientpb.FileType
- func ValidateLootType(lootTypeInput string) (clientpb.LootType, error)
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 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 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 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 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 ¶
PrintAllCredentialLootTable - Displays a table of all credential loot
func PrintAllFileLootTable ¶
PrintAllFileLootTable - Displays a table of all file loot
func PrintAllLootTable ¶
PrintAllLootTable - Displays a table of all loot
func PrintLootFile ¶
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 ¶
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
Types ¶
This section is empty.