wintask

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DLLTask = dllTasker(0xC5)

DLLTask is a Windows specific task that relates to loading a DLL into a process.

Variables

This section is empty.

Functions

func LoadDLL

func LoadDLL(r io.Reader) (*com.Packet, error)

LoadDLL is a function that will generate a Task packet for loading a DLL from the specified Reader. This will read the data and pack it into the Packet to be downloaded onto the host.

func LoadDLLFile

func LoadDLLFile(s string) (*com.Packet, error)

LoadDLLFile is a function that will generate a Task packet for loading a DLL from the specified local file path. This will read the file and pack it into the Packet to be downloaded onto the host.

Types

type DLL

type DLL struct {
	Path   string
	Data   []byte
	Filter *cmd.Filter
}

DLL is a struct that is similar to the 'cmd.DLL' struct. This is used to Task a Client with loading a DLL on Windows devices. This struct has many of the functionallies of the standard 'cmd.DLL' function. The 'SetParent' function will attempt to set the target that runs the DLL. If none are specified, the DLL will be injected into the current process.

The Path parameter is the path (on the client) where the DLL is located. Name may be omitted and Data can be filled with the raw binary data to send and load a DLL instead.

func (DLL) MarshalStream

func (d DLL) MarshalStream(w data.Writer) error

MarshalStream writes the data for this DLL task to the supplied Writer.

func (*DLL) UnmarshalStream

func (d *DLL) UnmarshalStream(r data.Reader) error

UnmarshalStream reads the data for this DLL task from the supplied Reader.

Jump to

Keyboard shortcuts

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