common

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UUIDFuscation = 0x444
	AESEncryption = 0x555
	RC4Encryption = 0x666
	IPv6Fuscation = 0x111
	IPv4Fuscation = 0x222
	MACFuscation  = 0x333
	RC4KeySize    = 16
	AESKeySize    = 32
	AESIVSize     = 16
)

Constants to help identify user input

Variables

This section is empty.

Functions

func AppendInputPayload added in v1.0.1

func AppendInputPayload(multipleOf int, payload []byte) ([]byte, error)

AppendInputPayload appends payload to make its size a multiple of the given value.

func GenerateIpv4Output

func GenerateIpv4Output(shellcode []byte) error

GenerateIpv4Output generates the IPv4 output representation of the shellcode

func GenerateIpv6Output

func GenerateIpv6Output(shellcode []byte) error

GenerateIpv6Output generates the IPv6 output representation of the shellcode

func GenerateMacOutput

func GenerateMacOutput(shellcode []byte) error

GenerateMacOutput generates the MAC output representation of the shellcode

func GenerateRandomBytes

func GenerateRandomBytes(size int) []byte

GenerateRandomBytes generates random bytes of the given size

func GenerateUuidOutput

func GenerateUuidOutput(shellcode []byte) error

GenerateUuidOutput generates the UUID output representation of the shellcode

func PrintDecodeFunctionality

func PrintDecodeFunctionality(decodeType int)

PrintDecodeFunctionality prints the decryption/deobfuscation function as a string to the screen

func PrintHexData

func PrintHexData(name string, data []byte)

PrintHexData prints the input buffer as a hex char array (C syntax)

func Rc4EncryptionViSystemFunc032

func Rc4EncryptionViSystemFunc032(rc4Key, payloadData []byte) ([]byte, error)

Rc4EncryptionViSystemFunc032 performs the RC4 encryption

func ReadPayloadFile

func ReadPayloadFile(fileInput string) ([]byte, error)

ReadPayloadFile reads a file from disk

func SimpleEncryption

func SimpleEncryption(plainTextData, key, iv []byte) ([]byte, error)

SimpleEncryption is a wrapper function for AES encryption that makes things easier

func WritePayloadFile

func WritePayloadFile(fileInput string, payloadData []byte) error

WritePayloadFile writes a file to disk

Types

This section is empty.

Jump to

Keyboard shortcuts

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