amd64

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Xor

func Xor(data []byte, key []byte) ([]byte, error)

Xor encodes an amd64 payload using the Metasploit x64/xor scheme.

func XorDynamic

func XorDynamic(data []byte, key []byte) ([]byte, error)

XorDynamic encodes an amd64 payload using the Metasploit x64/xor_dynamic scheme. If key includes a trailing key terminator + payload terminator (3 bytes) that satisfy the encoder constraints, those are used verbatim.

Note: For large/high-entropy payloads, a 2-byte payload terminator may not exist. In that case, this implementation falls back to a 4-byte payload terminator.

func XorDynamicKeyGen

func XorDynamicKeyGen() ([]byte, error)

XorDynamicKeyGen returns a random key suitable for the XOR dynamic encoder.

func XorDynamicKeyGenForPayload added in v1.7.6

func XorDynamicKeyGenForPayload(data []byte, badChars []byte) ([]byte, error)

XorDynamicKeyGenForPayload returns a payload-aware key whose encoded bytes avoid badChars. Empty badChars use the xor_dynamic defaults.

func XorDynamicWithBadChars added in v1.7.6

func XorDynamicWithBadChars(data []byte, key []byte, badChars []byte) ([]byte, error)

XorDynamicWithBadChars encodes an amd64 payload while excluding badChars from the complete output. Empty badChars use the xor_dynamic defaults.

func XorKeyGen

func XorKeyGen() ([]byte, error)

XorKeyGen returns a random key suitable for the XOR encoder.

Types

This section is empty.

Jump to

Keyboard shortcuts

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