A small Windows utility that encrypts raw shellcode using AES-256-CBC.
The project provides a simple and reliable way to encrypt binary payloads using native Windows cryptographic APIs. It reads a raw shellcode file, generates a random AES key and initialization vector, encrypts the data, and exports the result in formats that can be directly reused in C source code. The implementation focuses on clarity, correctness, and ease of use, without adding unnecessary complexity.
- AES-256-CBC encryption
- Random key and IV generation
- PKCS#7 padding
- Outputs encrypted payload, key, and IV as C arrays
gcc shellcrypt.c Tool/crypto.c -o shellcrypt.exe -lAdvapi32shellcrypt.exe <shellcode_file>Files generated :
shellcode_aes.bin– encrypted shellcode (binary)shellcode_aes.txt– encrypted shellcode as C arraykey_iv.txt– AES key and IV as C arrays
MIT License
For educational and research use only.
