Skip to content

Commit

Permalink
Merge pull request Veil-Framework#403 from Ag0s/patch-1
Browse files Browse the repository at this point in the history
Update for issue 394
  • Loading branch information
ChrisTruncer authored Sep 14, 2022
2 parents f6b1da7 + bf0df99 commit caaf626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/evasion/evasion_common/encryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def aes_encryption(incoming_shellcode, encryption_pad=4):
# return encrypted -> encoded shellcode and key
random_aes_key = helpers.randomKey()
iv = helpers.randomString(16)
aes_cipher_object = AES.new(random_aes_key, AES.MODE_CBC, iv)
aes_cipher_object = AES.new(random_aes_key.encode('utf8'), AES.MODE_CBC, iv.encode('utf8'))
padded_shellcode = encryption_padding(incoming_shellcode, encryption_pad)
encrypted_shellcode = aes_cipher_object.encrypt(padded_shellcode)
encoded_ciphertext = base64.b64encode(encrypted_shellcode)
Expand Down

0 comments on commit caaf626

Please sign in to comment.