# RansomwareSim | A Simulated Ransomware

**URL:** <https://onehack.st/t/ransomwaresim-a-simulated-ransomware/271277>\
**Category:** Tools & Scripts\
**Tags:** tools, programming, hacking\
**Created:** [January 7, 2024, 12:21am UTC](https://onehack.st/t/ransomwaresim-a-simulated-ransomware/271277 "2024-01-07T00:21:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheStrength](https://onehack.st/user_avatar/onehack.st/thestrength/32/46753_2.png) [@TheStrength](https://onehack.st/u/TheStrength)\
**Post date:** [January 7, 2024, 12:21am UTC](https://onehack.st/t/ransomwaresim-a-simulated-ransomware/271277/1 "2024-01-07T00:21:01Z")

</div>

# RansomwareSim

[![](https://github.com/HalilDeniz/RansomwareSim/raw/main/img/RansomWareSim.png)](https://github.com/HalilDeniz/RansomwareSim/blob/main/img/RansomWareSim.png)

## Overview

RansomwareSim is a simulated ransomware application developed for educational and training purposes. It is designed to demonstrate how ransomware encrypts files on a system and communicates with a command-and-control server. This tool is strictly for educational use and should not be used for malicious purposes.

## Features

- Encrypts specified file types within a target directory.
- Changes the desktop wallpaper (Windows only).
- Creates&Delete a README file on the desktop with a simulated ransom note.
- Simulates communication with a command-and-control server to send system data and receive a decryption key.
- Decrypts files after receiving the correct key.

## Usage

**`Important`:** This tool should only be used in controlled environments where all participants have given consent. Do not use this tool on any system without explicit permission. For more, read [SECURE](https://github.com/HalilDeniz/RansomwareSim/blob/main/SECURITY.md)

## Requirements

- Python 3.x
- cryptography
- colorama

## Installation

1. Clone the repository:

git clone [https://github.com/HalilDeniz/RansomwareSim.git](https://github.com/HalilDeniz/RansomwareSim.git)

1. Navigate to the project directory:

cd RansomwareSim

1. Install the required dependencies:

pip install -r requirements.txt

## 📖 My Book

- Mastering Scapy: A Comprehensive Guide to [Network Analysis](https://denizhalil.com/2023/11/12/scapy-guide-to-network-analysis-book/)
- Python Learning Roadmap in 30 Days: [here](https://github.com/HalilDeniz/Python30Days)
- Beginning Your Journey in Programming and Cybersecurity - [Navigating the Digital Future](https://www.buymeacoffee.com/halildeniz/e/191664)

### Running the Control Server

1. Open `controlpanel.py`.
2. Start the server by running `controlpanel.py`.
3. The server will listen for connections from `RansomwareSim` and the `Decoder`.

### Running the Simulator

1. Navigate to the directory containing `RansomwareSim`.
2. Modify the `main` function in `encoder.py` to specify the target directory and other parameters.
3. Run `encoder.py` to start the encryption process.
4. Follow the instructions displayed on the console.

### Running the Decoder

1. Run `decoder.py` after the files have been encrypted.
2. Follow the prompts to input the decryption key.

## Disclaimer

RansomwareSim is developed for educational purposes only. The creators of RansomwareSim are not responsible for any misuse of this tool. This tool should not be used in any unauthorized or illegal manner. Always ensure ethical and legal use of this tool.

## Contributing

Contributions, suggestions, and feedback are welcome. Please create an issue or pull request for any contributions.

1. Fork the repository.
2. Create a new branch for your feature or bug fix.
3. Make your changes and commit them.
4. Push your changes to your forked repository.
5. Open a pull request in the main repository.

## Contact

For any inquiries or further information, you can reach me through the following channels:

- LinkedIn : [Halil Ibrahim Deniz](https://www.linkedin.com/in/halil-ibrahim-deniz/)
- TryHackMe: [Halilovic](https://tryhackme.com/p/halilovic)
- Instagram: [deniz.halil333](https://www.instagram.com/deniz.halil333/)
- YouTube : [Halil Deniz](https://www.youtube.com/c/HalilDeniz)
- Email : [halildeniz313@gmail.com](mailto:halildeniz313@gmail.com)

## GitHub:

[https://github.com/HalilDeniz/RansomwareSim](https://github.com/HalilDeniz/RansomwareSim)
