filesystem

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: 26 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 ChmodCmd added in v1.5.37

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

ChmodCmd - Change the permissions of a file on the remote file system

func ChownCmd added in v1.5.37

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

ChownCmd - Change the owner of a file on the remote file system

func ChtimesCmd added in v1.5.37

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

ChtimesCmd - Change the access and modified time of a file on the remote file 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 MemfilesAddCmd added in v1.5.40

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

MemfilesAddCmd - Add memfile

func MemfilesListCmd added in v1.5.40

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

MemfilesListCmd - List memfiles

func MemfilesRmCmd added in v1.5.40

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

MemfilesRmCmd - Remove a memfile

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 PrintAddMemfile added in v1.5.40

func PrintAddMemfile(memfilesAdd *sliverpb.MemfilesAdd, con *console.SliverConsoleClient)

PrintAddMemfile - Print the memfiles response

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 PrintChmod added in v1.5.37

func PrintChmod(chmod *sliverpb.Chmod, con *console.SliverConsoleClient)

PrintChmod - Print the chmod response

func PrintChown added in v1.5.37

func PrintChown(chown *sliverpb.Chown, con *console.SliverConsoleClient)

PrintChown - Print the chown response

func PrintChtimes added in v1.5.37

func PrintChtimes(chtimes *sliverpb.Chtimes, con *console.SliverConsoleClient)

PrintChtimes - Print the Chtimes response

func PrintLs

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

PrintLs - Display an sliverpb.Ls object

func PrintMemfiles added in v1.5.40

func PrintMemfiles(ls *sliverpb.Ls, con *console.SliverConsoleClient)

PrintMemfiles - 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 PrintRmMemfile added in v1.5.40

func PrintRmMemfile(memfilesList *sliverpb.MemfilesRm, con *console.SliverConsoleClient)

PrintRmMemfile - Remove a memfile

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