result

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assembly

func Assembly(n *com.Packet) (uintptr, uint32, int32, error)

Assembly will parse the RvResult Packet from a TvAssembly task.

The return result is a handle to the memory location of the Assembly code (as a uintptr), the resulting PID of the Assembly "host" and the exit code of the primary thread (if wait was specified, otherwise this is zero).

This function returns an error if any reading errors occur, the Packet is not in the expected format or the Packet is nil or empty.

func CheckDLL

func CheckDLL(n *com.Packet) (bool, error)

CheckDLL will parse the RvResult Packet from a TvCheckDLL task.

The return result is true if the DLL provided is NOT hooked. A return value of false indicates that the DLL memory space differs from the on-disk value, which is an indicator of hooks.

This function returns an error if any reading errors occur, the Packet is not in the expected format or the Packet is nil or empty.

func DLL

func DLL(n *com.Packet) (uintptr, uint32, int32, error)

DLL will parse the RvResult Packet from a TvDLL task.

The return result is a handle to the memory location of the DLL (as a uintptr), the resulting PID of the DLL "host" and the exit code of the primary thread (if wait was specified, otherwise this is zero).

This function returns an error if any reading errors occur, the Packet is not in the expected format or the Packet is nil or empty.

func Download

func Download(n *com.Packet) (string, bool, uint64, io.Reader, error)

Download will parse the RvResult Packet from a TvDownload task.

The return result is the expended full file path on the host as a string, a boolean representing if the path requested is a directory (true if the path is a directory, false otherwise), the size of the data in bytes (zero if the target is a directory) and a reader with the resulting file data (empty if the target is a directory).

This function returns an error if any reading errors occur, the Packet is not in the expected format or the Packet is nil or empty.

func Ls

func Ls(n *com.Packet) ([]fs.FileInfo, error)

Ls will parse the RvResult Packet from a MvList task.

The return result is a slice of FileInfo interfaces that will return the data of the directory targed.

This function returns an error if any reading errors occur, the Packet is not in the expected format or the Packet is nil or empty.

func Mounts

func Mounts(n *com.Packet) ([]string, error)

Mounts will parse the RvResult Packet from a MvMounts task.

The return result is a string list of all the exposed mount points on the client (drive letters on Windows).

This function returns an error if any reading errors occur, the Packet is not in the expected format or the Packet is nil or empty.

func Process

func Process(n *com.Packet) (uint32, int32, io.Reader, error)

Process will parse the RvResult Packet from a TvExecute task.

The return result is the spawned PID of the new process and the resulting exit code and Stdout/Stderr data (if wait was specified, otherwise this the return code is zero and the reader will be empty).

This function returns an error if any reading errors occur, the Packet is not in the expected format or the Packet is nil or empty.

func Pull

func Pull(n *com.Packet) (string, uint64, error)

Pull will parse the RvResult Packet from a TvPull task.

The return result is the expended full file path on the host as a string, and the resulting count of bytes written to disk.

This function returns an error if any reading errors occur, the Packet is not in the expected format or the Packet is nil or empty.

func PullExec

func PullExec(n *com.Packet) (uint32, int32, io.Reader, error)

PullExec will parse the RvResult Packet from a TvPullExecute task.

The return result is the spawned PID of the new process and the resulting exit code and Stdout/Stderr data (if wait was specified, otherwise this the return code is zero and the reader will be empty).

This function returns an error if any reading errors occur, the Packet is not in the expected format or the Packet is nil or empty.

func Pwd

func Pwd(n *com.Packet) (string, error)

Pwd will parse the RvResult Packet from a MvPwd task.

The return result is the current directory the client is located in.

This function returns an error if any reading errors occur, the Packet is not in the expected format or the Packet is nil or empty.

func Spawn

func Spawn(n *com.Packet) (uint32, error)

Spawn will parse the RvResult Packet from a MvSpawn task.

The return result is the new PID of the resulting Spawn operation.

This function returns an error if any reading errors occur, the Packet is not in the expected format or the Packet is nil or empty.

func Upload

func Upload(n *com.Packet) (string, uint64, error)

Upload will parse the RvResult Packet from a TvUpload task.

The return result is the expended full file path on the host as a string, and the resulting count of bytes written to disk.

This function returns an error if any reading errors occur, the Packet is not in the expected format or the Packet is nil or empty.

func Zombie

func Zombie(n *com.Packet) (uint32, int32, io.Reader, error)

Zombie will parse the RvResult Packet from a TvZombie task.

The return result is the spawned PID of the new process and the resulting exit code and Stdout/Stderr data (if wait was specified, otherwise this the return code is zero and the reader will be empty).

This function returns an error if any reading errors occur, the Packet is not in the expected format or the Packet is nil or empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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