Skip to content

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.

License

Notifications You must be signed in to change notification settings

boloto1979/Malware-Cripto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages