Hope this fixes it!
This commit is contained in:
parent
8d0a3fd840
commit
2e799b8cb1
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in a new issue