Giter Club home page Giter Club logo

simplepythonmalware's Introduction

SimplePythonMalware

A malware is just a malicious executable.

Screenshot (2)

Deploy One in 3 mins

First we shall consider running windows on a test environment / sandbox

(Note: Windows 11 inbuilt windows sandbox has limitations)

Opt for Linode instances or virtual machines

We are just deploying simple file encryptions and decryption using python hashlib,cryptography and basic base64

Then add full screen alert to juice it up!!

  1. The malware.py has an encryption to a photos folder commented out. The second part is for a directory, the Current user directory.

  2. The anti-malware is just a decryption of the malware.py.

REMEMBER

DO NOT execute the malware with Fernet Key without noting the encryption key.

That is essential in decryption!!

The code will set the directory_path to the current user's folder on the C drive, and then iterate through all the files in that directory. If a file is a photo (based on the file extension), it will be encrypted and the original file will be deleted.

Please note that this code will only encrypt photo files (.jpg and .png) and will not encrypt other types of files. If you want to encrypt all types of files, you can remove the if statement that checks the file extension.

⛔️ Encryption of the C drive without path can cause irreversible damage!!

🫳 The password is first hashed through hashlib digest then base64 encoding and finally a fernet key generation from the encoded string.

You can add the alert between the encryption finish point and the final message " Encryption complete"

CONVERTING THE PYTHON CODES TO EXECUTABLES

Use:

  1. cx_Freeze - pip install cx_Freeze

  2. pyinstaller - pip install pyinstaller

For cx_freeze use the variables to fit your needs

🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴🫴

simplepythonmalware's People

Contributors

theeeclipse avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.