filesystem

package
v1.5.43 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: GPL-3.0 Imports: 26 Imported by: 0

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

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

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

func ChownCmd

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

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

func ChtimesCmd

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

func HandleDownloadResponse(download *glodpb.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

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

MemfilesAddCmd - Add memfile

func MemfilesListCmd

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

MemfilesListCmd - List memfiles

func MemfilesRmCmd

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

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

func PrintAddMemfile

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

PrintAddMemfile - Print the memfiles response

func PrintCat

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

PrintCat - Print the download to stdout

func PrintChmod

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

PrintChmod - Print the chmod response

func PrintChown

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

PrintChown - Print the chown response

func PrintChtimes

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

PrintChtimes - Print the Chtimes response

func PrintLs

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

PrintLs - Display an glodpb.Ls object

func PrintMemfiles

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

PrintMemfiles - Display an glodpb.Ls object

func PrintMkdir

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

PrintMkdir - Print make directory

func PrintMv

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

PrintMv - Print the renamed file

func PrintPwd

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

PrintPwd - Print the remote working directory

func PrintRm

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

PrintRm - Print the rm response

func PrintRmMemfile

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

PrintRmMemfile - Remove a memfile

func PrintUpload

func PrintUpload(upload *glodpb.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