Documentation ¶
Index ¶
- func CatCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func CdCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func ChmodCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func ChownCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func ChtimesCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func Commands(con *console.SliverClient) []*cobra.Command
- func CpCmd(cmd *cobra.Command, con *console.SliverClient, args []string) (err error)
- func DownloadCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func GrepCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func HandleDownloadResponse(download *sliverpb.Download, cmd *cobra.Command, args []string, ...)
- func HeadCmd(cmd *cobra.Command, con *console.SliverClient, args []string, head bool)
- func LsCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func MemfilesAddCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func MemfilesListCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func MemfilesRmCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func MkdirCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func MountCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func MvCmd(cmd *cobra.Command, con *console.SliverClient, args []string) (err error)
- func PrintAddMemfile(memfilesAdd *sliverpb.MemfilesAdd, con *console.SliverClient)
- func PrintCat(download *sliverpb.Download, cmd *cobra.Command, con *console.SliverClient)
- func PrintChmod(chmod *sliverpb.Chmod, con *console.SliverClient)
- func PrintChown(chown *sliverpb.Chown, con *console.SliverClient)
- func PrintChtimes(chtimes *sliverpb.Chtimes, con *console.SliverClient)
- func PrintCp(cp *sliverpb.Cp, con *console.SliverClient)
- func PrintLs(ls *sliverpb.Ls, flags *pflag.FlagSet, con *console.SliverClient)
- func PrintMemfiles(ls *sliverpb.Ls, con *console.SliverClient)
- func PrintMkdir(mkdir *sliverpb.Mkdir, con *console.SliverClient)
- func PrintMount(os string, mount *sliverpb.Mount, con *console.SliverClient)
- func PrintMv(mv *sliverpb.Mv, con *console.SliverClient)
- func PrintPwd(pwd *sliverpb.Pwd, con *console.SliverClient)
- func PrintRm(rm *sliverpb.Rm, con *console.SliverClient)
- func PrintRmMemfile(memfilesList *sliverpb.MemfilesRm, con *console.SliverClient)
- func PrintUpload(upload *sliverpb.Upload, con *console.SliverClient)
- func PwdCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func RmCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func UploadCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
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 DownloadCmd ¶
func DownloadCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
func HandleDownloadResponse ¶
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 PrintAddMemfile ¶
func PrintAddMemfile(memfilesAdd *sliverpb.MemfilesAdd, con *console.SliverClient)
PrintAddMemfile - Print the memfiles response.
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 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.
Types ¶
This section is empty.