result

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: GPL-3.0 Imports: 8 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 ProcessDump added in v0.2.2

func ProcessDump(n *com.Packet) (io.Reader, error)

ProcessDump will parse the RvResult Packet from a TvProcDump task.

The return result is a Reader with the resulting dump data inside.

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 ProcessList added in v0.2.2

func ProcessList(n *com.Packet) ([]cmd.ProcessInfo, error)

ProcessList will parse the RvResult Packet from a TvProcList task.

The return result is a slice of 'cmd.ProcessInfo' structs that will indicate the current processes running on the target device.

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 Registry added in v0.2.3

func Registry(n *com.Packet) ([]regedit.Entry, bool, error)

Registry will parse the RvResult Packet from a TvRegistry task.

The return result is dependent on the resulting operation. If the result is from a 'RegLs' or 'RegGet' operation, this will return the resulting entries found (only one entry if this was a Get operation).

The boolean value will return true if the result was a valid registry command that returns no output, such as a Set 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 ScreenShot added in v0.2.2

func ScreenShot(n *com.Packet) (io.Reader, error)

ScreenShot will parse the RvResult Packet from a TvScreenShot task.

The return result is a Reader with the resulting screenshot data encoded as a png image inside. (This can be directly written to disk as a png file).

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 SystemIO added in v0.2.5

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

SystemIO will parse the RvResult Packet from a TvSystemIO task.

The return result is dependent on the resulting operation. If the result is from a 'Move' or 'Copy' operation, this will return the resulting path and new file size.

The boolean value will return true if the result was a valid command that returns no output, such as a Touch, Delete or Kill 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