filesystem

package
v1.15.16 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: GPL-3.0 Imports: 24 Imported by: 2

README

Filesystem

This package implements file system commands such as ls, cd, rm, download, upload, etc.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatCmd

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

CatCmd - Display the contents of a remote file

func CdCmd

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

CdCmd - Change directory on the remote system

func DownloadCmd

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

func HandleDownloadResponse added in v1.5.16

func HandleDownloadResponse(download *sliverpb.Download, ctx *grumble.Context, con *console.SliverConsoleClient)

func LsCmd

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

LsCmd - List the contents of a remote directory

func MkdirCmd

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

MkdirCmd - Make a remote directory

func MvCmd added in v1.5.10

func MvCmd(ctx *grumble.Context, con *console.SliverConsoleClient) (err error)

func PrintCat added in v1.5.0

func PrintCat(download *sliverpb.Download, ctx *grumble.Context, con *console.SliverConsoleClient)

PrintCat - Print the download to stdout

func PrintLs

func PrintLs(ls *sliverpb.Ls, flags grumble.FlagMap, filter string, con *console.SliverConsoleClient)

PrintLs - Display an sliverpb.Ls object

func PrintMkdir added in v1.5.0

func PrintMkdir(mkdir *sliverpb.Mkdir, con *console.SliverConsoleClient)

PrintMkdir - Print make directory

func PrintMv added in v1.5.10

func PrintMv(mv *sliverpb.Mv, con *console.SliverConsoleClient)

PrintMv - Print the renamed file

func PrintPwd added in v1.5.0

func PrintPwd(pwd *sliverpb.Pwd, con *console.SliverConsoleClient)

PrintPwd - Print the remote working directory

func PrintRm added in v1.5.0

func PrintRm(rm *sliverpb.Rm, con *console.SliverConsoleClient)

PrintRm - Print the rm response

func PrintUpload added in v1.5.0

func PrintUpload(upload *sliverpb.Upload, con *console.SliverConsoleClient)

PrintUpload - Print the result of the upload command

func PwdCmd

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

PwdCmd - Print the remote working directory

func RmCmd

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

RmCmd - Remove a directory from the remote file system

func UploadCmd

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

UploadCmd - Upload a file to the remote system

Types

This section is empty.

Jump to

Keyboard shortcuts

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