Documentation ¶
Index ¶
- func Aes256(key, data []byte) ([]byte, []byte, error)
- func BytesToHexArray(shellCode []byte) string
- func DecryptAES(key, iv, ciphertext []byte) ([]byte, error)
- func EncryptPayload(key string, payload []byte) ([]byte, []byte, []byte, bool)
- func ReadFileAndExtractComponents(filePath string) ([]byte, []byte, []byte, error)
- func ReadFileWithoutComponents(filePath string) ([]byte, error)
- func ReadPayloadToFile(filepath string, data []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToHexArray ¶
BytesToHexArray converts a byte slice to a string of hex values.
func DecryptAES ¶
DecryptAES decrypts a ciphertext using the given key and IV The ciphertext must be a multiple of the block size
func EncryptPayload ¶
EncryptPayload encrypts the payload with the key and returns the encrypted payload, IV, and key.
func ReadFileAndExtractComponents ¶
ReadFileAndExtractComponents reads data from the file, extracts the key, IV, and payload. useful for getting the key and IV to decrypt.
func ReadFileWithoutComponents ¶
ReadFileWithoutComponents reads data from the file without extracting the key, IV, and payload. useful for getting the payload to encrypt.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.