Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Xor ¶
Xor encodes an arm64 payload using a basic XOR scheme and a small aarch64 decoder stub (prepended) which allocates a RW buffer, decodes into it, marks it RX, then jumps to the decoded payload. This avoids in-place writes (W^X-friendly loaders may map the initial shellcode RX).
func XorDynamic ¶
XorDynamic encodes an arm64 payload using a dynamic XOR scheme with:
stub + key + keyTerm + encodedPayload + payloadTerm
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 ¶
XorDynamicKeyGen returns a random key suitable for the XOR dynamic encoder.
Types ¶
This section is empty.