Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ransomware Demo

A small Python proof-of-concept that demonstrates how file encryption can be implemented using the cryptography library.

Warning: This project is intentionally destructive and should only be run in an isolated virtual machine or lab environment. It encrypts files in the current directory. Never run it on real or important data.

Overview

This repository contains a basic ransomware-style example:

  • main.py generates a Fernet key and encrypts files in the working directory.
  • decrypt.py loads the generated key and attempts to restore the files.
  • The demo is designed for learning, testing, and controlled experimentation only.

Project Files

  • main.py — encryption routine
  • decrypt.py — decryption routine
  • README.md — project overview and usage notes
  • Sample text files — included for testing in a disposable environment

How to test it safely

  1. Create a temporary folder.
  2. Copy the project files into that folder.
  3. Add a few test files.
  4. Run the encryption script:
python3 main.py
  1. Run the decryption script:
python3 decrypt.py
  1. Enter the required secret phrase when prompted.

Important Notes

  • This script will encrypt files in the current directory.
  • It is intended only for educational purposes and lab testing.
  • Use a VM or sandbox environment to avoid affecting real files.
  • Do not use this script on personal, production, or shared systems.

Disclaimer

This repository is meant as a demonstration of encryption concepts and should not be used for malicious activity or real-world attacks.

About

A malware(Ransomware) created using python

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages