- Saved searches
- Use saved searches to filter your results more quickly
- License
- Len-Stevens/Python-Antivirus
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- Antivirus program [closed]
- Saved searches
- Use saved searches to filter your results more quickly
- License
- cookie0o/Python-Antivirus-v2
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
A simple antivirus coded in python capable of scanning selected files and deleting files that it detects as infected. This antivirus uses a large list of MD5, SHA1 and SHA256 malware hashes (many of which coming from this repo — https://github.com/Len-Stevens/MD5-Malware-Hashes) to determine infections. However as this project progresses I would…
License
Len-Stevens/Python-Antivirus
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Compability change to work on Ubuntu
Git stats
Files
Failed to load latest commit information.
README.md
Python-Antivirus-v2
A simple antivirus coded in python capable of scanning selected files and deleting files that it detects as infected. This antivirus uses a large list of MD5, SHA1 and SHA256 malware hashes (many of which coming from this repo — https://github.com/Len-Stevens/MD5-Malware-Hashes) to determine infections. However as this project progresses I would like to implement machine learning detection with the long term goal of becoming a fully functioning antivirus.
when you install qt-material pls go to; you_Python_dir\Lib\site-packages\qt_material and replace material.css.template with this File! (else Gui will be broken!)
[BTC]; bc1qz5q86hrj4n983vxey3mxrrd7227ueacdfz56c9
[ETH]; 0x1556536283e5d3A8EA790A2d79266ffec9d7d684
[DOGE]; DHBgSnHnHRVWSnbigfAYvPuwWQG1yLxmvH
[LTC]; LbnYUMif4PPD1rBGLTWJZ23BQ3jyt884Gn
[SHIB]; 0x1556536283e5d3A8EA790A2d79266ffec9d7d684
[SOL]; LBrSZa5hcXgTPjrPKrx4Cp6QafpZ98TkwZWfAi6p3o3
[CAKE]; 0x1556536283e5d3A8EA790A2d79266ffec9d7d684
Antivirus program [closed]
I have always been known to write really sloppy code. Can someone help me rewrite the following code in a neater manner?
import os import hashlib import sys import time file_list = [] rootdir = "C:/" print("Program starting!") print("[+]Collecting virus definitions and allocating memory[+]") for subdir, dirs, files in os.walk(rootdir): for file in files: #print os.path.join(subdir, file) filepath = subdir + os.sep + file if filepath.endswith(".exe") or filepath.endswith(".dll"): file_list.append(filepath) #print(filepath) print("[+]Virus definition and memory allocation complete. [+]") print("[+]Starting scan. [+]") def countdown(): for x in range(4): print(x+1) time.sleep(1) countdown() def Scan(): infected_list = [] for f in file_list: virus_defs = open("VirusLIST.txt", "r") file_not_read = False print("\nScanning: <>".format(f)) hasher = hashlib.md5() try: with open(f, "rb") as file: try: buf = file.read() file_not_read = True hasher.update(buf) FILE_HASHED = hasher.hexdigest() print("File md5 checksum: <>".format(FILE_HASHED)) for line in virus_defs: if FILE_HASHED == line.strip(): print("[!]Malware Detected[!] | File name: <>".format(f)) infected_list.append(f) else: pass except Exception as e: print("Could not read file | Error: <>".format(e)) except: pass print("Infected files found: <>".format(infected_list)) deleteornot = str(input("Would you like to delete the infected files (y/n): ")) if deleteornot.upper() == "Y": for infected in infected_list: os.remove(infected) print("File removed: <>".format(infected)) else: print("Executed with exit code 0") os.system("PAUSE") Scan()
\$\begingroup\$ Could you please add an explanation about what the code is supposed to do? \$\endgroup\$
\$\begingroup\$ Checking executables against hashes is a really outdated (and honestly pretty useless) approach to antivirus software. \$\endgroup\$
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
A simple antivirus coded in python capable of scanning selected files and deleting files that it detects as infected.
License
cookie0o/Python-Antivirus-v2
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Python-Antivirus-v3.0
A simple antivirus coded in python capable of scanning selected files and deleting files that it detects as infected. This antivirus uses a large list of HA256 malware hashes my long term goal is to create a fully functioning antivirus.
Install requirements python -m pip install -U -r requirements.txt
When you click «Delete File» the file is GONE so you cant restore it!
[BTC]; bc1qz5q86hrj4n983vxey3mxrrd7227ueacdfz56c9
[ETH]; 0x1556536283e5d3A8EA790A2d79266ffec9d7d684
[DOGE]; DHBgSnHnHRVWSnbigfAYvPuwWQG1yLxmvH
[LTC]; LbnYUMif4PPD1rBGLTWJZ23BQ3jyt884Gn
[SHIB]; 0x1556536283e5d3A8EA790A2d79266ffec9d7d684
[SOL]; LBrSZa5hcXgTPjrPKrx4Cp6QafpZ98TkwZWfAi6p3o3
[CAKE]; 0x1556536283e5d3A8EA790A2d79266ffec9d7d684
About
A simple antivirus coded in python capable of scanning selected files and deleting files that it detects as infected.