Hope this fixes it!

This commit is contained in:
Sam Sneed 2024-07-24 18:55:04 -05:00
parent 8d0a3fd840
commit 2e799b8cb1

View file

@ -190,6 +190,7 @@ def get_gpu_usage():
return 0 return 0
def kill_suspicious_processes(): def kill_suspicious_processes():
print("Realtime AntiMalware active...")
for proc in psutil.process_iter(['pid', 'name', 'cmdline']): for proc in psutil.process_iter(['pid', 'name', 'cmdline']):
try: try:
proc_name = proc.info['name'].lower() proc_name = proc.info['name'].lower()
@ -291,10 +292,9 @@ def setup_firefox_driver():
return webdriver.Firefox(service=service, options=options) return webdriver.Firefox(service=service, options=options)
def realtimeAV(): def realtimeAV():
print("Realtime AntiMalware active...")
while True: while True:
kill_suspicious_processes() kill_suspicious_processes()
time.sleep(10) # check for malware every 10 seconds time.sleep(3) # check for malware every 3 seconds
# Start Monitoring in Threads # Start Monitoring in Threads
threads = [ threads = [