transform

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Base64 = B64(0)

Base64 is a transform that auto converts the data to and from Base64 encoding. This instance does not include any shifting.

Variables

View Source
var (
	// DNS is the standard DNS Transform alias. This alias uses the default
	// DNS addresses contained in 'DefaultDomains()' to spoof C2 communications
	// as valid DNS packets.
	//
	// Custom options may be used by creating a new DNS alias or updating the
	// current alias (string array) with new domains.
	DNS = DNSTransform{}
)

Functions

func DefaultDomains

func DefaultDomains() []string

DefaultDomains returns an array of DNS names to be used if the DNS Transform is empty.

Types

type B64 added in v0.1.0

type B64 byte

B64 is the underlying type for the Base64 Transform. This Transform encodes data into a Base64 string before the final write to the output.

func B64Shift added in v0.1.0

func B64Shift(n int) B64

B64Shift returns a Base64 Transform that also shifts the bytes by the specified amount before writes and after reads. This is useful for evading detection by avoiding commonly flagged Base64 values.

func (B64) Read added in v0.1.0

func (b B64) Read(p []byte, w io.Writer) error

Read satisfies the Transform interface requirements.

func (B64) Write added in v0.1.0

func (b B64) Write(p []byte, w io.Writer) error

Write satisfies the Transform interface requirements.

type DNSTransform added in v0.2.2

type DNSTransform []string

DNSTransform is a Transform alias that attempts to mask C2 traffic in the form of DNS request packets.

func (DNSTransform) Read added in v0.2.2

func (d DNSTransform) Read(b []byte, w io.Writer) error

Read satisfies the Transform interface requirements.

func (DNSTransform) Write added in v0.2.2

func (d DNSTransform) Write(b []byte, w io.Writer) error

Write satisfies the Transform interface requirements.

Jump to

Keyboard shortcuts

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