Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boloto1979/malware-cripto
This project is an example of cryptography malware, which encrypts all files in a directory (except the malware code itself and the encryption key) using the Fernet encryption algorithm from the cryptography library.
https://github.com/boloto1979/malware-cripto
malware python
Last synced: 27 days ago
JSON representation
This project is an example of cryptography malware, which encrypts all files in a directory (except the malware code itself and the encryption key) using the Fernet encryption algorithm from the cryptography library.
- Host: GitHub
- URL: https://github.com/boloto1979/malware-cripto
- Owner: boloto1979
- License: mit
- Created: 2023-02-22T23:28:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-19T18:21:41.000Z (over 1 year ago)
- Last Synced: 2024-11-14T17:32:27.506Z (3 months ago)
- Topics: malware, python
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Encryption Malware
This project is an example of a cryptography malware that encrypts all files in a directory (except the malware code itself and the encryption key) using the Fernet encryption algorithm from the cryptography library.
## Operation
The malware generates a random encryption key using `Fernet.generate_key()` and saves it in a "key.key" file. It then lists all the files in the current directory (except the malware code itself and the encryption key) and adds them to a list.
For each file in the list, the malware reads the file's contents, encrypts it using the previously generated encryption key, and then overwrites the original file with the encrypted contents.
## Execution
This code must be executed in the directory where the files you want to encrypt are located. It is important to note that once files are encrypted, they cannot be decrypted without the original encryption key.
## Dependencies
This project depends on the cryptography library, which can be installed using pip:
pip install cryptography
## Notice
This project is for educational purposes only and must not be used for malicious purposes. Misuse of this project may result in legal penalties.