PyRansom is a Python-based ransomware script designed for educational purposes. It encrypts files in a specified directory and places a ransom note in each directory.
This project is intended for educational purposes only. Creating, distributing, or using ransomware is illegal and unethical. Always use your programming skills responsibly and within the bounds of the law.
- Python 3.11
-
Clone the repository:
git clone https://github.com/XeinTDM/PyRansom cd PyRansom
-
Create a virtual environment and activate it:
python3.11 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Edit the
pyransom.py
file and set thetarget_directory
variable to the path you want to encrypt:target_directory = r"YOUR_DIRECTORY_PATH_HERE"
-
Run the script:
python pyransom.py
- cryptography