dropper

package
v1.31.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

File dropper download and execute payloads.

The dropper package contains all the code for download and execute payloads. Unlike the other payloads this package is necessarily OS dependent for both the download and execution portions.

Index

Constants

This section is empty.

Variables

View Source
var (
	Unix    = &UnixPayload{}
	Windows = &WindowsPayload{}
	Groovy  = &GroovyPayload{}
	PHP     = &PHPPayload{}
)

Functions

This section is empty.

Types

type Dropper

type Dropper interface{}

type GroovyPayload added in v1.16.0

type GroovyPayload struct{}

func (*GroovyPayload) HTTP added in v1.19.0

func (groovy *GroovyPayload) HTTP(lhost string, lport int, downloadFile string, output string) string

Using Groovy, download a remote file, set it to executable, execute it, and delete it.

type PHPPayload added in v1.19.0

type PHPPayload struct{}

func (*PHPPayload) HTTP added in v1.19.0

func (php *PHPPayload) HTTP(lhost string, lport int, ssl bool, downloadFile string) string

Using PHP: download a remote file, write a tmp file, set it to executable, execute it, and delete it.

type UnixPayload

type UnixPayload struct{}

func (*UnixPayload) CurlHTTP

func (unix *UnixPayload) CurlHTTP(lhost string, lport int, ssl bool, downloadFile string) string

Download a remote file with curl, execute it, and delete it.

func (*UnixPayload) EitherHTTP

func (unix *UnixPayload) EitherHTTP(lhost string, lport int, ssl bool, downloadFile string) string

Download a remote file with curl or wget, execute it, and delete it.

func (*UnixPayload) WgetHTTP added in v1.27.0

func (unix *UnixPayload) WgetHTTP(lhost string, lport int, ssl bool, downloadFile string) string

Download a remote bash script with wget and pipe it to bash.

type WindowsPayload

type WindowsPayload struct{}

func (*WindowsPayload) CertutilHTTP

func (win *WindowsPayload) CertutilHTTP(lhost string, lport int, ssl bool, downloadFile string) string

Download a remote file with certutil.exe, execute it, and delete it (after execution).

func (*WindowsPayload) CurlHTTP

func (win *WindowsPayload) CurlHTTP(lhost string, lport int, ssl bool, downloadFile string) string

Download a remote file with curl.exe, execute it, and delete it (after execution).

func (*WindowsPayload) PowershellHTTP

func (win *WindowsPayload) PowershellHTTP(lhost string, lport int, ssl bool, downloadFile string) string

Download a remote file with PowerShell, execute it, and delete it (after execution).

Jump to

Keyboard shortcuts

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