filesystem

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: GPL-3.0 Imports: 39 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(cmd *cobra.Command, con *console.SliverClient, args []string)

CatCmd - Display the contents of a remote file.

func CdCmd

func CdCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

CdCmd - Change directory on the remote system.

func ChmodCmd

func ChmodCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

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

func ChownCmd

func ChownCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

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

func ChtimesCmd

func ChtimesCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

ChtimesCmd - Change the access and modified time of a file on the remote file system.

func Commands

func Commands(con *console.SliverClient) []*cobra.Command

Commands returns the “ command and its subcommands.

func CpCmd

func CpCmd(cmd *cobra.Command, con *console.SliverClient, args []string) (err error)

func DownloadCmd

func DownloadCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

func GrepCmd

func GrepCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

func HandleDownloadResponse

func HandleDownloadResponse(download *sliverpb.Download, cmd *cobra.Command, args []string, con *console.SliverClient)

func HeadCmd

func HeadCmd(cmd *cobra.Command, con *console.SliverClient, args []string, head bool)

func LsCmd

func LsCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

LsCmd - List the contents of a remote directory.

func MemfilesAddCmd

func MemfilesAddCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

MemfilesAddCmd - Add memfile.

func MemfilesListCmd

func MemfilesListCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

MemfilesListCmd - List memfiles.

func MemfilesRmCmd

func MemfilesRmCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

MemfilesRmCmd - Remove a memfile.

func MkdirCmd

func MkdirCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

MkdirCmd - Make a remote directory.

func MountCmd

func MountCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

MountCmd - Print information about mounted filesystems

func MvCmd

func MvCmd(cmd *cobra.Command, con *console.SliverClient, args []string) (err error)

func PrintAddMemfile

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

PrintAddMemfile - Print the memfiles response.

func PrintCat

func PrintCat(download *sliverpb.Download, cmd *cobra.Command, con *console.SliverClient)

PrintCat - Print the download to stdout.

func PrintChmod

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

PrintChmod - Print the chmod response.

func PrintChown

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

PrintChown - Print the chown response.

func PrintChtimes

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

PrintChtimes - Print the Chtimes response.

func PrintCp

func PrintCp(cp *sliverpb.Cp, con *console.SliverClient)

func PrintLs

func PrintLs(ls *sliverpb.Ls, flags *pflag.FlagSet, con *console.SliverClient)

PrintLs - Display an sliverpb.Ls object.

func PrintMemfiles

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

PrintMemfiles - Display an sliverpb.Ls object.

func PrintMkdir

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

PrintMkdir - Print make directory.

func PrintMount

func PrintMount(os string, mount *sliverpb.Mount, con *console.SliverClient)

PrintMount - Print a table containing information on mounted filesystems

func PrintMv

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

PrintMv - Print the renamed file.

func PrintPwd

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

PrintPwd - Print the remote working directory.

func PrintRm

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

PrintRm - Print the rm response.

func PrintRmMemfile

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

PrintRmMemfile - Remove a memfile.

func PrintUpload

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

PrintUpload - Print the result of the upload command.

func PwdCmd

func PwdCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

PwdCmd - Print the remote working directory.

func RmCmd

func RmCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

RmCmd - Remove a directory from the remote file system.

func UploadCmd

func UploadCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

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