@ArnavPoddar/

AntiVirus

Python

A very simple antivirus that uses a virtual sandbox to test any dangerous executables and python scripts.

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os, tempfile, time       # Access the operating system.

def solution(): # Create a function for later.
	exe=[]
	for name in os.listdir(os.getcwd()):
		if name.lower().endswith('.exe') or name.lower().endswith('.py'):
			exe.append(name)
	print(exe)

	# define the name of the directory to be created
	path = "\Antivirus"

	# define the access rights
	access_rights = 0o755 
	os.mkdir(path, access_rights)
	print("Hello")

solution()